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 %> });