Skip to content

Commit

Permalink
Add some tracking datastore objects (ParentUUID and AutopwnUUID) to b…
Browse files Browse the repository at this point in the history
…rowser_autopwn.rb's exploits and multi/handlers to make exploit tracking a little easier.

git-svn-id: file:///home/svn/framework3/trunk@11592 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information
Tod Beardsley authored and Tod Beardsley committed Jan 17, 2011
1 parent aca1a0d commit 1d7745d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/auxiliary/server/browser_autopwn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ def init_exploit(name, mod = nil, targ = 0)

@exploits[name].datastore['WORKSPACE'] = datastore["WORKSPACE"] if datastore["WORKSPACE"]
@exploits[name].datastore['MODULE_OWNER'] = self.owner
@exploits[name].datastore['ParentUUID'] = datastore["ParentUUID"] if datastore["ParentUUID"]
@exploits[name].datastore['AutopwnUUID'] = self.uuid
@exploits[name].datastore['LPORT'] = lport
@exploits[name].datastore['LHOST'] = @lhost
@exploits[name].datastore['SSL'] = datastore['SSL']
Expand Down Expand Up @@ -416,6 +418,8 @@ def start_exploit_modules()
multihandler = framework.modules.create("exploit/multi/handler")
multihandler.datastore['MODULE_OWNER'] = self.datastore['MODULE_OWNER']
multihandler.datastore['WORKSPACE'] = datastore["WORKSPACE"] if datastore["WORKSPACE"]
multihandler.datastore['ParentUUID'] = datastore["ParentUUID"] if datastore["ParentUUID"]
multihandler.datastore['AutopwnUUID'] = self.uuid
multihandler.datastore['LPORT'] = lport
multihandler.datastore['LHOST'] = @lhost
multihandler.datastore['ExitOnSession'] = false
Expand Down

0 comments on commit 1d7745d

Please sign in to comment.