Skip to content

Commit

Permalink
make RUN_NOW a non-advanced option
Browse files Browse the repository at this point in the history
  • Loading branch information
timwr committed Sep 25, 2020
1 parent 72111a9 commit 77b7cf4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/post/windows/manage/persistence_exe.rb
Expand Up @@ -29,16 +29,14 @@ def initialize(info = {})
[
OptEnum.new('STARTUP', [true, 'Startup type for the persistent payload.', 'USER', ['USER', 'SYSTEM', 'SERVICE']]),
OptPath.new('REXEPATH', [true, 'The remote executable to upload and execute.']),
OptString.new('REXENAME', [true, 'The name to call exe on remote system', 'default.exe'])
OptString.new('REXENAME', [true, 'The name to call exe on remote system', 'default.exe']),
OptBool.new('RUN_NOW', [false, 'Run the installed payload immediately.', true]),
], self.class
)

register_advanced_options(
[
OptString.new('LocalExePath', [false, 'The local exe path to run. Use temp directory as default. ']),
OptBool.new('RUN_NOW',
[false, 'Run the installed payload immediately.', true]
),
OptString.new('StartupName', [false, 'The name of service or registry. Random string as default.' ]),
OptString.new('ServiceDescription', [false, 'The description of service. Random string as default.' ])
])
Expand Down

0 comments on commit 77b7cf4

Please sign in to comment.