Skip to content

Instantly share code, notes, and snippets.

@imhuytq
Last active July 14, 2020 16:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save imhuytq/e95f65b3c00c8a3380d1 to your computer and use it in GitHub Desktop.
Save imhuytq/e95f65b3c00c8a3380d1 to your computer and use it in GitHub Desktop.
Decode tool for http://www.phpencode.org
<!doctype html>
<html>
<head>
<title>"PHP Encode v1.0 by zeura.com" decoder =))</title>
<meta charset="utf-8">
</head>
<body>
<form method="POST">
<h1>Decode tool for <a href="http://www.phpencode.org">http://www.phpencode.org</a></h1>
<textarea name="code" rows="10" style="width: 100%" placeholder="Paste code here"></textarea><br />
<button type="submit">Decode</button>
</form>
<?php
if (isset($_POST['code']) && ($code = trim($_POST['code'])))
{
if (strpos($code, 'base64_decode') !== false)
{
$position = 931;
}
else
{
$position = 40;
}
$data = substr($code, $position);
echo "Your code: <br /><pre>&lt;?php\n" . htmlentities(gzinflate(base64_decode($data))) . '</pre>';
}
?>
<div style="text-align: center;">&copy; 2015 <a href="http://huytq.me">Huy TQ</a></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment