Skip to content

Commit e5eb8c6

Browse files
committed
Fix connected in sap_router_info_request
See rapid7#1028 comments
1 parent 3daea91 commit e5eb8c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/sap/sap_router_info_request.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def run_host(ip)
6161
version = 0x26
6262
cmd = 0x2
6363
count = 0
64-
connected = 'false'
64+
connected = true
6565
port = datastore['RPORT']
6666
source = ''
6767
destination = ''
@@ -92,7 +92,7 @@ def run_host(ip)
9292
print_error("#{host_port} - Exception #{e.class} #{e} #{e.backtrace}")
9393
connected = false
9494
end
95-
if connected != false
95+
if connected
9696
print_good("#{host_port} - Connected to saprouter")
9797
print_good("#{host_port} - Sending ROUTER_ADM packet info request")
9898
sock.put(ni_packet)

0 commit comments

Comments
 (0)