Updated to reflect HD's comments on indents and name of local script.
parent
b3754d750f
commit
8800d89424
|
@ -30,7 +30,7 @@ class Metasploit3 < Msf::Post
|
|||
|
||||
register_options(
|
||||
[
|
||||
OptString.new( 'SCRIPT', [true, 'Path to the 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(
|
||||
|
@ -40,8 +40,6 @@ class Metasploit3 < Msf::Post
|
|||
|
||||
end
|
||||
|
||||
|
||||
|
||||
def run
|
||||
|
||||
# Make sure we meet the requirements before running the script, note no need to return
|
||||
|
@ -56,6 +54,4 @@ class Metasploit3 < Msf::Post
|
|||
print_good('Finished!')
|
||||
end
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
|
|
@ -39,7 +39,7 @@ class Metasploit3 < Msf::Post
|
|||
|
||||
register_options(
|
||||
[
|
||||
OptPath.new( 'SCRIPT', [true, 'Path to the PS script', ::File.join(Msf::Config.install_root, "scripts", "ps", "msflag.ps1") ]),
|
||||
OptPath.new( 'SCRIPT', [true, 'Path to the local PS script', ::File.join(Msf::Config.install_root, "scripts", "ps", "msflag.ps1") ]),
|
||||
], self.class)
|
||||
|
||||
register_advanced_options(
|
||||
|
|
|
@ -28,8 +28,8 @@ class Metasploit3 < Msf::Post
|
|||
|
||||
register_options(
|
||||
[
|
||||
OptPath.new( 'SCRIPT', [false, 'Path to the PS script', ::File.join(Msf::Config.install_root, "scripts", "ps", "msflag.ps1") ]),
|
||||
OptPath.new( 'FOLDER', [false, 'Path to a folder of PS scripts'])
|
||||
OptPath.new( 'SCRIPT', [false, 'Path to the local PS script', ::File.join(Msf::Config.install_root, "scripts", "ps", "msflag.ps1") ]),
|
||||
OptPath.new( 'FOLDER', [false, 'Path to a local folder of PS scripts'])
|
||||
], self.class)
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue