Permalink
Browse files

handle current jobs in max allowed jobs when running exploits

  • Loading branch information...
darkoperator committed Feb 24, 2012
1 parent 201d584 commit ec8f1295c7aca794bfe2be52ecef7c4229ff9ffb
Showing with 5 additions and 1 deletion.
  1. +5 −1 auto_exploit.rb
View
@@ -182,7 +182,11 @@ def cmd_vuln_exploit(*args)
# Track LPORTs used
known_lports = []
-
+
+ # Make sure that existing jobs do not affect the limit
+ current_jobs = framework.jobs.keys.length
+ maxjobs = current_jobs + maxjobs
+
# Start launching exploits that matched sorted by best ranking first
print_status("Running Exploits:")
matched_exploits.each do |e|

0 comments on commit ec8f129

Please sign in to comment.