Skip to content

Instantly share code, notes, and snippets.

@intchloe
Created May 20, 2016 18:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intchloe/82c6de46cd1f878d0dc0a9597a5c90dd to your computer and use it in GitHub Desktop.
Save intchloe/82c6de46cd1f878d0dc0a9597a5c90dd to your computer and use it in GitHub Desktop.
<?php
$a = $_SERVER;
echo '<script type="text/javascript" src="/c.js"></script>
';
echo "------------- Alarming detections -------------</br>";
if (array_key_exists("HTTP_X_TOR2WEB",$a)) {
echo "The 'HTTP_X_TOR2WEB' key exist, so you are using Tor2Web!</br>";
}
if (array_key_exists("HTTP_X_FORWARDED_PROTO",$a)) {
echo "The 'HTTP_X_FORWARDED_PROTO' key exist, so you are using Tor2Web!</br>";
}
if (array_key_exists("HTTP_X_FORWARDED_HOST",$a)) {
echo "The 'HTTP_X_FORWARDED_HOST' key exist, so you are using Tor2Web!</br>";
}
echo "</br></br>";
echo "------------- Suspicious detections -------------</br>";
if (in_array('Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0', $a)) {
echo 'You have the same UA as onion.cab. Suspicious.';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment