From 52094067e80b5f59cc83558c4a66e0bacdda8cfc Mon Sep 17 00:00:00 2001 From: Postmodern Date: Fri, 28 Jun 2024 21:27:14 -0700 Subject: [PATCH] Do not attempt to run the post-exploitation step if `--test` is given. --- lib/ronin/exploits/cli/commands/run.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ronin/exploits/cli/commands/run.rb b/lib/ronin/exploits/cli/commands/run.rb index bac9c2d7..510c9589 100644 --- a/lib/ronin/exploits/cli/commands/run.rb +++ b/lib/ronin/exploits/cli/commands/run.rb @@ -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 #