From b6c45fc7d92cf282bf23c1a419a8889d73015507 Mon Sep 17 00:00:00 2001 From: xntrik Date: Fri, 20 May 2011 15:53:29 +0000 Subject: [PATCH] (Fixes issue 265) the detection for Twitter is a little better, but still slightly inconsistant on first run against ff git-svn-id: https://beef.googlecode.com/svn/trunk@983 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- modules/recon/detect_soc_nets/command.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/recon/detect_soc_nets/command.js b/modules/recon/detect_soc_nets/command.js index 10a02dad2..6e3b8889e 100644 --- a/modules/recon/detect_soc_nets/command.js +++ b/modules/recon/detect_soc_nets/command.js @@ -28,11 +28,12 @@ beef.execute(function() { url: "https://twitter.com/account/use_phx?setting=false&format=text", dataType: "script", cache: "false", - error: function(one, two, three) { - twitterresult = "User is authenticated to Twitter"; - }, - success: function(one, two, three) { - twitterresult = "User is NOT authenticated to Twitter"; + complete: function(one, two) { + if (two == "success") { + twitterresult = "User is NOT authenticated to Twitter (response:"+two+")"; + } else if (two == "timeout") { + twitterresult = "User is authenticated to Twitter (response:"+two+")"; + } }, timeout: <%= @timeout %> });