Skip to content

Commit 8bc6114

Browse files
committed
motd updated with mixin udpates
1 parent e1e4e43 commit 8bc6114

File tree

1 file changed

+1
-1
lines changed
  • modules/exploits/linux/persistence

1 file changed

+1
-1
lines changed

modules/exploits/linux/persistence/motd.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def install_persistence
8383
if payload.arch.first == 'cmd'
8484
write_file(backdoor_path, "#!/bin/sh\n#{payload.encoded}")
8585
else
86-
backdoor_path = datastore['WritableDir']
86+
backdoor_path = writable_dir
8787
backdoor_path = backdoor_path.end_with?('/') ? backdoor_path : "#{backdoor_path}/"
8888
backdoor_name = datastore['PAYLOAD_NAME'] || rand_text_alphanumeric(5..10)
8989
backdoor_path << backdoor_name

0 commit comments

Comments
 (0)