Skip to content

Commit

Permalink
Remove accidentally committed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
smashery authored and cgranleese-r7 committed Aug 5, 2024
1 parent 9823da9 commit 3589f54
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/post/multi/general/execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ def initialize(info = {})
)
register_options(
[
OptString.new('COMMAND', [false, 'The entire command line to execute on the session']),
OptString.new('ARG1', [false, 'The entire command line to execute on the session']),
OptString.new('ARG2', [false, 'The entire command line to execute on the session'])
OptString.new('COMMAND', [false, 'The entire command line to execute on the session'])
]
)
end

def run
print_status("Executing #{datastore['COMMAND']} on #{session.inspect}...")
res = create_process(datastore['COMMAND'], args: [datastore['ARG1'], datastore['ARG2']])
print_status("Response: #{res}")
res = cmd_exec(datastore['COMMAND'])
print_status("Response: \n#{res}")
end
end

0 comments on commit 3589f54

Please sign in to comment.