On 28 Jun 2006, at 19:41 , Michael Heth wrote:
http://%74%6c%61%67%75%73%67%68%38%32.%63%61%66%65%32%34.%63%6f%6d/
src/spam_input.asp?
Anyone know of a way to automate or process the above into
something readable other than doing it by hand?
<http://centricle.com/tools/ascii-hex/>
Is one possibility.
Those, for the record, are not entities. Entities are & and
” Those are just hex encoded characters.
A simple perl or php can convert each number to a character
chr(hexdec(74)) in php would give you the first character
and explode('%', $string) would give you an array of the characters...
I know it's easy in perl, but I've forgotten all the perl I ever knew
in favor of PHP.
<?php
$URL = "%74%6c%61%67%75%73%67%68%38%32.%63%61%66%65%32%34.%63%6f%6d";
$myString = explode('%', $URL);
foreach ($myString as $value) {
if (substr($value, -1) == '.') {
echo chr(hexdec($value)).'.';
} else {
echo chr(hexdec($value));
}
}
?>
fugly, but it yields "tlagusgh82.cafe24.com" and is understandable to
someone who doesn't speak php.
--
Why live in the world when you can live in your head?
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>