From f228138fb244d7cd450b9a74f1d7790efe018c08 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Wed, 31 Aug 2011 11:11:42 +0000 Subject: [PATCH] small code cleanup and comments added git-svn-id: https://beef.googlecode.com/svn/trunk@1247 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/main/client/net/xssrays.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/main/client/net/xssrays.js b/core/main/client/net/xssrays.js index 82239fcbc..5e97fb87b 100644 --- a/core/main/client/net/xssrays.js +++ b/core/main/client/net/xssrays.js @@ -33,9 +33,8 @@ * Other aspects of the original code have been simplified and improved. */ beef.net.xssrays = { - + // handler is needed when using beef.net.send handler: "xssrays", - completed:0, totalConnections:0, @@ -99,7 +98,6 @@ beef.net.xssrays = { + "] - beef.net.xssrays.totalConnections [" + beef.net.xssrays.totalConnections + "]"); if (beef.net.xssrays.completed == beef.net.xssrays.totalConnections) { beef.net.xssrays.printDebug("COMPLETE, notifying BeEF for scan id [" + beef.net.xssrays.xssraysScanId + "]"); - //TODO: understand why this is never called beef.net.send('/xssrays', beef.net.xssrays.xssraysScanId, ""); } else { this.getNextJob(); @@ -116,8 +114,7 @@ beef.net.xssrays = { } }else{ //nothing to scan beef.net.xssrays.printDebug("COMPLETE, notifying BeEF for scan id [" + beef.net.xssrays.xssraysScanId + "]"); - //TODO: understand why this is never called - beef.net.send('/xssrays', beef.net.xssrays.xssraysScanId, "something"); + beef.net.send('/xssrays', beef.net.xssrays.xssraysScanId, ""); } }, scan:function() {