don't complain about no session being created when DisablePayloadHandler is true

git-svn-id: file:///home/svn/framework3/trunk@11470 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-01-04 17:06:22 +00:00
parent 152eb80710
commit 0ba8cbd8a1
1 changed files with 5 additions and 1 deletions

View File

@ -195,7 +195,11 @@ class Exploit
end
# Worst case, the exploit ran but we got no session, bummer.
else
print_status("Exploit completed, but no session was created.")
# If we didn't run a payload handler for this exploit it doesn't
# make sense to complain to the user that we didn't get a session
unless (mod.datastore["DisablePayloadHandler"])
print_status("Exploit completed, but no session was created.")
end
end
end