1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

PENTING | Scan File Backdoor Web Ente dari Serangan Hacker

Discussion in 'Berbagi Pengalaman' started by demicinta, Jul 20, 2011.

  1. demicinta

    demicinta Ads.id Fan

    Joined:
    Jun 26, 2011
    Messages:
    223
    Likes Received:
    68
    .

    Tadi ane dikasih petunjuk oleh temen di FB buat scan file file yang mencurigakan yang disisipkan Hacker, selain nyisipin file-file aneh siapa tahu ada file yang disisipin gak kita ketahui coba gunakan kode ini untuk scan file-file backdoor di web ente:

    script ini akan menscan file2 yang ada di root yang di curigai atau berpotensi sebagai shell . .

    PHP Code:

    #!/usr/bin/php
    <?php
    /*
    * this script find some shell like
    * c99, c100, r57, erne, Safe_Over
    * and try to find some of unknow shell searching specific words this can be
    * not safe
    *
    * how to use:
    * the script don't need no-one of these parameter thay are facoltative
    * -e Y/N enable disable eusristic mode (default is enable)
    * -p a number 1-100 , it's the percentual of word that must be find into the file to warm the euristic mode
    * -f check a single file
    * -d check a single dir (normaly the program is recursive chek ALL file )
    * powered by Dr. nefasto
    */
    $euristic__ = array("fopen", "file(", "file_get_contents", "sql", "opendir", "perms", "port", "eval", "system", "exec", "rename", "copy", "delete", "hack", "(\$_", "phpinfo", "uname", "glob", "is_writable", "is_readable", "get_magic_quotes_gpc()", "move_uploaded_file", "\$dir", "& 00", "get");
    $word__ = array(
    "c99" => array("c999shexit();", "setcookie(\"c999sh_surl\");", "c999_buff_prepare();"),
    "c100" => array("\$back_connect_c=\"f0VMRgEBAQA", "function myshellexec(\$command) {", "tEY87ExcilDfgAMhwqM74s6o"),
    "r57" => array("if(strpos(ex(\"echo abcr57\"),\"r57\")!=3)", "function ex(\$cfe)", "\$port_bind_bd_c=\"I2luY2x1ZGUg"),
    "erne"=> array("function unix2DosTime(\$unixtime = 0)", "eh(\$errno, \$er", "\$mtime=@date(\"Y-m-d H:i:s\",@filemti"),
    "Safe_Over" => array("function walkArray(\$array){", "function printpagelink(\$a, \$b, \$link = \"\")", "if (\$cmd != \"downl\")"),
    "cmd_asp" => array(" ' -- Read th", "ll oFileSys.D", "Author: Maceo")
    );
    //the script work
    $euristic_active = true;
    $euristic_sens = 40;
    for ($i = 1; $i < $argc; $i++)
    {
    if ($argv[$i] == "-h")
    help($argv[0]);
    elseif($argv[$i] == "-e")
    {
    if ($argv[$i+1] == "Y") $euristic_active = true;
    if ($argv[$i+1] == "N") $euristic_active = false;
    }
    elseif($argv[$i] == "-p")
    $euristic_sens = $argv[$i+1];
    elseif($argv[$i] == "-d")
    {
    dir_scan($argv[$i+1]);
    exit;
    }
    elseif($argv[$i] == "-f")
    {
    a($argv[$i+1]);
    exit;
    }
    }
    dir_scan(".");
    function dir_scan($name)
    {
    if (!is_dir($name))
    echo "$name is not a dir\n";
    if ($o = @opendir($name))
    {
    while(false !== ($file = readdir($o)))
    {
    if ($file == '.' or $file == '..' or $file == basename(__file__)){ continue;}
    else if (is_dir($name."/".$file)){dir_scan($name."/".$file);}
    else
    a($name."/".$file);
    }
    closedir($o);
    }
    else
    echo "i can't open $name dir\n";
    }
    function a($file)
    {
    global $euristic_active;
    global $euristic_sens;
    if ($l = file_get_contents($file))
    {
    if ( $shell = check($l))
    {
    echo "[DANGER] word_list > ".$file."\tprobably ".$shell." shell\n";
    }
    else if ($euristic_active)
    if ($t = check_euristic($l) and $t > $euristic_sens)
    {
    echo "[_ALERT] euristic $t%> ".$file."\tprobably is a shell\n";
    }
    }
    else
    {
    echo "i can't open $file file\n";
    }
    }
    function check($string)
    {
    $check = 0;
    global $word__;
    foreach($word__ as $shell => $code)
    foreach($code as $microcode)
    if (stripos($string, $microcode) !== false)
    {
    $check ++;
    if ($check == 3) return $shell;
    }
    return false;
    }
    function check_euristic($string)
    {
    global $euristic__;
    $check = 0;
    foreach($euristic__ as $code)
    if (stripos($string, $code) !== false)
    $check++;
    return intval(($check * 100) / count($euristic__));
    }
    function help($me)
    {
    echo "indonesianhacker shell scanner\n".
    "$me {-e [euristic method default = Y] Y/N -p [[0-100] euristic sensibility fewer == most feeble ] [-d [directory] / -f [file] ]}\n".
    "exemple: $me -e N -d /tmp\n"
    ;
    exit;
    }
    ?>

    Simpan misal dengan nama antisipasi.php
    terus panggil url ente misal: hxxp://sayangkamu.com/antisipasi.php


    Semoga bermanfaat, gak nolak dikasih like :D

    .
     
    aditwebid, rifle, serampangan and 4 others like this.
  2. pencari$

    pencari$ Ads.id Pro

    Joined:
    Mar 7, 2011
    Messages:
    287
    Likes Received:
    86
    Location:
    Dunia Khayalan
    Mantap Izin coba praktekin dulu suhu :D
     
  3. heripu

    heripu Super Hero

    Joined:
    Dec 14, 2010
    Messages:
    1,898
    Likes Received:
    421
    Location:
    Plembang
    Praktek,,,
     
  4. yanzbatara

    yanzbatara Super Hero

    Joined:
    Feb 23, 2011
    Messages:
    936
    Likes Received:
    40
    Location:
    Bandung
    nice share gan...:D
     
  5. comsoft

    comsoft Super Hero

    Joined:
    Mar 1, 2011
    Messages:
    902
    Likes Received:
    102
    Location:
    Jakarta
    makasih infonya, tambah ilmu lagi nih :))
     
  6. mastajudin

    mastajudin Hero

    Joined:
    Oct 4, 2010
    Messages:
    710
    Likes Received:
    163
    Location:
    Kota Cilegon Banten
    Keren ane coba dulu bos, like meluncur, thanks :D
     
  7. zonabisnis

    zonabisnis Super Hero

    Joined:
    Mar 24, 2010
    Messages:
    1,853
    Likes Received:
    197
    Location:
    Tangerang
    penting banget nih, thank's
     
  8. ibnuroem

    ibnuroem Super Hero

    Joined:
    Dec 13, 2009
    Messages:
    4,116
    Likes Received:
    361
    ayo, mana yg sudah praktek..nunggu reviewnya dulu

    soalnya gk ngerti yg beginian :swt2:
     
  9. randi

    randi Ads.id Pro

    Joined:
    Aug 11, 2006
    Messages:
    392
    Likes Received:
    43
    Ato jangan2 nih scrip yg buka backdoor :lol: :lol:

    Bcanda bro soalnya ga ngerti :komunis: :komunis:
     
  10. shelfie

    shelfie Super Hero

    Joined:
    Aug 3, 2010
    Messages:
    1,911
    Likes Received:
    301

    ane juga takut, karena gak tau coding :senyum:
     
  11. galangpm

    galangpm Super Hero

    Joined:
    Mar 11, 2010
    Messages:
    1,154
    Likes Received:
    82
    Location:
    Klaten
    hoho itu apa yah :komunis: menurut pengalaman temen ane yg defacer klo wp biasanya lewat theme sama plugins kebanyakan mereka bisa cari celah dari situ.
     
  12. serampangan

    serampangan Super Hero

    Joined:
    Nov 4, 2010
    Messages:
    983
    Likes Received:
    96
    Location:
    Sukoharjo-Tangerang-Sungailiat
    sangat bermanfaat...yuk mari di coba
    like nya dah di pencetssss
     
  13. cicak

    cicak Ads.id Pro

    Joined:
    May 22, 2010
    Messages:
    288
    Likes Received:
    1
    nunggu review dulu :)
     
  14. anisku11

    anisku11 Super Hero

    Joined:
    Jun 28, 2011
    Messages:
    1,627
    Likes Received:
    179
    Location:
    Semarang
    ,,wah berguna banget nih gan
    :senyum:
    Ijin praktek dulu
    ---
    klo expert dh pke Acunetix
     
  15. GentZu AoZora

    GentZu AoZora Forbidden

    Joined:
    Nov 28, 2010
    Messages:
    2,932
    Likes Received:
    275
    Location:
    Bandung City
    itu namanya komentar atau keterangan, mau di ubah tulisanya jadi saya ganteng jg gk apa2 :D
     
  16. aditwebid

    aditwebid Super Hero

    Joined:
    Mar 10, 2011
    Messages:
    1,877
    Likes Received:
    32
    Location:
    Dumai - Medan - Brastagi
    hasilnya kek gini gan...

    gimana tuh? :nangis:
     
  17. galangpm

    galangpm Super Hero

    Joined:
    Mar 11, 2010
    Messages:
    1,154
    Likes Received:
    82
    Location:
    Klaten
    banyak amir Alert nya, wadoh.... :senyum:
     

Share This Page