update dynamic module code so it shows up correctly.

git-svn-id: https://beef.googlecode.com/svn/trunk@702 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
sussurro@happypacket.net
2011-01-19 16:38:16 +00:00
parent c89f382eaf
commit 540f806d1d
2 changed files with 7 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ class Msf < BeEF::Command
@info['Name'] = msfinfo['name']
@info['Description'] = msfinfo['description']
@info['MsfModName'] = mod.name
@info['mod-id'] = mod.id
@target = targets
end
@@ -109,6 +110,8 @@ class Msf < BeEF::Command
'mode' => 'local',
'reloadOnChange' => true, # this will trigger a reload of the payload options
'emptyText' => "select a payload..."}
@info['Data'] << { 'name' => 'mod-id' , 'id' => 'mod-id', 'type' => 'hidden', 'value' => @info['mod-id'] }
end