Skip to content

Commit

Permalink
update removal commands for osx/local/persistence
Browse files Browse the repository at this point in the history
fixes #12870
  • Loading branch information
phra committed Jan 21, 2020
1 parent 7b7f56e commit 06843d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/exploits/osx/local/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def keepalive?
# prints out a list of paths to remove and commands to run.
def list_removal_paths
files = [backdoor_path, plist_path]
print_status("To remove the persistence, run:\n"+
"$ launchctl unload -w #{plist_path.shellescape}\n"+
files.map{|f| "$ rm #{f}"}.join("\n"))
print_status("To remove the persistence, run:\n$ " +
files.map{|f| "rm #{f}"}.join("; ") +
"; launchctl stop #{File.basename(backdoor_path)}")
end

# path to the LaunchAgent service configuration plist
Expand Down

0 comments on commit 06843d0

Please sign in to comment.