|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 117
Members: 0
Total: 117
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Need help decoding |
|
Posted: Sun Apr 25, 2010 8:41 pm |
|
|
fux0r360 |
Active user |
|
|
Joined: Apr 25, 2010 |
Posts: 25 |
|
|
|
|
|
|
|
I dont know what happened with the last one I did but thanks for the help.
Can someone explain the process AFTER the first Base64 encoding?
Here is the original footer.php:
Code: | <?php /* WARNING: This file is protected by copyright law. To reverse engineer or decode this file is strictly prohibited. */
$o="QAAADjsmKionYWhoc2J1J1RzZgAgdXN0JyoqOQoNJwAQO2NucScAA2RrZnR0OiVhbn8lOTsoASAB0EwSDgGibmMBcAOiKmhycyUBj3UlA+VwEAB1ZncCEg4KDQ4ODjt3OSFkaAAAd348Jzs4d293J2Jkb2gnYwAIZnNiLyBeIC48Jzg5AZRla2gCoGBuaWFoLwFSKQFkWAKARmtrJ1UQAG5gbwsAVWJ0YnVxYmMpJ0NiAAR0bmBpYmMnZX4gKyBwCcBvYhAAamJ0BTM7ZidvdWJhOiVvc3MAAHc9KChwcHApamZgYmlzaHOBAgJyfSlkaGooATQqc2Jqd2sJMHRAACgCMGJ1Zmsqd3J1d2h0YiglASI5RWJ0cydKA8MnUwKVOyhmEiB3+PEQgA5QErcTRhaoQmljFoQREAK1EMNwd1gY84AQD0MKDQoNOyhlaGN+BYA7KG9zAABqazk=";eval(base64_decode("JGxsbD0wO2V2YWwoYmFzZTY0X2RlY29kZSgiSkd4c2JHeHNiR3hzYkd4c1BTZGlZWE5sTmpSZlpHVmpiMlJsSnpzPSIpKTskbGw9MDtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd3OUo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RsbGxsbGxsKytdPSRsbGxsbGxsbGxsKCRsWyRsbGxsbCsrXSk7JGxsbGxsbDw8PTE7JGxsbGxsbGxsbC0tO31ldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd4c2JEMG5ZMmh5SnpzPSIpKTskbGxsbGw9MDtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkQwaVB5SXVKR3hzYkd4c2JHeHNiR3hzYkNnMk1pazciKSk7JGxsbGxsbGxsbGw9IiI7Zm9yKDskbGxsbGw8JGxsbGxsbGw7KXskbGxsbGxsbGxsbC49JGxsbGxsbGxsbGxsbCgkbGxsbGxsbGxbJGxsbGxsKytdXjB4MDcpO31ldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkM0OUpHeHNiR3hzYkd4c2JHd3VKR3hzYkd4c2JHeHNiR3hzYkNnMk1Da3VJajhpT3c9PSIpKTtldmFsKCRsbGxsbGxsbGwpOw=="));return;?> |
Using a 64 encoder I get the following:
Code: | @��;&**'ahhsbu'Tsf� ust'**9
'�;cnq'�dkftt:%an%9;( �L�ncp�*hrs%�u%�p�ufw
;w9!dh��w~<';8wow'bdoh'c�fsb/ ^ .<'89�ekh�`niah/R)dX�Fkk'U�n`o�Ubtbuqbc)'Cb�tn`ibc'e~ + p �ob�jbt3;f'ouba:%oss��w=((ppp)jf`bishs�r})dhj(4*sbjwk 0t@�(0bufk*wruwhtb(%"9Ebts'J�'S�;(f w���P�F�Bic���pwX�C
;(ehc~�;(os��jk9 |
and
Code: | $lll=0;eval(base64_decode("JGxsbGxsbGxsbGxsPSdiYXNlNjRfZGVjb2RlJzs="));$ll=0;eval($lllllllllll("JGxsbGxsbGxsbGw9J29yZCc7"));$llll=0;$lllll=3;eval($lllllllllll("JGw9JGxsbGxsbGxsbGxsKCRvKTs="));$lllllll=0;$llllll=($llllllllll($l[1])<<8)+$llllllllll($l[2]);eval($lllllllllll("JGxsbGxsbGxsbGxsbGw9J3N0cmxlbic7"));$lllllllll=16;$llllllll="";for(;$lllll<$lllllllllllll($l);){if($lllllllll==0){$llllll=($llllllllll($l[$lllll++])<<8);$llllll+=$llllllllll($l[$lllll++]);$lllllllll=16;}if($llllll&0x8000){$lll=($llllllllll($l[$lllll++])<<4);$lll+=($llllllllll($l[$lllll])>>4);if($lll){$ll=($llllllllll($l[$lllll++])&0x0f)+3;for($llll=0;$llll<$ll;$llll++)$llllllll[$lllllll+$llll]=$llllllll[$lllllll-$lll+$llll];$lllllll+=$ll;}else{$ll=($llllllllll($l[$lllll++])<<8);$ll+=$llllllllll($l[$lllll++])+16;for($llll=0;$llll<$ll;$llllllll[$lllllll+$llll++]=$llllllllll($l[$lllll]));$lllll++;$lllllll+=$ll;}}else$llllllll[$lllllll++]=$llllllllll($l[$lllll++]);$llllll<<=1;$lllllllll--;}eval($lllllllllll("JGxsbGxsbGxsbGxsbD0nY2hyJzs="));$lllll=0;eval($lllllllllll("JGxsbGxsbGxsbD0iPyIuJGxsbGxsbGxsbGxsbCg2Mik7"));$llllllllll="";for(;$lllll<$lllllll;){$llllllllll.=$llllllllllll($llllllll[$lllll++]^0x07);}eval($lllllllllll("JGxsbGxsbGxsbC49JGxsbGxsbGxsbGwuJGxsbGxsbGxsbGxsbCg2MCkuIj8iOw=="));eval($lllllllll); |
It is from here, that I am stuck
If its too much of a hassle to explain I understand and thanks for the help.
Have a great day |
|
|
|
|
|
|
|
|
Posted: Sun Apr 25, 2010 8:55 pm |
|
|
vince213333 |
Advanced user |
|
|
Joined: Aug 03, 2009 |
Posts: 737 |
Location: Belgium |
|
|
|
|
|
|
Code:
Code: | <!-- footer Starts -->
<div class="fix"></div>
<div id="footer-out">
<div id="footer" class="wrap">
<p>© <?php echo date('Y'); ?> <?php bloginfo(); ?>. <?php _e('All Rights Reserved. Designed by','woothemes'); ?><a href="http://www.magentothemesz.com/magento-templates/general-purpose/">Best Magento Templates</a></p>
</div>
</div>
<!-- footer Ends -->
</div>
<?php wp_footer(); ?>
</body>
</html> |
You were almost there You shouldn't decode the $o string though. Just gotta follow the PHP code you get by decoding the second string. The easiest way is to simply change the last eval() into highlight_string(). If you'd decode the file manually you'd see the variables change until you get to that last eval(), which actually displays the page. So a simple highlight_string() would reveal the PHP code |
|
|
|
|
|
|
|
|
Posted: Sun Apr 25, 2010 9:24 pm |
|
|
fux0r360 |
Active user |
|
|
Joined: Apr 25, 2010 |
Posts: 25 |
|
|
|
|
|
|
|
Thanks for the explanaition
Im at the code decoder stage right now and do not understand the strings well enough to try to manually do it
|
|
|
|
|
Posted: Sun Apr 25, 2010 9:56 pm |
|
|
vince213333 |
Advanced user |
|
|
Joined: Aug 03, 2009 |
Posts: 737 |
Location: Belgium |
|
|
|
|
|
|
It's a bit confusing with the different 11... variables, I admit But that's the intention of the creaters of this encoding scheme, to make it harder to decode |
|
|
|
|
Posted: Mon Apr 26, 2010 8:20 pm |
|
|
fux0r360 |
Active user |
|
|
Joined: Apr 25, 2010 |
Posts: 25 |
|
|
|
|
|
|
|
Can someone point me to some good reads? |
|
|
|
|
Posted: Mon Apr 26, 2010 8:29 pm |
|
|
vince213333 |
Advanced user |
|
|
Joined: Aug 03, 2009 |
Posts: 737 |
Location: Belgium |
|
|
|
|
|
|
1. Basic PHP knowledge (google)
2. eval()
3. base64_decode() & base64_encode()
4. highlight_string()
is about all you need |
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|