error handling for payload does not exist error

git-svn-id: https://beef.googlecode.com/svn/trunk@655 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
sussurro@happypacket.net
2011-01-02 05:00:04 +00:00
parent 42e10514d8
commit ef35332595

View File

@@ -82,7 +82,11 @@ module BeEF
res['modules']
end
def payload_options(name)
res = self.call('module.options','payload',name)
begin
res = self.call('module.options','payload',name)
rescue Exception => e
return {}
end
res
end