File tree Expand file tree Collapse file tree 1 file changed +11
-18
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def run_host(ip)
60
60
unless waps_table . rows . empty?
61
61
print_line ( waps_table . to_s )
62
62
report_note (
63
- :host => rhost ,
63
+ :host => ip ,
64
64
:port => rport ,
65
65
:proto => 'tcp' ,
66
66
:type => 'chromecast.wifi' ,
@@ -70,23 +70,16 @@ def run_host(ip)
70
70
end
71
71
72
72
def scan
73
- begin
74
- send_request_raw (
75
- 'method' => 'POST' ,
76
- 'uri' => '/setup/scan_wifi' ,
77
- 'agent' => Rex ::Text . rand_text_english ( rand ( 42 ) + 1 )
78
- )
79
- send_request_raw (
80
- 'method' => 'GET' ,
81
- 'uri' => '/setup/scan_results' ,
82
- 'agent' => Rex ::Text . rand_text_english ( rand ( 42 ) + 1 )
83
- )
84
- rescue Rex ::ConnectionRefused , Rex ::ConnectionTimeout ,
85
- Rex ::HostUnreachable => e
86
- fail_with ( Failure ::Unreachable , e )
87
- ensure
88
- disconnect
89
- end
73
+ send_request_raw (
74
+ 'method' => 'POST' ,
75
+ 'uri' => '/setup/scan_wifi' ,
76
+ 'agent' => Rex ::Text . rand_text_english ( rand ( 42 ) + 1 )
77
+ )
78
+ send_request_raw (
79
+ 'method' => 'GET' ,
80
+ 'uri' => '/setup/scan_results' ,
81
+ 'agent' => Rex ::Text . rand_text_english ( rand ( 42 ) + 1 )
82
+ )
90
83
end
91
84
92
85
def enc ( wap )
You can’t perform that action at this time.
0 commit comments