Skip to content

Commit 2b16a23

Browse files
h00diejheysel-r7
andauthored
Update modules/exploits/osx/persistence/launch_plist.rb
Co-authored-by: jheysel-r7 <[email protected]>
1 parent ae2f7d8 commit 2b16a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/osx/persistence/launch_plist.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def install_persistence
9696
# Add plist file to LaunchAgents dir
9797
add_launchctl_item
9898
@clean_up_rc << "rm #{plist_path}\n"
99-
@clean_up_rc << "execute -f /bin/launchctl -a \"remove #{File.basename(backdoor_path)}\"\n"
10099
@clean_up_rc << "execute -f /bin/launchctl -a \"stop #{File.basename(backdoor_path)}\"\n"
100+
@clean_up_rc << "execute -f /bin/launchctl -a \"remove #{File.basename(backdoor_path)}\"\n"\
101101
end
102102

103103
private

0 commit comments

Comments
 (0)