Skip to content

Commit 71e9602

Browse files
h00diedledda-r7
andauthored
Update modules/exploits/linux/persistence/autostart.rb
Co-authored-by: Diego Ledda <[email protected]>
1 parent c4d0302 commit 71e9602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/persistence/autostart.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def target_user
8484
end
8585

8686
def install_persistence
87-
print_warning('Payloads in /tmp will only last until reboot, you may want to choose elsewhere.') if writable_dir.start_with?('/tmp')
87+
print_warning('Payloads in /tmp will only last until reboot, you may want to choose elsewhere.') if writable_dir.start_with?('/tmp') && payload.arch.first != 'cmd'
8888
user = target_user
8989
home = get_home_dir(user)
9090
vprint_status('Making sure the autostart directory exists')

0 commit comments

Comments
 (0)