Skip to content

Commit e79c10a

Browse files
committed
cron updated with mixin udpates
1 parent 9e461ea commit e79c10a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

modules/exploits/multi/persistence/cron.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def install_persistence
134134
cron_entry += " #{payload.encoded}"
135135
else
136136
file_name = datastore['PAYLOAD_NAME'] || Rex::Text.rand_text_alpha(5..10)
137-
backdoor = "#{datastore['WritableDir']}/#{file_name}"
137+
backdoor = "#{writable_dir}/#{file_name}"
138138
vprint_status("Writing backdoor to #{backdoor}")
139139
upload_and_chmodx backdoor, generate_payload_exe
140140
cron_entry += " #{backdoor}"

0 commit comments

Comments
 (0)