<xssrays> 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
This commit is contained in:
antisnatchor
2011-08-31 08:24:17 +00:00
parent 26b87ef55d
commit cfe0b3e87b

View File

@@ -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));