use of send_request_cgi
parent
9c89599737
commit
2684e6103c
|
@ -36,7 +36,7 @@ end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
connect
|
connect
|
||||||
res = send_request_raw({'uri' => '/ip', 'method' => 'GET' })
|
res = send_request_cgi({'uri' => '/ip', 'method' => 'GET' })
|
||||||
our_addr = res.body.strip
|
our_addr = res.body.strip
|
||||||
if Rex::Socket.is_ipv4?(our_addr) or Rex::Socket.is_ipv6?(our_addr)
|
if Rex::Socket.is_ipv4?(our_addr) or Rex::Socket.is_ipv6?(our_addr)
|
||||||
print_good("Source ip to #{rhost} is #{our_addr}")
|
print_good("Source ip to #{rhost} is #{our_addr}")
|
||||||
|
|
Loading…
Reference in New Issue