Skip to content

Commit

Permalink
Do not attempt to run the post-exploitation step if --test is given.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 29, 2024
1 parent 90abd9e commit e4654d9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/ronin/exploits/cli/commands/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,15 @@ def run(name=nil)
run_test
else
run_exploit
end

if options[:irb]
start_shell
else
post_exploitation
end
if options[:irb]
start_shell
else
post_exploitation
end

perform_cleanup
perform_cleanup
end
end

#
Expand Down

0 comments on commit e4654d9

Please sign in to comment.