Waraxe IT Security Portal
Login or Register
November 24, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 81
Members: 0
Total: 81
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> Need help decoding
Post new topicReply to topic View previous topic :: View next topic
Need help decoding
PostPosted: Sun Apr 25, 2010 8:41 pm Reply with quote
fux0r360
Active user
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("JGxsbD0wO2V2YWwoYmFzZTY0X2RlY29kZSgiSkd4c2JHeHNiR3hzYkd4c1BTZGlZWE5sTmpSZlpHVmpiMlJsSnpzPSIpKTskbGw9MDtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd3OUoyOXlaQ2M3IikpOyRsbGxsPTA7JGxsbGxsPTM7ZXZhbCgkbGxsbGxsbGxsbGwoIkpHdzlKR3hzYkd4c2JHeHNiR3hzS0NSdktUcz0iKSk7JGxsbGxsbGw9MDskbGxsbGxsPSgkbGxsbGxsbGxsbCgkbFsxXSk8PDgpKyRsbGxsbGxsbGxsKCRsWzJdKTtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd4c2JHdzlKM04wY214bGJpYzciKSk7JGxsbGxsbGxsbD0xNjskbGxsbGxsbGw9IiI7Zm9yKDskbGxsbGw8JGxsbGxsbGxsbGxsbGwoJGwpOyl7aWYoJGxsbGxsbGxsbD09MCl7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dXjB4MDcpO31ldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkM0OUpHeHNiR3hzYkd4c2JHd3VKR3hzYkd4c2JHeHNiR3hzYkNnMk1Da3VJajhpT3c9PSIpKTtldmFsKCRsbGxsbGxsbGwpOw=="));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
View user's profile Send private message
PostPosted: Sun Apr 25, 2010 8:55 pm Reply with quote
vince213333
Advanced user
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>&copy; <?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 Smile 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 Wink
View user's profile Send private message
PostPosted: Sun Apr 25, 2010 9:24 pm Reply with quote
fux0r360
Active user
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

Sad
View user's profile Send private message
PostPosted: Sun Apr 25, 2010 9:56 pm Reply with quote
vince213333
Advanced user
Advanced user
Joined: Aug 03, 2009
Posts: 737
Location: Belgium




It's a bit confusing with the different 11... variables, I admit Smile But that's the intention of the creaters of this encoding scheme, to make it harder to decode Wink
View user's profile Send private message
PostPosted: Mon Apr 26, 2010 8:20 pm Reply with quote
fux0r360
Active user
Active user
Joined: Apr 25, 2010
Posts: 25




Can someone point me to some good reads?
View user's profile Send private message
PostPosted: Mon Apr 26, 2010 8:29 pm Reply with quote
vince213333
Advanced user
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 Smile
View user's profile Send private message
Need help decoding
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

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.045 Seconds