the template ref in this module was missed

when we cleaned up all the other powershell template refs
we missed the one in this module which seems to e replicating
large ammounts of library code

7533
bug/bundler_fix
David Maloney 2016-11-11 10:01:22 -06:00
parent 77bacacb9c
commit 415439eda8
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class MetasploitModule < Msf::Post
case platform
when 'win'
if session.type == 'powershell'
template_path = File.join(Msf::Config.data_directory, 'templates', 'scripts')
template_path = Rex::Powershell::Templates::TEMPLATE_DIR
psh_payload = case datastore['Powershell::method']
when 'net'
Rex::Powershell::Payload.to_win32pe_psh_net(template_path, payload_data)