ensure scan is settled before delete

This commit is contained in:
Jeffrey Martin 2017-02-23 18:14:36 -06:00
parent 9f5582a4e4
commit 1f3de5d958
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 6 additions and 0 deletions

View File

@ -583,6 +583,12 @@ class Plugin::Nexpose < Msf::Plugin
end
if ! opt_preserve
# Make sure the scan has finished clean up before attempting to delete the site
while (true)
info = @nsc.scan_statistics(sid)
break if info.status == 'stopped' || info.status == 'finished'
select(nil, nil, nil, 5.0)
end
print_status(" >> Deleting the temporary site and report...") if opt_verbose
begin
@nsc.delete_site(site.id)