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

@@ -14,12 +14,13 @@ class Phonegap_persistence < BeEF::Core::Command
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")
hook_file = @configuration.get("beef.http.hook_file")
return [{
'name' => 'hook_url',
'description' => 'The URL of your BeEF hook',
'ui_label'=>'Hook URL',
'value' => proto + '://'+beef_host+':'+beef_port+'/hook.js',
'value' => proto + '://'+beef_host+':'+beef_port+hook_file,
'width' => '300px'
}]
end