mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
If sending the big body message fails, then just assume that this is
a network error, we are sending more than 50MB, but check and count the result of the final "<CRLF>.<CRLF>" message.
This commit is contained in:
parent
55da9dc683
commit
b9237eac33
1 changed files with 1 additions and 5 deletions
|
|
@ -247,11 +247,7 @@ local function exploit_heap(socket, smtp_opts)
|
|||
body_size = body_size + #filler
|
||||
status, ret = socket:send(filler)
|
||||
if not status then
|
||||
if string.match(response, "connection closed") then
|
||||
return clean(socket, true, "heap")
|
||||
else
|
||||
return clean(socket, status, "failed to send body.")
|
||||
end
|
||||
return clean(socket, status, "failed to send body.")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue