Skip to content

Instantly share code, notes, and snippets.

@ha1t
Created March 29, 2017 16:54
Show Gist options
  • Save ha1t/b56dd6bd137a2ab896268e54e5aeb482 to your computer and use it in GitHub Desktop.
Save ha1t/b56dd6bd137a2ab896268e54e5aeb482 to your computer and use it in GitHub Desktop.
<?php
function hex2ascii($hex)
{
$ascii = '';
$hex = str_replace(" ", "", $hex);
for($i = 0; $i < strlen($hex); $i = $i+2)
$ascii .= chr(hexdec(substr($hex, $i, 2)));
return($ascii);
}
$word = 'e3808ce3828ce3819fe3819de381aee5a0b4e68
980e381afe38081e381bee3828be381a7e5a4a9
e59bbde381aee38288e38186e381a0e381a3e38
19fe38082e6868ee38197e381bfe682b2e38197
e381bfe38282e381aae3818fe38081e3819fe381
a0e69a96e3818be38184e381b2e381a0e381bee
3828ae381aee38288e38186e381aae5a0b4e689
80e38082e381a7e38282e38081e3819de38193e
381abe585a5e3828be8a8b1e38197e381afe5be
97e38289e3828ce3828be38293e381a0e3828de
38186e3818befbc9fe58e9fe7bdaae38199e3828
9e68c81e381a6e381aae38184e38081e4babae5
bda2e381aee3808d0d0a0d0aefbc9cefbc99efbc
b3e381aee3838fe383bce38389e382a6e382a7e
382a2e383a1e383a2e383aae381abe6ae8be381
a3e381a6e38184e3819fe69c80e5be8ce381aee
8a898e98cb2e3818be38289efbc9e';
$word = str_replace("\n", '', $word);
$decoded_words = "";
$string = "";
foreach (range(1, strlen($word)) as $index) {
$string .= $word[$index - 1];
if ($index % 6 === 0) {
$decoded_words .= hex2ascii($string);
$string = '';
}
}
echo $decoded_words;
@ha1t
Copy link
Author

ha1t commented May 6, 2017

[添付ファイル]
e591bde381abe381b5e3828fe38197e38184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment