From 52c2ef45e1788c479a111a437aed3b8bc1465dab Mon Sep 17 00:00:00 2001 From: Wade Alcorn Date: Thu, 24 Apr 2014 14:44:26 +1000 Subject: [PATCH] Fixed reference to origin --- core/main/client/browser.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/main/client/browser.js b/core/main/client/browser.js index 41331fe18..8fe353798 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -1479,7 +1479,7 @@ beef.browser = { }, /** - * Checks if the Phonegap API is available from the hooked domain. + * Checks if the Phonegap API is available from the hooked origin. * @return: {Boolean} true or false. * * @example: if(beef.browser.hasPhonegap()) { ... } @@ -1871,9 +1871,9 @@ beef.browser = { if (has_session_cookies) details['hasSessionCookies'] = has_session_cookies; if (has_persistent_cookies) details['hasPersistentCookies'] = has_persistent_cookies; } catch (e) { - // the hooked domain is using HttpOnly. EverCookie is persisting the BeEF hook in a different way, + // the hooked origin is using HttpOnly. EverCookie is persisting the BeEF hook in a different way, // and there is no reason to read cookies at this point - details['Cookies'] = "Cookies can't be read. The hooked domain is most probably using HttpOnly."; + details['Cookies'] = "Cookies can't be read. The hooked origin is most probably using HttpOnly."; details['hasSessionCookies'] = "No"; details['hasPersistentCookies'] = "No"; } @@ -2146,10 +2146,9 @@ beef.browser = { if (scope == 'PER_DOMAIN') testUrl = "http://browserspy.dk/connections.php?img=1&random="; else - // The token will be replaced by a different number with each request(different domain). + // The token will be replaced by a different number with each request (different origin). testUrl = "http://.browserspy.dk/connections.php?img=1&random="; - var imagesLoaded = 0; // Number of responding images before timeout. var imagesRequested = 0; // Number of requested images. var testImages = new Array(); // Array of all images.