Skip to content

Commit

Permalink
use res for check response code instead of res.inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikWynter committed Sep 18, 2023
1 parent 75d2d20 commit e5c9226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/auxiliary/scanner/smtp/smtp_relay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def do_test_relay(testnumber, mailfrom, mailto)
res = raw_send_recv("EHLO X\r\n")
vprint_status("#{res.inspect}")
# check if the EHLO is actually supported. In case it's not, try the HELO command instead
if res.inspect =~ /^"5\d\d/
if res.to_s =~ /^5\d\d/
res = raw_send_recv("HELO X\r\n")
vprint_status("#{res.inspect}")
end
Expand Down

0 comments on commit e5c9226

Please sign in to comment.