Changeset 3920
- Timestamp:
- 09/21/06 09:51:58 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework3/trunk/lib/msf/core/exploit_driver.rb
r3899 r3920 130 130 ctx = [ exploit, payload ] 131 131 132 132 133 # If we are being instructed to run as a job then let's create that job 133 134 # like a good person. 134 135 if (use_job) 135 exploit.framework.jobs.start_job( 136 "Exploit: #{exploit.refname}", 137 ctx, 138 Proc.new { |ctx| job_run_proc(ctx) }, 139 Proc.new { |ctx| job_cleanup_proc(ctx) }) 140 # Otherwise, run inline. 136 if (exploit.stance == Msf::Exploit::Stance::Passive) 137 exploit.framework.jobs.start_bg_job( 138 "Exploit: #{exploit.refname}", 139 ctx, 140 Proc.new { |ctx| job_run_proc(ctx) }, 141 Proc.new { |ctx| job_cleanup_proc(ctx) } 142 ) 143 else 144 exploit.framework.jobs.start_job( 145 "Exploit: #{exploit.refname}", 146 ctx, 147 Proc.new { |ctx| job_run_proc(ctx) }, 148 Proc.new { |ctx| job_cleanup_proc(ctx) } 149 ) 150 end 141 151 else 142 152 job_run_proc(ctx) framework3/trunk/lib/msf/ui/console/command_dispatcher/db.rb
r3915 r3920 377 377 prot = port.attributes['protocol'] 378 378 pnum = port.attributes['portid'] 379 380 next if not port.elements['state'] 379 381 stat = port.elements['state'].attributes['state'] 382 380 383 next if not port.elements['service'] 381 384 name = port.elements['service'].attributes['name']
