-
-
Save quangbahoa/5a318b32eafc2d3842031fd010db3af7 to your computer and use it in GitHub Desktop.
Decode tool for http://www.phpencode.org
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
<!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><?php\n" . htmlentities(gzinflate(base64_decode($data))) . '</pre>'; | |
} | |
?> | |
<div style="text-align: center;">© 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