more typo and whitespace fixes

bug/bundler_fix
Brent Cook 2015-10-20 13:09:17 -05:00
parent 4b271425c9
commit 0784370b98
1 changed files with 4 additions and 4 deletions

View File

@ -30,12 +30,12 @@ class Metasploit3 < Msf::Post
register_options(
[
OptString.new( 'SCRIPT', [true, 'Path to the local PS script or command string to execute' ]),
OptString.new( 'SCRIPT', [true, 'Path to the local PS script or command string to execute']),
], self.class)
register_advanced_options(
[
OptString.new('SUBSTITUTIONS', [false, 'Script subs in gsub format - original,sub;original,sub' ]),
OptString.new('SUBSTITUTIONS', [false, 'Script subs in gsub format - original,sub;original,sub']),
], self.class)
end
@ -47,11 +47,11 @@ class Metasploit3 < Msf::Post
raise "Powershell not available" if ! have_powershell?
# Preprocess the Powershell::Script object with substitions from Exploit::Powershell
script = make_subs(read_script(datstore['SCRIPT']),process_subs(datastore['SUBSTITUTIONS']))
script = make_subs(read_script(datastore['SCRIPT']), process_subs(datastore['SUBSTITUTIONS']))
# Execute in session
print_status psh_exec(script)
print_good('Finished!')
print_good 'Finished!'
end
end