From cfe0b3e87bc1deae50c9fc3d34749aaecc630eb6 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Wed, 31 Aug 2011 08:24:17 +0000 Subject: [PATCH] removed browser checks and fixed unreferenced variable sameDomain (now is crossDomain) git-svn-id: https://beef.googlecode.com/svn/trunk@1244 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/main/client/net/xssrays.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/core/main/client/net/xssrays.js b/core/main/client/net/xssrays.js index f515f2379..97bcda049 100644 --- a/core/main/client/net/xssrays.js +++ b/core/main/client/net/xssrays.js @@ -168,12 +168,12 @@ beef.net.xssrays = { for (var i = 0; i < this.vectors.length; i++) { //TODO: remove browser checks: add the BeEF ones - if (this.vectors[i].browser == 'IE' && !this.isIE()) { - continue; - } - if (this.vectors[i].browser == 'FF' && this.isIE()) { - continue; - } +// if (this.vectors[i].browser == 'IE' && !this.isIE()) { +// continue; +// } +// if (this.vectors[i].browser == 'FF' && this.isIE()) { +// continue; +// } if (!this.vectors[i].url) { continue; @@ -215,16 +215,16 @@ beef.net.xssrays = { for (var k = 0; k < this.vectors.length; k++) { //TODO: remove browser checks: add the BeEF ones - if (this.vectors[k].browser == 'IE' && !this.isIE()) { - continue; - } - if (this.vectors[k].browser == 'FF' && this.isIE()) { - continue; - } +// if (this.vectors[k].browser == 'IE' && !this.isIE()) { +// continue; +// } +// if (this.vectors[k].browser == 'FF' && this.isIE()) { +// continue; +// } if (!this.vectors[k].form) { continue; } - if (!this.sameDomain && (this.host(action).toString() != this.host(location.toString()))) { + if (!this.crossDomain && (this.host(action).toString() != this.host(location.toString()))) { if (this.debug) { beef.net.xssrays.printDebug('Scan is not Cross-domain. FormPost\naction :' + this.host(action).toString()); beef.net.xssrays.printDebug('location :' + this.host(location));