Use beef.net for URI

This commit is contained in:
Brendan Coles
2014-05-10 09:50:38 +00:00
parent 195e2ab830
commit dbeedb1d92
3 changed files with 3 additions and 14 deletions

View File

@@ -3,7 +3,7 @@
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
###
# Exploit: http://www.justanotherhacker.com/advisories/jahx132.html
# PoC by Wireghoul: http://www.justanotherhacker.com/advisories/jahx132.html
###
class Firephp_code_exec < BeEF::Core::Command
@@ -52,17 +52,6 @@ class Firephp_code_exec < BeEF::Core::Command
)
end
def self.options
configuration = BeEF::Core::Configuration.instance
proto = configuration.get("beef.http.https.enable") == true ? "https" : "http"
beef_host = configuration.get("beef.http.public") || configuration.get("beef.http.host")
beef_port = configuration.get("beef.http.public_port") || configuration.get("beef.http.port")
url = "#{proto}://#{beef_host}:#{beef_port}"
return [
{ 'name' => 'beef_url', 'description' => 'BeEF interface URL', 'ui_label' => 'BeEF URL', 'value' => url, 'width' => '200px' }
]
end
def post_execute
save({'result' => @datastore['result']})
end