Skip to content

Commit 8fe0003

Browse files
committed
Adding cleanup
1 parent 77d0fe5 commit 8fe0003

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/exploits/multi/http/wondercms_rce.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class MetasploitModule < Msf::Exploit::Remote
1010

1111
include Msf::Exploit::Remote::HttpServer
1212
include Msf::Exploit::Remote::HttpClient
13+
include Msf::Exploit::FileDropper
1314
prepend Msf::Exploit::Remote::AutoCheck
1415

1516
def initialize(info = {})
@@ -113,6 +114,7 @@ def create_vulnerable_zip
113114
]
114115

115116
@vuln_zip = Msf::Util::EXE.to_zip(files)
117+
register_file_for_cleanup(@payload_filename)
116118
end
117119

118120
def on_request_uri(cli, _request)

0 commit comments

Comments
 (0)