Skip to content

Commit 622abe7

Browse files
committed
Adding cleanup option:
1 parent 8fe0003 commit 622abe7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/exploits/multi/http/wondercms_rce.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def initialize(info = {})
5252

5353
register_options([
5454
OptString.new('TARGETURI', [true, 'Path to the WonderCMS application', '/wondercms']),
55-
OptString.new('PASSWORD', [true, 'Password to log into WonderCMS', ''])
55+
OptString.new('PASSWORD', [true, 'Password to log into WonderCMS', '']),
56+
OptBool.new('CLEANUP', [false, 'Enable payload file cleanup', false])
5657
])
5758
end
5859

@@ -114,7 +115,7 @@ def create_vulnerable_zip
114115
]
115116

116117
@vuln_zip = Msf::Util::EXE.to_zip(files)
117-
register_file_for_cleanup(@payload_filename)
118+
register_file_for_cleanup(@payload_filename) if datastore['CLEANUP']
118119
end
119120

120121
def on_request_uri(cli, _request)

0 commit comments

Comments
 (0)