You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/exploits/linux/persistence/autostart.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ def target_user
84
84
end
85
85
86
86
definstall_persistence
87
-
print_warning('Payloads in /tmp will only last until reboot, you may want to choose elsewhere.')ifwritable_dir.start_with?('/tmp')
87
+
print_warning('Payloads in /tmp will only last until reboot, you may want to choose elsewhere.')ifwritable_dir.start_with?('/tmp') && payload.arch.first != 'cmd'
88
88
user=target_user
89
89
home=get_home_dir(user)
90
90
vprint_status('Making sure the autostart directory exists')
0 commit comments