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:
parent
341f4a258d
commit
ac517fafea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue