From 5fb6334654ba6373d1ab01d28103a081eca99263 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Fri, 2 Sep 2011 09:21:31 +0000 Subject: [PATCH] (Fixes issue 405): added attack vector browser checks using the beef.browser API. If the vector is marked as working with only IE, if the browser is FF the attack will be skipped. git-svn-id: https://beef.googlecode.com/svn/trunk@1249 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/main/client/net/xssrays.js | 66 +++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 24 deletions(-) diff --git a/core/main/client/net/xssrays.js b/core/main/client/net/xssrays.js index 5e97fb87b..59a4910f2 100644 --- a/core/main/client/net/xssrays.js +++ b/core/main/client/net/xssrays.js @@ -47,13 +47,14 @@ beef.net.xssrays = { debug:false, cleanUpTimeout:5000, + //browser-specific attack vectors available strings: ALL, FF, IE, S, C, O vectors: [ // {input:"',XSS,'", name: 'Standard DOM based injection single', browser: 'ALL',url:true,form:true,path:true}, // {input:'",XSS,"', name: 'Standard DOM based injection double', browser: 'ALL',url:true,form:true,path:true}, // {input: '\'>