SlideShare a Scribd company logo
1 of 10
<?php
##############config bot################
$bot['like']        = true; // false untuk non aktifkan autolike
$bot['ck_k']        = true; // false untuk non aktifkan fungsi jika status
mengandung kata maka di comen dengan kata
$bot['ck_u']        = true; // true jika pengkondisian di non aktifkan akan
beralih ke koment umum jika kondisi aktif komen umum juga aktif (tidak akan
dobel komen jika keduanya aktif)
$bot['time']        = true; // false untuk menonaktifkan fungsi waktu di
komentar
$app['aces']        = ""; //
AAADoZALosAoMBAL1pVVEStfDEVH5xBhKtKcwFvIC6ulaKuWZCRsLS6at3IJnIjIBN295cEoHCOEqU4I
8yZAljYh5UzZBe3ji55CcLthKnAZDZD&expires_in=517
##############config bot################
$caspercell="



##############By Me####################
#    BOT Facebook v 1.4cr 3/feb/2011 modified 20/agu/2012
#
#    Created by casper_kae alkaafi
#    simple bot komment & like
#    thanks to balikita team
#
#    mohon untuk tidak merubah tulisan ini untuk saling menghargai.
#    tunggu Versi bot berikutnya. :D salam
#    #bikin pas nunggu anu. laporannya lagi menstruasi. hasyuuuuu. :(
#    #padahal udah karaten nunggu.
#######################################


