Files
beef/modules/network/detect_tor/template.js
wade@bindshell.net 03ffb4703d Initial Import
git-svn-id: https://beef.googlecode.com/svn/trunk@2 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2010-01-11 00:54:08 +00:00

26 lines
531 B
JavaScript
Executable File

function using_tor() {
result = "Tor is being used";
}
function not_using_tor() {
result = "Tor is NOT being used";
}
function do_main() {
var img = new Image();
img.onload = using_tor();
img.onerror = not_using_tor();
img.setAttribute("width", "0");
img.setAttribute("height", "0");
img.setAttribute("style", "visibility:hidden;");
img.src = 'http://dige6xxwpt2knqbv.onion/wink.gif';
document.body.appendChild(img);
return "Request Sent";
}
var result = null;
do_main();
return_result(result_id, result);