Logan Kriete
By: a guest | Jul 30th, 2009 | Syntax:
PHP | Size: 0.62 KB | Hits: 261 | Expires: Never
<?php
# Character un-obfuscator
# really, really simple
# Just put the text that's all weird in between the two EODs, and run the script
# replaces http://pastebin.com/m7079017c
# Add 0-9 into the preg_replace first argument (right before a-z) to keep numbers
# working example at http://logansrunonline.com/dezalgo.php
?>
<form action="dezalgo.php" method="post">
<textarea name="badString" cols=100 rows=30></textarea><br />
<input type="submit" name="submit" value="Un-obfuscate!" />
</form>
<?php
if (isset($_POST['submit'])) {
echo preg_replace('/[^a-zA-Z.,!() ]+/i', '', $_POST['badString']);
}
?>