Waraxe IT Security Portal
Login or Register
October 8, 2026
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: 3450
Members: 0
Total: 3450
Full disclosure
[0day-rubbish] StreamSets Transformer 3.17.0 auth-mode none fallback and un-sandboxed ScalaDTransform execution to container root (8.1 primary)
[0day-rubbish] RCDevs WebADM 2.4.14 authenticated log viewer sid command injection to webadm uid 999 code execution (7.2)
[0day-rubbish] Maian Cart 3.8 addBanners unrestricted banner upload to PHP webshell and administrator command execution (7.2 primary, PR:H)
[0day-rubbish] IPConfigure Orchid VMS 26.3.0 authenticated DNF repository GPG-key property command injection to root (7.2)
[0day-rubbish] Circutor LineEds 24.11.14-r0 unauthenticated pwrstudio events.xml shellExecute command injection (9.8)
[0day-rubbish] Asustor ADM 3.5.9.RWM1 (AS602T) music.cgi act=live stored-filename command injection reaching system() (8.8 primary, PR:L)
[0day-rubbish] Advantech WebAccess Node 9.2.3 unauthenticated CrystalRpt.aspx file upload and path traversal to code execution in w3wp.exe (9.8)
SEC Consult Research 20261001 :: Arbitrary Email sender spoofing in Apple iCloud mail
SEC Consult SA-20260924-0 :: Multiple Vulnerabilities in Paessler PRTG Network Monitor #CVE-2026-4637 #CVE-2026-4638
[NotCVE-2026-0019] game-music-emu through 0.6.5 VGM Command Interpreter Missing Operand Length Check Allows Heap Out-of-Bounds Read
[NotCVE-2026-0018] game-music-emu (libgme) through 0.6.5 Unbounded GYM Command Loop Allows Heap Out-of-Bounds Read
[NotCVE-2026-0017] game-music-emu (libgme) 0.6.5 and Earlier AY Loader NULL Pointer Dereference Allows Denial of Service
[NotCVE-2026-0016] game-music-emu VGM Command Interpreter Unvalidated 0xE0 PCM Seek Offset Allows Out-of-Bounds Read and Denial of Service
APPLE-SA-09-28-2026-3 macOS Sequoia 15.8.1
APPLE-SA-09-28-2026-2 macOS Tahoe 26.7.1
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("JGxsbD0wO2V2YWwoYmFzZTY0X2RlY29kZSgiSkd4c2JHeHNiR3hzYkd4c1BTZGlZWE5sTmpSZlpHVmpiMlJsSnpzPSIpKTskbGw9MDtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd3OUoyOXlaQ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bGxsKytdPSRsbGxsbGxsbGxsKCRsWyRsbGxsbCsrXSk7JGxsbGxsbDw8PTE7JGxsbGxsbGxsbC0tO31ldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd4c2JEMG5ZMmh5SnpzPSIpKTskbGxsbGw9MDtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkQwaVB5SXVKR3hzYkd4c2JHeHNiR3hzYkNnMk1pazciKSk7JGxsbGxsbGxsbGw9IiI7Zm9yKDskbGxsbGw8JGxsbGxsbGw7KXskbGxsbGxsbGxsbC49JGxsbGxsbGxsbGxsbCgkbGxsbGxsbGxbJGxsbGxsKytdXjB4MDcpO31ldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkM0OUpHeHNiR3hzYkd4c2JHd3VKR3hzYkd4c2JHeHNiR3hzYkNnMk1Da3VJajhpT3c9PSIpKTtldmFsKCRsbGxsbGxsbGwpOw=="));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



PCWizardHub - Helping you fix, build, and optimize your PC life
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.029 Seconds