Skip to content

Commit

Permalink
minor bugs in obsidian module
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Dec 12, 2024
1 parent 7cf942c commit 0887192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/exploits/multi/local/obsidian_plugin_persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def find_vaults
] # snap package
end

config_files << datastore['CONFIG'] unless datastore['CONFIG'].empty?
config_files.unshift(datastore['CONFIG']) unless datastore['CONFIG'].empty?

config_files.each do |config_file|
next unless file?(config_file)
Expand Down Expand Up @@ -204,7 +204,7 @@ def exploit
plugin = plugin_name
print_status("Using plugin name: #{plugin}")
vaults = find_vaults
fail_with(Failure::NotFound, 'No vaults found') unless find_vaults.empty?
fail_with(Failure::NotFound, 'No vaults found') if find_vaults.empty?
vaults.each_value do |vault|
print_status("Uploading plugin to vault #{vault['path']}")
# avoid mkdir function because that registers it for delete, and we don't want that for
Expand Down

0 comments on commit 0887192

Please sign in to comment.