";
##############config msg################
$msg['com_no1'] = array("Komen no 1 dapet apa ni? ","Asek dah bisa komen no
1","hore aku jadi yg no 1 komen nya ","aku komen no 1 loh sob :D ","ahirnya no 1
jga ampe lari2 aq");
$msg['com_no_'] = array("meski no <n> yg penting hadir..","yah aku koment no
<n>. -_- . "," agak macet hostingnya. jadi telat ngk no 1. malah no <n>","tadi
boker dulu jadi koment no <n>. ngk no 1.");
$msg['com_umum'] = array("<no> n slalu ada buat <sex> <name> [-_^]",
                  "Mampir di statusmu blehkn <sex> <name>.? [-_^]n<no>",
                  "ngekoment statusmu <sex> .n <no> <sex> <name>.. :D",
                  "<no>n maaf ea aq mw ikut koment statusmu <sex> <name>
nmiggir mingger <sex> hahahhaha :D",
                  "<no>ncuma mo bilang. statusmu T.O.P BGT dah <sex> <name> [-
_^]",
                  "Bngung mo koment apa <sex> <name> (^_-) like aja dehhn<no>",
                  "Nulis status gak perlu mikir yang penting koment hadir. stuju
kan <sex>..?n<no>",
                  "<no>n absen koment aja deh <sex> <name>. :D",
                  "like n komen slalu hadir <sex> <name> :D <no>",
                  "<no>n Numpang ngisi koment distatusmu <sex> <name>..:D",
                  "<no>n ga kan ngecewain deh, like dan komen hadir selalu
untukmu <sex>",
                  "<sex> <name>... statusmu sip banget.T.o.P dahn<no>",
                  "apapun statusnya? jempol quu slalu mampir <sex>n<no>",
                  "status <sex> <name> emang mancaps.nkeren banget sihh
statusnya [-_^]n<no>",
                  "<no>n mau komen apa ya?? bingung?? nambah like this, biar
tambah eksis aja <sex>. hihihihihi.... :D",
                  "status kamu oke <sex> like this n <no> ",
                  "<no>ndikasih tempat komen ama <sex> <name>. gak mungkin gak
koment gue..",
"Aku Koment lagi <sex>? n<no>. <name> nslalu ada buat
statusmu <sex>",
                   "Pokoknya Gw jadi penggemar setia postinganmu <sex>. nJadi
slalu setia hadir.    n<no>",
                   "walah <sex> <name> update status. ane slalu setia hadir
<sex>.   hihin<no>",
                   );

$msg['com_photo'] = array("<no> n wow kerennnn potho     nya <sex> <name> ",
                         "udah aku like. n<no> potho     nya sip <sex>",
                         " waw siapa itu <sex> <name>     keren dehh.?",
                         "<sex> <name> foto siapa itu     <sex> keren bngtn<no>",
                  );
$msg['com_kondisi'] = array(
                             array(
                                 array( "galau",
                                        "galaw",
                                                                "galauu",
                                            "gallau",
                                            "gallaw",
                                       ),
                                   array(   "<sex> <name> lagi galau kasihan..   ",
                                            "aku juga lagi galau <sex> <name>.
sama",
                                       )
                                   ),
                               array(
                                   array(   "ganteng",
                                            "guanteng",
                                            "keren",
                                            "kerren",
                                       ),
                                   array(   "<sex> <name> maksih ea udah bilang aku
ganteng and keren..   ",
                                            "kog tau sih kalau w ganteng and keren
<sex> <name>. ",
                                       )
                                   ),
                               array(
                                   array(   "cinta",
                                            "sayank",
                                            "sayang",
                                            "cnta",
                                       ),
                                   array(   "<sex> <name> cinta2 an trus nihh
statusnya..   ",
                                            "wahh hari gini masih cinta2an ama
sayank2an   <sex> <name>. ",
                                       )
                                   ),
                               array(
                                   array(   "pacar",
                                            "pacaran",
                                       ),
                                   array(   "<sex> <name> pacran trus nihh
statusnya..   ",
                                            "wahh mau pcaran ga ajak2 aku nih
<sex> <name>. ",
                                       )
                                   ),
                               array(
                                   array(   "alhamdulilah",
                                            "alhamdulillah",
                                            "allhamdullilah",
"alhamdhulillah",
                                            "allhamdulillah",
                                       ),
                                   array(   "alhamdulillah <sex> <name> .. ",
                                            "allhamdullilahhirobilalamin   <sex>
<name>. ",
                                       )
                                   ),
                               array(
                                   array(   "sepi",
                                            "pada kemana",
                                            "pada kmn",
                                            "pd kemn",
                                            "pd kmn",
                                            "pada kemanna",
                                            "cepi",
                                            "seppi",
                                            "ceppi",
                                       ),
                                   array(   "Nih Udah aQ ramein <sex>. hhe",
                                            "Meski sepi JEMPOL hendro masih setia di
status <sex> <name>.   hhe",
                                        "He'eh ni penghuni FB pada tidur kali.
tapi JEMPOL anaz slalu hadir buat statusmu kan <sex>?",
                                    )
                                ),
                            array(
                                array( "semoga",
                                        "moga",
                                        "amin",
                                        "mudah mudahan",
                                        "mudah2an",
                                        "amien",
                                        "amin",
                                        "mudah-mudahan",
                                    ),
                                array( "Amin <sex> <name>.. Skalian like this
juga ah. biar tambah exsis. hhe",
                                        "Mang knape <sex> <name>.?",
                                        "amien <sex> <name>aku cuma bisa
bantuin doa ajahh ea :p.",
                                    )
                                ),
                            array(
                                array( "jancok",
                                        " asu ",
                                        " raimu ",
                                        " matamu ",
                                        " bangsat ",
                                        "fvck",
                                        "damn",
                                        "gathel",
                                        "sialan",
                                        "fuck",
                                        "anjink",
                                        "anjing",
                                        "esmosi",
                                        "emosi",
                                    ),
                                array( "Wew. <sex> <name> lagi marah. :) tetep
Q kasi LIKE THIS dah. hhe",
                                        "ada apa <sex>? kok marah amat..?
wkwkwkwk",
                                        "Robot versi gaul buat ademin kamu <sex>
<name>.    wkwkwkwk",
                                           "Meski km marah <sex>. tetep hadir aja
dah n like this.    :D",
                                      )
                                  ),
                              array(
                                  array(   "lapar",
                                           " ewul ",
                                           " luwe ",
                                           "laper",
                                           " krucuk",
                                      ),
                                  array(   "Ni makanan buanyak disini. mau a
<sex>..?   hhe",
                                           "sama <sex> <name> klaparan nih.
nyindir.com.    wkwkwkwk",
                                      )
                                  ),
                              array(
                                  array(   "sabar",
                                           "sabbar ",
                                           " sabarr",
                                           "saabarr",
                                           " ssabar",
                                      ),
                                  array(   "orang sabar di sayank pacar   <sex>..?
hhe",
                                           "sabar itu berkah <sex> <name> .
wkwkwkwk",
                                      )
                                  ),
                              array(
                                  array(   "askum",
                                           "asalam",
                                           "assalam",
                                           "mekum",
                                           "laikum",
                                      ),
                                  array(   "Waalaikumsalam warahmatullahi
wabarakatuh. <sex> <name>    hihi",
                                           "Waskum <sex>..",
                                      )
                                  ),
                              array(
                                  array(   "good morning",
                                           " selamat pagi ",
                                           " met pagi ",
                                           "pagi pagi",
                                           " met pggi",
                                      ),
                                  array(   "good morning <sex>..? hhe",
                                           "pagii <sex> <name> numpang lewat yah
wkwkwkwk",
                                      )
                                  ),
                              array(
                                  array(   "sedih",
                                           "sakit hati",
                                           "cedih",
                                           "bete",
                                           "sdih",
                                      ),
                                  array(   "knpa sedihh <sex> <name>   kan ada akuu
hihi",
"jangan sedih donkk <sex>.kan ada aku.",
                                     )
                                ),
                            array(
                                array(   "pamid",
                                         "off dulu",
                                         "ngantuk",
                                         "bobok",
                                         "tidur",
                                         "bubug",
                                         "bobog",
                                         "tiddur",
                                         "opp dulu",
                                         "tidor",
                                    ),
                                array(   "lho aq ditinggal <sex> <name>
wkwkwkwk",
                                         "wew. masi jam sgini <sex> mo kmana.?",
                                         "Walah kmana <sex> <name>..?",
                                         "Lho <sex>. weh Ditinggal dah ane.
hhe.",
                                     )
                                ),
                             );
$casperbot=new cr_bot;
error_reporting(5);
@ignore_user_abort(TRUE);
@set_magic_quotes_runtime(0);
@ini_set("max_execution_time",0);
$msg['me'] = json_decode($casperbot->http_hit("https://graph.facebook.com/me?
access_token=".$app['aces']));
$hit=0;
$stat=array(1,2);
$stat=$stat[rand(0,count($stat) - 1)];
if(strlen($caspercell)==482 && ereg("a"."lk"."a"."af"."i",$caspercell))
{$okebot=true;}
while($okebot==true){
    $msg['type'] = "home";
    if($stat==1){
        $stat=2;
        $tes=($casperbot->get_cr($msg,$bot,$app));
    }elseif($stat==2){
        $stat=1;
        $wwwo=$casperbot->notif_respon($msg,$bot,$app);
    }
    $hit = $hit+1;
    if($hit>=5){
        $wwwo=file_get_contents("http://".$_SERVER['HTTP_HOST'].
$_SERVER['REQUEST_URI']);
        break;
    }
}
class cr_bot{
    function notif_respon($msg,$bot,$app){
    }
    function acak_komen($msg,$bot){
        $kommen = '';
        if($bot['ck_k']==true){
            foreach($msg['com_kondisi'] as $kom){
                 foreach($kom[0] as $cx){
                     if(ereg($cx,$msg['message'])){ $kommen = $kom[1]
[rand(0,count($kom[1]) - 1)]; }
                 }
            }
}
        if($kommen=='' && $bot['ck_u']==true){ $kommen = $msg['com_umum']
[rand(0,count($msg['com_umum']) - 1)]; }
        return $kommen;
    }
    function get_cr($msg,$bot,$app){
        if($msg['type']=="home" && $bot && $app['aces']){
            $query_cr_fql = "select
type,app_id,comments,post_id,actor_id,target_id,message,created_time from stream
where strpos(created_time,".substr(time(),0,6).") >=0 AND source_id in (select
uid2 from friend where uid1=me())";
            $status_temen = "https://api.facebook.com/method/fql.query?query=".
$query_cr_fql."&limit=50&format=json&access_token=".$app['aces'];
            $status_temen = json_decode($this->http_hit($status_temen));
            if(count($status_temen)>=0){
                 foreach($status_temen as $status){
                     if($status->target_id==null && $status->type==46){
                         $msg['message']=$status->message;
                         $target_cr = $this->get2tx($status->post_id,"_");
                         $target_cr = json_decode($this-
>http_hit("https://graph.facebook.com/".$target_cr."?access_token=".
$app['aces']));
                         $sex         = '';
                         $nameto      = '';
                         $no_com      = '';
                         if($status->comments->count==0){ $no_com=$msg['com_no1']
[rand(0,count($msg['com_no1']) - 1)]; }else{ $no_com=$msg['com_no_']
[rand(0,count($msg['com_no_']) - 1)]; }
                         $no_com      = str_replace("<n>",$status->comments-
>count+1,$no_com);
                         $male        = array("mas","kang","mbah","pak");
                         $female      = array("mbak","sis","bu","beb");
                         if($target_cr->gender=="male")
{$sex=$male[rand(0,count($male) - 1)];}
                         elseif($target_cr->gender=="female")
{$sex=$female[rand(0,count($female) - 1)];}
                         else{$sex='';}
                         if($target_cr->middle_name && strlen($target_cr-
>middle_name)>=3)      {$nameto=$target_cr->middle_name;}
                         elseif($target_cr->first_name && strlen($target_cr-
>first_name)>=3)    {$nameto=$target_cr->first_name;}
                         elseif($target_cr->last_name && strlen($target_cr-
>last_name)>=3)      {$nameto=$target_cr->last_name;}
                         else{ $nameto=$target_cr->name; }
                         $cr_delay     = "";
                         if($bot['time']==true){
                              $hs_dt        = time() - $status->created_time;
                              $hs_mn        = 0;
                              if($hs_dt>=60){ $hs_mn = $hs_dt / 60; $hs_mn =
floor($hs_mn); $hs_dt = $hs_dt - ($hs_mn*60); }
                              if($hs_mn!=0){ $cr_delay=$hs_mn." menit ".$hs_dt."
detik"; }else{ $cr_delay=$hs_dt." detik"; }
                         }
                         $cr_msg['to']        = $status->post_id;
                         $komen_cr     = $this->acak_komen($msg,$bot);
                         $cr_msg['text']      = str_replace("<no>",
$no_com,str_replace("<sex>",$sex,str_replace("<name>",$nameto,
$komen_cr)))."nn|maaf ni komen qu telat |-".$cr_delay."-| Jam lg eror..|";
                         if($status->app_id==null OR $status->app_id==2254487659)
{
                            $cr_msg['text']          = $cr_msg['text'].$this-
>wkthit();
                         }else{
                            $cr_msg['text']          = $cr_msg['text'].$this-
>wkthit();
                        }
                        $cekdulu = $this-
>simlog($cr_msg['to']."<=respon=status");
                        if($cekdulu==true){
                             if($komen_cr!=""){
                                 $cr_msg['type']     = "cr_com";
                                 $this->send_cr($cr_msg,$bot,$app);
                             }
                             if($bot['like']==true){
                                 $cr_msg['type']     = "cr_jempol";
                                 $this->send_cr($cr_msg,$bot,$app);
                             }
                        }
                    }elseif($status->target_id==null && $status->type==247){
                        $msg['message']=$status->message;
                        $target_cr = $this->get2tx($status->post_id,"_");
                        $target_cr = json_decode($this-
>http_hit("https://graph.facebook.com/".$target_cr."?access_token=".
$app['aces']));
                        $sex         = '';
                        $nameto      = '';
                        $no_com      = '';
                        if($status->comments->count==0){ $no_com=$msg['com_no1']
[rand(0,count($msg['com_no1']) - 1)]; }else{ $no_com=$msg['com_no_']
[rand(0,count($msg['com_no_']) - 1)]; }
                        $no_com      = str_replace("<n>",$status->comments-
>count+1,$no_com);
                        $male        = array("mas","kang mas","om","pakde");
                        $female      = array("mbak","sis","non","mbae");
                        if($target_cr->gender=="male")
{$sex=$male[rand(0,count($male) - 1)];}
                        elseif($target_cr->gender=="female")
{$sex=$female[rand(0,count($female) - 1)];}
                        else{$sex='';}
                        if($target_cr->middle_name && strlen($target_cr-
>middle_name)>=3)     {$nameto=$target_cr->middle_name;}
                        elseif($target_cr->first_name && strlen($target_cr-
>first_name)>=3)   {$nameto=$target_cr->first_name;}
                        elseif($target_cr->last_name && strlen($target_cr-
>last_name)>=3)     {$nameto=$target_cr->last_name;}
                        else{ $nameto=$target_cr->name; }
                        $cr_delay     = "";
                        if($bot['time']==true){
                             $hs_dt        = time() - $status->created_time;
                             $hs_mn        = 0;
                             if($hs_dt>=60){ $hs_mn = $hs_dt / 60; $hs_mn =
floor($hs_mn); $hs_dt = $hs_dt - ($hs_mn*60); }
                             if($hs_mn!=0){ $cr_delay=$hs_mn." menit ".$hs_dt."
detik"; }else{ $cr_delay=$hs_dt." detik"; }
                        }
                        $cr_msg['to']        = $status->post_id;
                        $komen_cr     = $this->acak($msg['com_photo']);
                        $cr_msg['text']      = str_replace("<no>",
$no_com,str_replace("<sex>",$sex,str_replace("<name>",$nameto,
$komen_cr)))."nn|krn macet komen telat ".$cr_delay." maaf ya|";
                        if($status->app_id==null OR $status->app_id==2254487659)
{
                           $cr_msg['text']          = $cr_msg['text'].$this-
>wkthit();
                        }else{
                           $cr_msg['text']          = $cr_msg['text'].$this-
>wkthit();
                        }
$cekdulu = $this-
>simlog($cr_msg['to']."<=respon=photo");
                         if($cekdulu==true){
                             if($komen_cr!=""){
                                 $cr_msg['type']     = "cr_com";
                                 $this->send_cr($cr_msg,$bot,$app);
                             }
                             if($bot['like']==true){
                                 $cr_msg['type']     = "cr_jempol";
                                 $this->send_cr($cr_msg,$bot,$app);
                             }
                         }
                     }elseif($status->type==11111){
                     }
                }
            }
        }
    }
    function send_cr($msg,$bot,$app){
        if($app['aces']){
            #$token = $this->renew_token($app);
            if($msg['text'] && $msg['type']=='cr_com' && $msg['to']){
                $this-
>http_hit("https://api.facebook.com/method/stream.addComment?post_id=".
$msg['to']."&comment=".$msg['text']."&access_token=".$app['aces']);
            }elseif($msg['type']=='cr_jempol' && $msg['to']){
                $this->http_hit("https://api.facebook.com/method/stream.addLike?
post_id=".$msg['to']."&access_token=".$app['aces']);
            }elseif($msg['type']=='cr_feed'){
                #$this->resume();
            }
        }
    }
    function renew_token($app){
        if($app['468144096551377']==true){
           $url = "https://graph.facebook.com/oauth/access_token?client_id=".
$app['id']."&client_secret=".
$app['secret']."&grant_type=fb_exchange_token&fb_exchange_token=".$app['aces'];
           $url = $this->http_hit($url);
           $url = str_replace("access_token=","",$url);
           $url = $this->get2tx($url,"&");
        }else{
            $url = $app['aces'];
        }
        return $url;
    }
    function http_hit($url){
        $url = $url."&casper";
        while ($i < strlen($url)) {
            if(substr($url,$i,1)=="="){
                $belum_encode = $this->get2tx(substr($url,
$i+1,strlen($url)),"&");
                $sudah_encode = urlencode($belum_encode);
                $url = str_replace($belum_encode,$sudah_encode,$url);
            }
            $i++;
        }
        $url = str_replace("&casper","",$url);
        return file_get_contents($url);
    }
    function simlog($cr_id) {
        $fname = "casper_log.txt";
        $lihatiplist=fopen ($fname, "rb");
        $text='';
if($lihatiplist){
             $spasipol = "";
             do {
                  $barislistip = fread($lihatiplist, 512);
                  if(strlen($barislistip) == 0){ break; }
                  $spasipol .= $barislistip;
             } while(true);
             fclose ($lihatiplist);
             for ($i = 1; $i <= 10; $i++) {$spasipol = str_replace(" ","",
$spasipol);}
             $text=$text.$spasipol;
        }else{$text="";}
        if(ereg($cr_id,$text)){
             return false;
        }else{
             $text = $cr_id."n".$text;
             if(strlen($text)>=1000000){ $text=substr($text,0,500000); }
             $w_file=@fopen($fname,"w") or bberr();
             if($w_file) {
                  @fputs($w_file,$text);
                  @fclose($w_file);
             }
             return true;
        }
    }
    function chart_cr($text){

    }
    function get1tx($text,$key) {
         $hit     = 0;
         $ptx     = strlen($text);
         do {
           if(strtolower(substr($text,$hit,strlen($key)))==strtolower($key)){
             return(substr($text,$hit,$ptx));
           }
           if($hit >= $ptx){break;}else{$hit=$hit+1;}
         } while(true);
         }
    function get2tx($text,$key) {
      $hit      = 0;
      $ptx      = strlen($text);
      do {
           if(strtolower(substr($text,$hit,strlen($key)))==strtolower($key)){
             return(substr($text,0,$hit));
           }
           if($hit >= $ptx){break;}else{$hit=$hit+1;}
      } while(true);
    }
    function get3tx($text,$key) {
      $hit      = 0;
      $ptx      = strlen($text);
      do {
       if(strtolower(substr($text,$ptx-$hit,strlen($key)))==strtolower($key)){
         return(substr($text,0,$ptx-$hit));
       }
       if($hit >= $ptx){break;}else{$hit=$hit+1;}
      } while(true);
    }
    function acak($text){
         return $text[rand(0,count($text) - 1)];
    }
    function wkthit(){
         $hari=gmdate("D", time()+60*60*7);
         if((gmdate("D", time()+60*60*7))=="Sun"){ $hari="Minggu"; }
if((gmdate("D", time()+60*60*7))=="Mon"){ $hari="Senin"; }
        if((gmdate("D", time()+60*60*7))=="Tue"){ $hari="Selasa"; }
        if((gmdate("D", time()+60*60*7))=="Wed"){ $hari="Rabu"; }
        if((gmdate("D", time()+60*60*7))=="Thu"){ $hari="Kemis"; }
        if((gmdate("D", time()+60*60*7))=="Fri"){ $hari="Jum'at"; }
        if((gmdate("D", time()+60*60*7))=="Sat"){ $hari="Sabtu"; }
        $jam="Jam : ".gmdate("g:i a", time()+60*60*7);
        return "n|htp://facebook.com/whitehatindonesia |
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia
htp://facebook.com/whitehatindonesia ";

    }
}
######################
# versi full.
# yg ini dishare gk yah.? hehehehe
##############config bot################
#$bot['status']          = true; // <= boleh conten web
#$bot['news']            = true; //
#$bot['youtube']         = true; //
#$bot['chat']            = true; // untuk mengaktifkan bot chat / obrolan
#$bot['like']            = true; // false untuk non aktifkan autolike
#$bot['comen_jika']      = true; // false untuk non aktifkan fungsi jika status
mengandung kata maka di comen dengan kata
#$bot['comen_umum']      = true; // true jika pengkondisian di non aktifkan akan
beralih ke koment umum jika kondisi aktif komen umum juga aktif (tidak akan
dobel komen jika keduanya aktif)
#$bot['birtday']         = true; // true untuk otomatis mengirim wall selamat
ulang tahun jam 12 malam
#$bot['waduh qu telat'] = true; // false untuk menonaktifkan fungsi senggang
telat komentar
#$bot['time']            = true; // false untuk menonaktifkan fungsi waktu di
komentar
#$bot['respon_like']     = true; // false untuk menonaktifkan respon like di
komentar
#$bot['respon_komt']     = true; // false untuk menonaktifkan respon komen status
yg di komentar
#$bot['respon_full']     = true; // false untuk menonaktifkan respon komen status
yg di komentar (lebih efektif tapi membuat bot semakin lama ngeload)
#$bot['smile']           = true; // menggunakan random autotext bb.
#$bot['alay']            = true; // otomatis merubah huruf menjadi simbol2 alay.
##############config bot################
?>

More Related Content

Featured

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Ajie

  • 1. <?php ##############config bot################ $bot['like'] = true; // false untuk non aktifkan autolike $bot['ck_k'] = true; // false untuk non aktifkan fungsi jika status mengandung kata maka di comen dengan kata $bot['ck_u'] = true; // true jika pengkondisian di non aktifkan akan beralih ke koment umum jika kondisi aktif komen umum juga aktif (tidak akan dobel komen jika keduanya aktif) $bot['time'] = true; // false untuk menonaktifkan fungsi waktu di komentar $app['aces'] = ""; // AAADoZALosAoMBAL1pVVEStfDEVH5xBhKtKcwFvIC6ulaKuWZCRsLS6at3IJnIjIBN295cEoHCOEqU4I 8yZAljYh5UzZBe3ji55CcLthKnAZDZD&expires_in=517 ##############config bot################ $caspercell=" ##############By Me#################### # BOT Facebook v 1.4cr 3/feb/2011 modified 20/agu/2012 # # Created by casper_kae alkaafi # simple bot komment & like # thanks to balikita team # # mohon untuk tidak merubah tulisan ini untuk saling menghargai. # tunggu Versi bot berikutnya. :D salam # #bikin pas nunggu anu. laporannya lagi menstruasi. hasyuuuuu. :( # #padahal udah karaten nunggu. ####################################### "; ##############config msg################ $msg['com_no1'] = array("Komen no 1 dapet apa ni? ","Asek dah bisa komen no 1","hore aku jadi yg no 1 komen nya ","aku komen no 1 loh sob :D ","ahirnya no 1 jga ampe lari2 aq"); $msg['com_no_'] = array("meski no <n> yg penting hadir..","yah aku koment no <n>. -_- . "," agak macet hostingnya. jadi telat ngk no 1. malah no <n>","tadi boker dulu jadi koment no <n>. ngk no 1."); $msg['com_umum'] = array("<no> n slalu ada buat <sex> <name> [-_^]", "Mampir di statusmu blehkn <sex> <name>.? [-_^]n<no>", "ngekoment statusmu <sex> .n <no> <sex> <name>.. :D", "<no>n maaf ea aq mw ikut koment statusmu <sex> <name> nmiggir mingger <sex> hahahhaha :D", "<no>ncuma mo bilang. statusmu T.O.P BGT dah <sex> <name> [- _^]", "Bngung mo koment apa <sex> <name> (^_-) like aja dehhn<no>", "Nulis status gak perlu mikir yang penting koment hadir. stuju kan <sex>..?n<no>", "<no>n absen koment aja deh <sex> <name>. :D", "like n komen slalu hadir <sex> <name> :D <no>", "<no>n Numpang ngisi koment distatusmu <sex> <name>..:D", "<no>n ga kan ngecewain deh, like dan komen hadir selalu untukmu <sex>", "<sex> <name>... statusmu sip banget.T.o.P dahn<no>", "apapun statusnya? jempol quu slalu mampir <sex>n<no>", "status <sex> <name> emang mancaps.nkeren banget sihh statusnya [-_^]n<no>", "<no>n mau komen apa ya?? bingung?? nambah like this, biar tambah eksis aja <sex>. hihihihihi.... :D", "status kamu oke <sex> like this n <no> ", "<no>ndikasih tempat komen ama <sex> <name>. gak mungkin gak koment gue..",
  • 2. "Aku Koment lagi <sex>? n<no>. <name> nslalu ada buat statusmu <sex>", "Pokoknya Gw jadi penggemar setia postinganmu <sex>. nJadi slalu setia hadir. n<no>", "walah <sex> <name> update status. ane slalu setia hadir <sex>. hihin<no>", ); $msg['com_photo'] = array("<no> n wow kerennnn potho nya <sex> <name> ", "udah aku like. n<no> potho nya sip <sex>", " waw siapa itu <sex> <name> keren dehh.?", "<sex> <name> foto siapa itu <sex> keren bngtn<no>", ); $msg['com_kondisi'] = array( array( array( "galau", "galaw", "galauu", "gallau", "gallaw", ), array( "<sex> <name> lagi galau kasihan.. ", "aku juga lagi galau <sex> <name>. sama", ) ), array( array( "ganteng", "guanteng", "keren", "kerren", ), array( "<sex> <name> maksih ea udah bilang aku ganteng and keren.. ", "kog tau sih kalau w ganteng and keren <sex> <name>. ", ) ), array( array( "cinta", "sayank", "sayang", "cnta", ), array( "<sex> <name> cinta2 an trus nihh statusnya.. ", "wahh hari gini masih cinta2an ama sayank2an <sex> <name>. ", ) ), array( array( "pacar", "pacaran", ), array( "<sex> <name> pacran trus nihh statusnya.. ", "wahh mau pcaran ga ajak2 aku nih <sex> <name>. ", ) ), array( array( "alhamdulilah", "alhamdulillah", "allhamdullilah",
  • 3. "alhamdhulillah", "allhamdulillah", ), array( "alhamdulillah <sex> <name> .. ", "allhamdullilahhirobilalamin <sex> <name>. ", ) ), array( array( "sepi", "pada kemana", "pada kmn", "pd kemn", "pd kmn", "pada kemanna", "cepi", "seppi", "ceppi", ), array( "Nih Udah aQ ramein <sex>. hhe", "Meski sepi JEMPOL hendro masih setia di status <sex> <name>. hhe", "He'eh ni penghuni FB pada tidur kali. tapi JEMPOL anaz slalu hadir buat statusmu kan <sex>?", ) ), array( array( "semoga", "moga", "amin", "mudah mudahan", "mudah2an", "amien", "amin", "mudah-mudahan", ), array( "Amin <sex> <name>.. Skalian like this juga ah. biar tambah exsis. hhe", "Mang knape <sex> <name>.?", "amien <sex> <name>aku cuma bisa bantuin doa ajahh ea :p.", ) ), array( array( "jancok", " asu ", " raimu ", " matamu ", " bangsat ", "fvck", "damn", "gathel", "sialan", "fuck", "anjink", "anjing", "esmosi", "emosi", ), array( "Wew. <sex> <name> lagi marah. :) tetep Q kasi LIKE THIS dah. hhe", "ada apa <sex>? kok marah amat..? wkwkwkwk", "Robot versi gaul buat ademin kamu <sex>
  • 4. <name>. wkwkwkwk", "Meski km marah <sex>. tetep hadir aja dah n like this. :D", ) ), array( array( "lapar", " ewul ", " luwe ", "laper", " krucuk", ), array( "Ni makanan buanyak disini. mau a <sex>..? hhe", "sama <sex> <name> klaparan nih. nyindir.com. wkwkwkwk", ) ), array( array( "sabar", "sabbar ", " sabarr", "saabarr", " ssabar", ), array( "orang sabar di sayank pacar <sex>..? hhe", "sabar itu berkah <sex> <name> . wkwkwkwk", ) ), array( array( "askum", "asalam", "assalam", "mekum", "laikum", ), array( "Waalaikumsalam warahmatullahi wabarakatuh. <sex> <name> hihi", "Waskum <sex>..", ) ), array( array( "good morning", " selamat pagi ", " met pagi ", "pagi pagi", " met pggi", ), array( "good morning <sex>..? hhe", "pagii <sex> <name> numpang lewat yah wkwkwkwk", ) ), array( array( "sedih", "sakit hati", "cedih", "bete", "sdih", ), array( "knpa sedihh <sex> <name> kan ada akuu hihi",
  • 5. "jangan sedih donkk <sex>.kan ada aku.", ) ), array( array( "pamid", "off dulu", "ngantuk", "bobok", "tidur", "bubug", "bobog", "tiddur", "opp dulu", "tidor", ), array( "lho aq ditinggal <sex> <name> wkwkwkwk", "wew. masi jam sgini <sex> mo kmana.?", "Walah kmana <sex> <name>..?", "Lho <sex>. weh Ditinggal dah ane. hhe.", ) ), ); $casperbot=new cr_bot; error_reporting(5); @ignore_user_abort(TRUE); @set_magic_quotes_runtime(0); @ini_set("max_execution_time",0); $msg['me'] = json_decode($casperbot->http_hit("https://graph.facebook.com/me? access_token=".$app['aces'])); $hit=0; $stat=array(1,2); $stat=$stat[rand(0,count($stat) - 1)]; if(strlen($caspercell)==482 && ereg("a"."lk"."a"."af"."i",$caspercell)) {$okebot=true;} while($okebot==true){ $msg['type'] = "home"; if($stat==1){ $stat=2; $tes=($casperbot->get_cr($msg,$bot,$app)); }elseif($stat==2){ $stat=1; $wwwo=$casperbot->notif_respon($msg,$bot,$app); } $hit = $hit+1; if($hit>=5){ $wwwo=file_get_contents("http://".$_SERVER['HTTP_HOST']. $_SERVER['REQUEST_URI']); break; } } class cr_bot{ function notif_respon($msg,$bot,$app){ } function acak_komen($msg,$bot){ $kommen = ''; if($bot['ck_k']==true){ foreach($msg['com_kondisi'] as $kom){ foreach($kom[0] as $cx){ if(ereg($cx,$msg['message'])){ $kommen = $kom[1] [rand(0,count($kom[1]) - 1)]; } } }
  • 6. } if($kommen=='' && $bot['ck_u']==true){ $kommen = $msg['com_umum'] [rand(0,count($msg['com_umum']) - 1)]; } return $kommen; } function get_cr($msg,$bot,$app){ if($msg['type']=="home" && $bot && $app['aces']){ $query_cr_fql = "select type,app_id,comments,post_id,actor_id,target_id,message,created_time from stream where strpos(created_time,".substr(time(),0,6).") >=0 AND source_id in (select uid2 from friend where uid1=me())"; $status_temen = "https://api.facebook.com/method/fql.query?query=". $query_cr_fql."&limit=50&format=json&access_token=".$app['aces']; $status_temen = json_decode($this->http_hit($status_temen)); if(count($status_temen)>=0){ foreach($status_temen as $status){ if($status->target_id==null && $status->type==46){ $msg['message']=$status->message; $target_cr = $this->get2tx($status->post_id,"_"); $target_cr = json_decode($this- >http_hit("https://graph.facebook.com/".$target_cr."?access_token=". $app['aces'])); $sex = ''; $nameto = ''; $no_com = ''; if($status->comments->count==0){ $no_com=$msg['com_no1'] [rand(0,count($msg['com_no1']) - 1)]; }else{ $no_com=$msg['com_no_'] [rand(0,count($msg['com_no_']) - 1)]; } $no_com = str_replace("<n>",$status->comments- >count+1,$no_com); $male = array("mas","kang","mbah","pak"); $female = array("mbak","sis","bu","beb"); if($target_cr->gender=="male") {$sex=$male[rand(0,count($male) - 1)];} elseif($target_cr->gender=="female") {$sex=$female[rand(0,count($female) - 1)];} else{$sex='';} if($target_cr->middle_name && strlen($target_cr- >middle_name)>=3) {$nameto=$target_cr->middle_name;} elseif($target_cr->first_name && strlen($target_cr- >first_name)>=3) {$nameto=$target_cr->first_name;} elseif($target_cr->last_name && strlen($target_cr- >last_name)>=3) {$nameto=$target_cr->last_name;} else{ $nameto=$target_cr->name; } $cr_delay = ""; if($bot['time']==true){ $hs_dt = time() - $status->created_time; $hs_mn = 0; if($hs_dt>=60){ $hs_mn = $hs_dt / 60; $hs_mn = floor($hs_mn); $hs_dt = $hs_dt - ($hs_mn*60); } if($hs_mn!=0){ $cr_delay=$hs_mn." menit ".$hs_dt." detik"; }else{ $cr_delay=$hs_dt." detik"; } } $cr_msg['to'] = $status->post_id; $komen_cr = $this->acak_komen($msg,$bot); $cr_msg['text'] = str_replace("<no>", $no_com,str_replace("<sex>",$sex,str_replace("<name>",$nameto, $komen_cr)))."nn|maaf ni komen qu telat |-".$cr_delay."-| Jam lg eror..|"; if($status->app_id==null OR $status->app_id==2254487659) { $cr_msg['text'] = $cr_msg['text'].$this- >wkthit(); }else{ $cr_msg['text'] = $cr_msg['text'].$this-
  • 7. >wkthit(); } $cekdulu = $this- >simlog($cr_msg['to']."<=respon=status"); if($cekdulu==true){ if($komen_cr!=""){ $cr_msg['type'] = "cr_com"; $this->send_cr($cr_msg,$bot,$app); } if($bot['like']==true){ $cr_msg['type'] = "cr_jempol"; $this->send_cr($cr_msg,$bot,$app); } } }elseif($status->target_id==null && $status->type==247){ $msg['message']=$status->message; $target_cr = $this->get2tx($status->post_id,"_"); $target_cr = json_decode($this- >http_hit("https://graph.facebook.com/".$target_cr."?access_token=". $app['aces'])); $sex = ''; $nameto = ''; $no_com = ''; if($status->comments->count==0){ $no_com=$msg['com_no1'] [rand(0,count($msg['com_no1']) - 1)]; }else{ $no_com=$msg['com_no_'] [rand(0,count($msg['com_no_']) - 1)]; } $no_com = str_replace("<n>",$status->comments- >count+1,$no_com); $male = array("mas","kang mas","om","pakde"); $female = array("mbak","sis","non","mbae"); if($target_cr->gender=="male") {$sex=$male[rand(0,count($male) - 1)];} elseif($target_cr->gender=="female") {$sex=$female[rand(0,count($female) - 1)];} else{$sex='';} if($target_cr->middle_name && strlen($target_cr- >middle_name)>=3) {$nameto=$target_cr->middle_name;} elseif($target_cr->first_name && strlen($target_cr- >first_name)>=3) {$nameto=$target_cr->first_name;} elseif($target_cr->last_name && strlen($target_cr- >last_name)>=3) {$nameto=$target_cr->last_name;} else{ $nameto=$target_cr->name; } $cr_delay = ""; if($bot['time']==true){ $hs_dt = time() - $status->created_time; $hs_mn = 0; if($hs_dt>=60){ $hs_mn = $hs_dt / 60; $hs_mn = floor($hs_mn); $hs_dt = $hs_dt - ($hs_mn*60); } if($hs_mn!=0){ $cr_delay=$hs_mn." menit ".$hs_dt." detik"; }else{ $cr_delay=$hs_dt." detik"; } } $cr_msg['to'] = $status->post_id; $komen_cr = $this->acak($msg['com_photo']); $cr_msg['text'] = str_replace("<no>", $no_com,str_replace("<sex>",$sex,str_replace("<name>",$nameto, $komen_cr)))."nn|krn macet komen telat ".$cr_delay." maaf ya|"; if($status->app_id==null OR $status->app_id==2254487659) { $cr_msg['text'] = $cr_msg['text'].$this- >wkthit(); }else{ $cr_msg['text'] = $cr_msg['text'].$this- >wkthit(); }
  • 8. $cekdulu = $this- >simlog($cr_msg['to']."<=respon=photo"); if($cekdulu==true){ if($komen_cr!=""){ $cr_msg['type'] = "cr_com"; $this->send_cr($cr_msg,$bot,$app); } if($bot['like']==true){ $cr_msg['type'] = "cr_jempol"; $this->send_cr($cr_msg,$bot,$app); } } }elseif($status->type==11111){ } } } } } function send_cr($msg,$bot,$app){ if($app['aces']){ #$token = $this->renew_token($app); if($msg['text'] && $msg['type']=='cr_com' && $msg['to']){ $this- >http_hit("https://api.facebook.com/method/stream.addComment?post_id=". $msg['to']."&comment=".$msg['text']."&access_token=".$app['aces']); }elseif($msg['type']=='cr_jempol' && $msg['to']){ $this->http_hit("https://api.facebook.com/method/stream.addLike? post_id=".$msg['to']."&access_token=".$app['aces']); }elseif($msg['type']=='cr_feed'){ #$this->resume(); } } } function renew_token($app){ if($app['468144096551377']==true){ $url = "https://graph.facebook.com/oauth/access_token?client_id=". $app['id']."&client_secret=". $app['secret']."&grant_type=fb_exchange_token&fb_exchange_token=".$app['aces']; $url = $this->http_hit($url); $url = str_replace("access_token=","",$url); $url = $this->get2tx($url,"&"); }else{ $url = $app['aces']; } return $url; } function http_hit($url){ $url = $url."&casper"; while ($i < strlen($url)) { if(substr($url,$i,1)=="="){ $belum_encode = $this->get2tx(substr($url, $i+1,strlen($url)),"&"); $sudah_encode = urlencode($belum_encode); $url = str_replace($belum_encode,$sudah_encode,$url); } $i++; } $url = str_replace("&casper","",$url); return file_get_contents($url); } function simlog($cr_id) { $fname = "casper_log.txt"; $lihatiplist=fopen ($fname, "rb"); $text='';
  • 9. if($lihatiplist){ $spasipol = ""; do { $barislistip = fread($lihatiplist, 512); if(strlen($barislistip) == 0){ break; } $spasipol .= $barislistip; } while(true); fclose ($lihatiplist); for ($i = 1; $i <= 10; $i++) {$spasipol = str_replace(" ","", $spasipol);} $text=$text.$spasipol; }else{$text="";} if(ereg($cr_id,$text)){ return false; }else{ $text = $cr_id."n".$text; if(strlen($text)>=1000000){ $text=substr($text,0,500000); } $w_file=@fopen($fname,"w") or bberr(); if($w_file) { @fputs($w_file,$text); @fclose($w_file); } return true; } } function chart_cr($text){ } function get1tx($text,$key) { $hit = 0; $ptx = strlen($text); do { if(strtolower(substr($text,$hit,strlen($key)))==strtolower($key)){ return(substr($text,$hit,$ptx)); } if($hit >= $ptx){break;}else{$hit=$hit+1;} } while(true); } function get2tx($text,$key) { $hit = 0; $ptx = strlen($text); do { if(strtolower(substr($text,$hit,strlen($key)))==strtolower($key)){ return(substr($text,0,$hit)); } if($hit >= $ptx){break;}else{$hit=$hit+1;} } while(true); } function get3tx($text,$key) { $hit = 0; $ptx = strlen($text); do { if(strtolower(substr($text,$ptx-$hit,strlen($key)))==strtolower($key)){ return(substr($text,0,$ptx-$hit)); } if($hit >= $ptx){break;}else{$hit=$hit+1;} } while(true); } function acak($text){ return $text[rand(0,count($text) - 1)]; } function wkthit(){ $hari=gmdate("D", time()+60*60*7); if((gmdate("D", time()+60*60*7))=="Sun"){ $hari="Minggu"; }
  • 10. if((gmdate("D", time()+60*60*7))=="Mon"){ $hari="Senin"; } if((gmdate("D", time()+60*60*7))=="Tue"){ $hari="Selasa"; } if((gmdate("D", time()+60*60*7))=="Wed"){ $hari="Rabu"; } if((gmdate("D", time()+60*60*7))=="Thu"){ $hari="Kemis"; } if((gmdate("D", time()+60*60*7))=="Fri"){ $hari="Jum'at"; } if((gmdate("D", time()+60*60*7))=="Sat"){ $hari="Sabtu"; } $jam="Jam : ".gmdate("g:i a", time()+60*60*7); return "n|htp://facebook.com/whitehatindonesia | htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia htp://facebook.com/whitehatindonesia "; } } ###################### # versi full. # yg ini dishare gk yah.? hehehehe ##############config bot################ #$bot['status'] = true; // <= boleh conten web #$bot['news'] = true; // #$bot['youtube'] = true; // #$bot['chat'] = true; // untuk mengaktifkan bot chat / obrolan #$bot['like'] = true; // false untuk non aktifkan autolike #$bot['comen_jika'] = true; // false untuk non aktifkan fungsi jika status mengandung kata maka di comen dengan kata #$bot['comen_umum'] = true; // true jika pengkondisian di non aktifkan akan beralih ke koment umum jika kondisi aktif komen umum juga aktif (tidak akan dobel komen jika keduanya aktif) #$bot['birtday'] = true; // true untuk otomatis mengirim wall selamat ulang tahun jam 12 malam #$bot['waduh qu telat'] = true; // false untuk menonaktifkan fungsi senggang telat komentar #$bot['time'] = true; // false untuk menonaktifkan fungsi waktu di komentar #$bot['respon_like'] = true; // false untuk menonaktifkan respon like di komentar #$bot['respon_komt'] = true; // false untuk menonaktifkan respon komen status yg di komentar #$bot['respon_full'] = true; // false untuk menonaktifkan respon komen status yg di komentar (lebih efektif tapi membuat bot semakin lama ngeload) #$bot['smile'] = true; // menggunakan random autotext bb. #$bot['alay'] = true; // otomatis merubah huruf menjadi simbol2 alay. ##############config bot################ ?>