From 052d25a36bfabde2d8d22e53477e7a1d6262a4ba Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Fri, 11 May 2012 14:22:13 +0100 Subject: [PATCH] Fixed another bug when parsing the BeEF hook cookie in Js. now using beef.session.get_hook_session_id(). Should be the last fix. --- core/main/client/net.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/main/client/net.js b/core/main/client/net.js index e0700dcdc..fff74af63 100644 --- a/core/main/client/net.js +++ b/core/main/client/net.js @@ -92,7 +92,7 @@ beef.net = { } else { try { - beef.websocket.send('{"handler" : "' + handler + '", "cid" :"' + cid + '", "result":"' + beef.encode.base64.encode(results) + '","callback": "' + callback + '","bh":"' + document.cookie.split("BEEFHOOK=")[1] + '" }'); + beef.websocket.send('{"handler" : "' + handler + '", "cid" :"' + cid + '", "result":"' + beef.encode.base64.encode(results) + '","callback": "' + callback + '","bh":"' + beef.session.get_hook_session_id() + '" }'); } catch (e) { //todo this is necessary because at start could happened that ws in not still up and the browser try to send back browser info via websocket and failed