File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
modules/exploits/multi/http Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class MetasploitModule < Msf::Exploit::Remote
8
8
include Msf ::Exploit ::Remote ::HttpClient
9
9
include Msf ::Exploit ::PhpEXE
10
10
include Msf ::Exploit ::FileDropper
11
+ include Msf ::Post ::File
11
12
include Msf ::Auxiliary ::Report
12
13
13
14
def initialize ( info = { } )
@@ -153,6 +154,7 @@ def trigger_payload
153
154
logout
154
155
login_sqli
155
156
157
+ print_status ( 'Reporting vulnerability' )
156
158
report_vuln (
157
159
host : datastore [ 'RHOSTS' ] ,
158
160
name : name ,
@@ -182,7 +184,7 @@ def trigger_payload
182
184
'method' => 'GET' ,
183
185
'keep_cookies' => true
184
186
} )
185
- register_file_for_cleanup ( payload_path ) if datastore [ 'DELETE_FILES' ]
187
+ register_file_for_cleanup ( File . basename ( payload_path ) ) if datastore [ 'DELETE_FILES' ]
186
188
end
187
189
188
190
def exploit
You can’t perform that action at this time.
0 commit comments