Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
May 27, 2024
 Members List
 IRC chat
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 Sql Char Encoder
 y3dips ITsec
 Md5 Cracker
 User Manuals
 Recommend Us
 Your Account

User Info
Welcome, Anonymous

Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9145

People Online:
Visitors: 440
Members: 0
Total: 440
PacketStorm News
·301 Moved Permanently

Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> de-obfuscator Fopo
Post new topic  Reply to topic View previous topic :: View next topic 
de-obfuscator Fopo
PostPosted: Fri Dec 18, 2015 11:16 am Reply with quote
Regular user
Regular user
Joined: Feb 07, 2013
Posts: 10

fwrite(STDOUT, "
     * ----------------------------------------------------------------------------
     * 'De-Obfuscator for http://fopo.com
     * ----------------------------------------------------------------------------
        $contents = file_get_contents($argv[1]);
        $eval = explode('(',$contents);
        $base64 =  explode ('"',$eval[2]);
        list($i,$wanted) = explode("eval",base64_decode($base64[1]));
        list($ni,$wanted2) = explode("))))",$wanted);
        list($nni,$obfuscated) = explode('"',$ni);
        $decoded = "<?php ".gzinflate(base64_decode(str_rot13($obfuscated)));
        $beautified = indent_proper($decoded);
        $result = preg_split('/"/', $beautified);
        foreach ($result as $r){
            if(preg_match("/^\\\\/", $r, $matches)){
                $beautified = str_ireplace('"'.$r.'"','"'.stripcslashes($r).'"',$beautified);
                $beautified = str_ireplace("'".$r."'","'".stripcslashes($r)."'",$beautified);
        $out = write_to_file($beautified,$argv[2]);
        $link = basename($out);
        echo "File Wrote to ".$link."\n\n";
        echo "\nPlease provide the input file name,RTFM Dude,RTFM.!\n\n";
/*Helper functions-Not many though*/
function indent_proper($text){
    $v1= str_replace("}","\n}\n",str_replace("{","{\n",str_replace(";",";\n",$text)));
    return str_replace("return","\n return",str_replace("<?php","\n<?php",$v1));
function write_to_file($string_data,$outname){
        $outname = "decoded.php";
    $fh = fopen($outname, 'w') or die("can't open file");
    fwrite($fh, $string_data);
    return $outname;
View user's profile Send private message
de-obfuscator Fopo
  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 topic  Reply 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-2020 Janek Vind "waraxe"
Page Generation: 0.118 Seconds