changing send_message to return more information

bug/bundler_fix
lsanchez-r7 2014-02-18 16:48:52 -06:00
parent 518242ced3
commit 07fd3494e5
1 changed files with 4 additions and 1 deletions

View File

@ -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)