changing send_message to return more information
parent
518242ced3
commit
07fd3494e5
|
@ -143,16 +143,19 @@ module Exploit::Remote::SMTPDeliver
|
|||
|
||||
# Avoid sending tons of data and killing the connection if the server
|
||||
# didn't like us.
|
||||
send_status = false
|
||||
if not resp or not resp[0,3] == '354'
|
||||
print_error("Server refused our mail")
|
||||
else
|
||||
raw_send_recv("#{data}\r\n.\r\n", nsock)
|
||||
send_status = raw_send_recv("#{data}\r\n.\r\n", nsock)
|
||||
end
|
||||
|
||||
if not already_connected
|
||||
print_verbose("Closing the connection...")
|
||||
disconnect(nsock)
|
||||
end
|
||||
|
||||
send_status
|
||||
end
|
||||
|
||||
def disconnect(nsock=self.sock)
|
||||
|
|
Loading…
Reference in New Issue