Skip to content

Module: Detect Social Networks

Haoxi Tan edited this page Jan 8, 2020 · 2 revisions

Summary

  • Objective: Detect social networks

  • Authors: xntrik, Mike Cardwell

  • Browsers: All

  • Code

Internal Working

This module will detect if the Hooked Browser is currently authenticated to GMail, Facebook and Twitter, using img tags and AJAX requests.

example for twitter

$j.ajax({
        url: "https://twitter.com/account/use_phx?setting=false&format=text",
        dataType: "script",
        cache: "false",
        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 %>
});

Screenshots

Feedback

Clone this wiki locally