Skip to content

Commit a3e8cfd

Browse files
committed
Merge branch 'pr/9' into feature/chromecast_wifi_scan
2 parents 8edac51 + 0589948 commit a3e8cfd

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

modules/auxiliary/gather/chromecast_wifi.rb renamed to modules/auxiliary/scanner/http/chromecast_wifi.rb

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def run_host(ip)
6060
unless waps_table.rows.empty?
6161
print_line(waps_table.to_s)
6262
report_note(
63-
:host => rhost,
63+
:host => ip,
6464
:port => rport,
6565
:proto => 'tcp',
6666
:type => 'chromecast.wifi',
@@ -70,23 +70,16 @@ def run_host(ip)
7070
end
7171

7272
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+
)
9083
end
9184

9285
def enc(wap)

0 commit comments

Comments
 (0)