use of send_request_cgi

bug/bundler_fix
jvazquez-r7 2013-03-11 20:36:47 +01:00
parent 9c89599737
commit 2684e6103c
1 changed files with 1 additions and 1 deletions

View File

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