Use the module-defined workspace if specified

git-svn-id: file:///home/svn/framework3/trunk@9676 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-07-06 15:43:22 +00:00
parent 1ab0237591
commit 5cff86cc1e
1 changed files with 10 additions and 4 deletions

View File

@ -354,7 +354,13 @@ module Exploit::Remote::HttpClient
# Check to see if we already have a fingerprint before going out to
# the network.
if (framework.db.active)
s = framework.db.get_service(framework.db.workspace, rhost, 'tcp', rport)
wspace = framework.db.workspace
if datastore['WORKSPACE']
wspace = framework.db.find_workspace(datastore['WORKSPACE'])
end
s = framework.db.get_service(wspace, rhost, 'tcp', rport)
if (s)
return s.info
end