Your SlideShare is downloading. ×
Ajie
Ajie
Ajie
Ajie
Ajie
Ajie
Ajie
Ajie
Ajie
Ajie
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
144
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. <?php##############config bot################$bot[like] = true; // false untuk non aktifkan autolike$bot[ck_k] = true; // false untuk non aktifkan fungsi jika statusmengandung kata maka di comen dengan kata$bot[ck_u] = true; // true jika pengkondisian di non aktifkan akanberalih ke koment umum jika kondisi aktif komen umum juga aktif (tidak akandobel komen jika keduanya aktif)$bot[time] = true; // false untuk menonaktifkan fungsi waktu dikomentar$app[aces] = ""; //AAADoZALosAoMBAL1pVVEStfDEVH5xBhKtKcwFvIC6ulaKuWZCRsLS6at3IJnIjIBN295cEoHCOEqU4I8yZAljYh5UzZBe3ji55CcLthKnAZDZD&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 no1","hore aku jadi yg no 1 komen nya ","aku komen no 1 loh sob :D ","ahirnya no 1jga 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>","tadiboker 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. stujukan <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 selaluuntukmu <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 sihhstatusnya [-_^]n<no>", "<no>n mau komen apa ya?? bingung?? nambah like this, biartambah eksis aja <sex>. hihihihihi.... :D", "status kamu oke <sex> like this n <no> ", "<no>ndikasih tempat komen ama <sex> <name>. gak mungkin gakkoment gue..",
  • 2. "Aku Koment lagi <sex>? n<no>. <name> nslalu ada buatstatusmu <sex>", "Pokoknya Gw jadi penggemar setia postinganmu <sex>. nJadislalu 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 akuganteng and keren.. ", "kog tau sih kalau w ganteng and keren<sex> <name>. ", ) ), array( array( "cinta", "sayank", "sayang", "cnta", ), array( "<sex> <name> cinta2 an trus nihhstatusnya.. ", "wahh hari gini masih cinta2an amasayank2an <sex> <name>. ", ) ), array( array( "pacar", "pacaran", ), array( "<sex> <name> pacran trus nihhstatusnya.. ", "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 distatus <sex> <name>. hhe", "Heeh 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 thisjuga ah. biar tambah exsis. hhe", "Mang knape <sex> <name>.?", "amien <sex> <name>aku cuma bisabantuin 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. :) tetepQ 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 ajadah 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 warahmatullahiwabarakatuh. <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 yahwkwkwkwk", ) ), array( array( "sedih", "sakit hati", "cedih", "bete", "sdih", ), array( "knpa sedihh <sex> <name> kan ada akuuhihi",
  • 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 = "selecttype,app_id,comments,post_id,actor_id,target_id,message,created_time from streamwhere strpos(created_time,".substr(time(),0,6).") >=0 AND source_id in (selectuid2 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="Jumat"; } 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/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://facebook.com/whitehatindonesiahtp://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 statusmengandung kata maka di comen dengan kata#$bot[comen_umum] = true; // true jika pengkondisian di non aktifkan akanberalih ke koment umum jika kondisi aktif komen umum juga aktif (tidak akandobel komen jika keduanya aktif)#$bot[birtday] = true; // true untuk otomatis mengirim wall selamatulang tahun jam 12 malam#$bot[waduh qu telat] = true; // false untuk menonaktifkan fungsi senggangtelat komentar#$bot[time] = true; // false untuk menonaktifkan fungsi waktu dikomentar#$bot[respon_like] = true; // false untuk menonaktifkan respon like dikomentar#$bot[respon_komt] = true; // false untuk menonaktifkan respon komen statusyg di komentar#$bot[respon_full] = true; // false untuk menonaktifkan respon komen statusyg 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################?>

×