Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created October 30, 2017 23:25
Show Gist options
  • Save ianblenke/59862d2e7191c628fc4113327c811040 to your computer and use it in GitHub Desktop.
Save ianblenke/59862d2e7191c628fc4113327c811040 to your computer and use it in GitHub Desktop.
Attempting to feed ATAK a Cursor on Target message
const dgram = require('dgram');
const socket = dgram.createSocket('udp4');
//var port = 4242
//var port = 8087
var port = 18999
var address = "192.168.14.151"
var msg = '<?xml version="1.0" standalone="yes"?><event version="2.0" uid="J-01334" type="a-h-A-M-F-U-M" time="2005-04-05T11:43:38.07Z" start="2005-04-05T11:43:38.07Z" stale="2005-04-05T11:45:38.07Z"><detail></detail><point lat="30.0090027" lon="-85.9578735" ce="45.3" hae="-42.6" le="99.5"/></event>'
socket.send(msg, 0, msg.length, port, address, function cb(err) {
console.log(err);
});
console.log("Done.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment