Refactored out the 'commmamd' typos and added a new filter to use when checking the details returned from initially hooking a browser.

git-svn-id: https://beef.googlecode.com/svn/trunk@596 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
scotty.b.brown@gmail.com
2010-12-04 12:54:05 +00:00
parent 83697ece40
commit 10ee49cb1a
5 changed files with 14 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ module BeEF
# get and check command id from the request
command_id = @request.get_command_id()
raise WEBrick::HTTPStatus::BadRequest, "command_id is invalid" if not BeEF::Filter.is_valid_commmamd_id?(command_id)
raise WEBrick::HTTPStatus::BadRequest, "command_id is invalid" if not BeEF::Filter.is_valid_command_id?(command_id)
# get and check session id from the request
hook_session_id = request.get_hook_session_id()