minor udpate: session id function and param names updated
git-svn-id: https://beef.googlecode.com/svn/trunk@538 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -57,7 +57,7 @@ module WEBrick
|
||||
|
||||
end
|
||||
|
||||
def get_hook_session_value()
|
||||
def get_hook_session_id()
|
||||
|
||||
config = BeEF::Configuration.instance
|
||||
hook_session_name = config.get('hook_session_name')
|
||||
|
||||
@@ -24,7 +24,7 @@ module BeEF
|
||||
raise WEBrick::HTTPStatus::BadRequest, "command_id is invalid" if not BeEF::Filter.is_valid_commmamd_id?(command_id)
|
||||
|
||||
# get and check session id from the request
|
||||
hook_session_id = request.get_hook_session_value()
|
||||
hook_session_id = request.get_hook_session_id()
|
||||
raise WEBrick::HTTPStatus::BadRequest, "hook_session_id is invalid" if not BeEF::Filter.is_valid_hook_session_id?(hook_session_id)
|
||||
|
||||
@guard.synchronize {
|
||||
|
||||
@@ -38,8 +38,8 @@ module BeEF
|
||||
end
|
||||
|
||||
# get zombie if already hooked the framework
|
||||
hook_session_value = request.get_hook_session_value()
|
||||
zombie = BeEF::Models::Zombie.first(:session => hook_session_value) if not hook_session_value.nil?
|
||||
hook_session_id = request.get_hook_session_id()
|
||||
zombie = BeEF::Models::Zombie.first(:session => hook_session_id) if not hook_session_id.nil?
|
||||
|
||||
if not zombie # is a new browser so set up the hook
|
||||
|
||||
|
||||
Reference in New Issue
Block a user