Remove the db dependency from Meterpreter scripts

git-svn-id: file:///home/svn/framework3/trunk@8676 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-02-28 19:29:43 +00:00
parent 341f4a258d
commit ac517fafea
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@ class Base
self.framework = client.framework
self.path = path
self.sink = OutputSink.new
self.workspace = client.framework.db.find_workspace( client.workspace.to_s ) || client.framework.db.workspace
if(client.framework.db and client.framework.db.active)
self.workspace = client.framework.db.find_workspace( client.workspace.to_s ) || client.framework.db.workspace
end
# Convenience aliases
self.session = self.client