Advertisement
Pzam

Untitled

Feb 3rd, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.67 KB | None | 0 0
  1. <?php
  2.  
  3. ##############config####################
  4. $bot['like'] = false; //
  5. $bot['ck_k'] = true; //
  6. $bot['ck_u'] = true; //
  7. $bot['time'] = false; //
  8. $bot['aces'] = "CAAAAPJmB8ZBwBAKCp94q0fxVlPSpnRKpVn8fGMtRv2rgauZCBBZAGZCPoEkrUwZBrGbt4K3ilxhWfx5UDGbwPY9blxZAaD4QaeF7qDbQN6jvrZB3YZCNqaZAUvqxbIy4XZC9otKGI2E9SOZBy5C4Ud0vpEuUXmWzl3ZBFJmjDm59lFGoTVSdhK3F4kZC9"; // Masukin token lo disini
  9. ########################################com_like($cl,$ck,$cu,$tm,$access_token)
  10.  
  11. ##############By Me####################
  12. # BOT Facebook v 1.0cr 20/januari/2011
  13. #
  14. # Created by casper_kae
  15. # simple bot komment & like
  16. # thanks to balikita team
  17. #
  18. # mohon untuk tidak merubah tulisan ini untuk saling menghargai.
  19. # tunggu Versi bot berikutnya. :D salam
  20. #######################################
  21.  
  22. com_like($bot['like'],$bot['ck_k'],$bot['ck_u'],$bot['time'],$bot['aces']);
  23.  
  24. ###############komentar################
  25. function cmn($text,$ck,$cu){
  26. ##########umum
  27.  
  28. $cmn_umum = array("(Y)🎈 (Y)🎈 (Y)🎈",
  29. "(Y)🎈 (Y)🎈 (Y)🎈",
  30. "(Y)🎈 (Y)🎈 (Y)🎈",
  31. "(Y)🎈 (Y)🎈 (Y)🎈",
  32. "(Y)🎈 (Y)🎈 (Y)🎈",
  33. "(Y)🎈 (Y)🎈 (Y)🎈",
  34. "(Y)🎈 (Y)🎈 (Y)🎈",
  35. "(Y)🎈 (Y)🎈 (Y)🎈",
  36. "(Y)🎈 (Y)🎈 (Y)🎈",
  37. "(Y)🎈 (Y)🎈 (Y)🎈",
  38. "(Y)🎈 (Y)🎈 (Y)🎈",
  39. "(Y)🎈 (Y)🎈 (Y)🎈",
  40. "(Y)🎈 (Y)🎈 (Y)🎈",
  41. "(Y)🎈 (Y)🎈 (Y)🎈",
  42. "(Y)🎈 (Y)🎈 (Y)🎈",
  43. "(Y)🎈 (Y)🎈 (Y)🎈",
  44. "(Y)🎈 (Y)🎈 (Y)🎈",
  45. "(Y)🎈 (Y)🎈 (Y)🎈",
  46. "(Y)🎈 (Y)🎈 (Y)🎈",
  47. "(Y)🎈 (Y)🎈 (Y)🎈",
  48. "(Y)🎈 (Y)🎈 (Y)🎈",
  49. "(Y)🎈 (Y)🎈 (Y)🎈",
  50. );
  51. ##########kondisi
  52. $comment = array(
  53. array(
  54. array("sepi",
  55. "sunyi",
  56. "boring",
  57. ),
  58. array("(Y)🎈 (Y)🎈 (Y)🎈",
  59. )
  60. ),
  61. array(
  62. array("mudahan",
  63. "moga",
  64. "amin",
  65. ),
  66. array("(Y)🎈 (Y)🎈 (Y)🎈",
  67. "(Y)🎈 (Y)🎈 (Y)🎈",
  68. )
  69. ),
  70. array(
  71. array("cantik",
  72. "Wanita",
  73. "perempuan",
  74. "pompuan",
  75. ),
  76. array("(Y)🎈 (Y)🎈 (Y)🎈 ",
  77. "(Y)🎈 (Y)🎈 (Y)🎈",
  78. )
  79. ),
  80. array(
  81. array("Thanks",
  82. "Thank's",
  83. "Terima Kasih",
  84. ),
  85. array("(Y)🎈 (Y)🎈 (Y)🎈",
  86. "(Y)🎈 (Y)🎈 (Y)🎈 ",
  87. )
  88. ),
  89. array(
  90. array("http",
  91. "www",
  92. "autolike",
  93. "bot",
  94. "auto komen",
  95. ".com",
  96. "robot",
  97. "jempol",
  98. "otomatis",
  99. "mywapblog",
  100. ),
  101. array(" (Y)🎈 (Y)🎈 (Y)🎈",
  102. )
  103. ),
  104. array(
  105. array("lapar",
  106. "hungry",
  107. "lapa",
  108. "laper",
  109. "lapar pulak",
  110. ),
  111. array("(Y)🎈 (Y)🎈 (Y)🎈",
  112. )
  113. ),
  114. array(
  115. array("wkwk",
  116. "ckck",
  117. "gkgk",
  118. "haha",
  119. "xixi",
  120. "hihi",
  121. ),
  122. array("(Y)🎈 (Y)🎈 (Y)🎈",
  123. )
  124. ),
  125. array(
  126. array("tes",
  127. "test",
  128. "TEST",
  129. "testing",
  130. "BOSAN",
  131. ),
  132. array("(Y)🎈 (Y)🎈 (Y)🎈",
  133.  
  134. )
  135. ),
  136. array(
  137. array("single",
  138. "putus cinta",
  139. "bosan",
  140. "bored",
  141. "break",
  142. "s.i.n.g.l.e",
  143. ),
  144. array("(Y)🎈 (Y)🎈 (Y)🎈 ",
  145. )
  146. ),
  147. array(
  148. array("Subuh",
  149. "Ashar",
  150. "Maghrib",
  151. ),
  152. array("(Y)🎈 (Y)🎈 (Y)🎈",
  153. )
  154. ),
  155. array(
  156. array("panas",
  157. "hot",
  158. "berpeluh",
  159. ),
  160. array(" (Y)🎈 (Y)🎈 (Y)🎈"
  161. )
  162. ),
  163. array(
  164. array("askum",
  165. "asalam",
  166. "assalam",
  167. "salam",
  168. "askom",
  169. "Assalamualaikum",
  170. "laikum",
  171. ),
  172. array("Walaikumsalam.. (Y)🎈 (Y)🎈 (Y)🎈",
  173. )
  174. ),
  175. array(
  176. array("GOOD MORNING",
  177. "selamat pagi",
  178. "morning",
  179. ),
  180. array("(Y)🎈 (Y)🎈 (Y)🎈 ",
  181. )
  182. ),
  183. array(
  184. array("ADD/FOLLOW",
  185. "FOLLOW",
  186. ),
  187. array("(Y)🎈 (Y)🎈 (Y)🎈 ",
  188. )
  189. ),
  190. array(
  191. array("met sore",
  192. "selamat sore",
  193. ),
  194. array("(Y)🎈 (Y)🎈 (Y)🎈 ",
  195. )
  196. ),
  197. array(
  198. array("Good night",
  199. "selamat malam",
  200. "met malam",
  201. "selamat malam",
  202. "night",
  203. ),
  204. array("(Y)🎈 (Y)🎈 (Y)🎈 ",
  205. )
  206. ),
  207. array(
  208. array("asdasad",
  209. "dasda",
  210. ),
  211. array("(Y)🎈 (Y)🎈 (Y)🎈",
  212. )
  213. ),
  214. array(
  215. array("sadas",
  216. "adsdas",
  217. "sdasd",
  218. ),
  219. array("(Y)🎈 (Y)🎈 (Y)🎈 ",
  220. )
  221. ),
  222. array(
  223. array("sdaasd",
  224. "dasda",
  225. "dsadas",
  226. "asasda",
  227. "daasd",
  228. "adsas",
  229. "dasdas",
  230. ),
  231. array("(Y)🎈 (Y)🎈 (Y)🎈",
  232. )
  233. ),
  234. array(
  235. array("dsada",
  236. ),
  237. array("(Y)🎈 (Y)🎈 (Y)🎈 🎈",
  238. )
  239. ),
  240. array(
  241. array("asda",
  242. "dasda",
  243. "asdasd",
  244. "asdas",
  245. "dasds",
  246. ),
  247. array("(Y)🎈 (Y)🎈 (Y)🎈",
  248. )
  249. ),
  250. array(
  251. array("dasda",
  252. "dasdas",
  253. "sda",
  254. "daoed",
  255. ),
  256. array("(Y)🎈 (Y)🎈 (Y)🎈",
  257. )
  258. ),
  259. array(
  260. array("doasd",
  261. "doakda",
  262. "aosdkao",
  263. "zaadadax",
  264. ),
  265. array("(Y)🎈 (Y)🎈 (Y)🎈 ",
  266. )
  267. ),
  268. );
  269. $komentar = '';
  270. $cr_kondisi=false;
  271. foreach($comment as $cx){
  272. foreach($cx[0] as $ct){
  273. if(ereg($ct,$text)){
  274. $cr_kondisi=true;
  275. $komentar = $cx[1][rand(0,count($cx[1]) - 1)];
  276. }
  277. }
  278. }
  279. if($cr_kondisi==true && $ck==true){
  280. return $komentar;
  281. }else{
  282. if($cu==true){ return $cmn_umum[rand(0,count($cmn_umum) - 1)]; }
  283. }
  284. }
  285. #######################################
  286. function com_like($cl,$ck,$cu,$tm,$access_token){
  287. $beranda = json_decode(httphit("https://graph.facebook.com/me/home?fields=id,from,type,message&limit=100&access_token=".$access_token))->data;
  288. $saya_cr = json_decode(httphit("https://graph.facebook.com/me?access_token=".$access_token));
  289. if($beranda){
  290. foreach($beranda as $cr_post){
  291. if(!ereg($saya_cr->id,$cr_post->id)){
  292. $log_cr = simlog($cr_post->id);
  293. if($log_cr==true){
  294. if($ck==true){
  295. $url_ck = cmn($cr_post->message,$ck,$cu);
  296. $url_ck = str_replace("<name>",$cr_post->from->name,$url_ck);
  297. if($tm==true){ $url_ck = $url_ck.kecepatan().konter().wkthit().sambutan() ; }
  298. $url_ck = urlencode($url_ck);
  299. if($ck==true OR $cu==true){
  300. httphit("https://graph.facebook.com/".$cr_post->id."/comments?method=POST&message=".$url_ck."&access_token=".$access_token);
  301. }
  302. if($cl==true){
  303. httphit("https://graph.facebook.com/".$cr_post->id."/likes?method=POST&access_token=".$access_token);
  304. }
  305. }
  306. }
  307. }
  308. }
  309. }
  310. }
  311. #######################################
  312. function httphit($url){
  313. return file_get_contents($url);
  314. }
  315.  
  316. function kecepatan() {
  317. $waktu="
  318. ";
  319.  
  320. $gentime = microtime();
  321. $gentime = explode(' ',$gentime);
  322. $gentime = $gentime[0];
  323. $pg_end = $gentime;
  324. $totaltime = ($pg_end - $pg_start);
  325. $showtime = number_format($totaltime, 1, '.', '');
  326. return $waktu.$waktu."[+] Komen meluncur 100km $showtime detik";
  327. }
  328. function konter() {
  329. $sempak="
  330. ";
  331. $filename = 'hitcount.txt';
  332. $handle = fopen($filename, 'r');
  333. $hits = trim(fgets($handle)) + 1;
  334. fclose($handle);
  335.  
  336. $handle = fopen($filename, 'w');
  337. fwrite($handle, $hits);
  338. fclose($handle);
  339. return "$sempak [+] status yang ke $hits yang saya komentari";
  340. }
  341. function sambutan(){
  342. $ent="
  343. ";
  344. $TimeZone="+7";
  345. $_time=gmdate("H", time() + ($TimeZone * 60 * 60));
  346. if ($_time > 18) $_sambutan = "Met Malam,, N Met Istirahat. https://www.facebook.com/lists/566108970127962";
  347. else if($_time > 14) $_sambutan = "Selamat Sore Aja Yah. https://www.facebook.com/lists/566108970127962";
  348. else if ($_time > 10) $_sambutan = "Selamat Siang Aja Yah. https://www.facebook.com/lists/566108970127962";
  349. else $_sambutan = "Selamat Pagi Aja Yah. https://www.facebook.com/lists/566108970127962";
  350. return "$ent [+] $_sambutan";
  351. }
  352. function wkthit(){
  353. $ent="
  354. ";
  355. $hari=gmdate("D", time()+60*60*7);
  356. if((gmdate("D", time()+60*60*7))=="Sun"){ $hari="Minggu"; }
  357. if((gmdate("D", time()+60*60*7))=="Mon"){ $hari="Senin"; }
  358. if((gmdate("D", time()+60*60*7))=="Tue"){ $hari="Selasa"; }
  359. if((gmdate("D", time()+60*60*7))=="Wed"){ $hari="Rabu"; }
  360. if((gmdate("D", time()+60*60*7))=="Thu"){ $hari="Kamis"; }
  361. if((gmdate("D", time()+60*60*7))=="Fri"){ $hari="Jum'at"; }
  362. if((gmdate("D", time()+60*60*7))=="Sat"){ $hari="Sabtu"; }
  363. $jam="Jam : ".gmdate("g:i a", time()+60*60*7);
  364. return "$ent ? ".$hari.", ".gmdate("j-m-Y", time()+60*60*7)." - ".$jam." $showtime";
  365. }
  366. function simlog($cr_id) {
  367. $fname = "cr_log.txt";
  368. $lihatiplist=fopen ($fname, "rb");
  369. $text='';
  370. if($lihatiplist){
  371. $spasipol = "";
  372. do {
  373. $barislistip = fread($lihatiplist, 512);
  374. if(strlen($barislistip) == 0){ break; }
  375. $spasipol .= $barislistip;
  376. } while(true);
  377. fclose ($lihatiplist);
  378. for ($i = 1; $i <= 10; $i++) {$spasipol = str_replace(" ","",$spasipol);}
  379. $text=$text.$spasipol;
  380. }else{$text="";}
  381. if(ereg($cr_id,$text)){
  382. return false;
  383. }else{
  384. $text = $text.$cr_id;
  385. $w_file=@fopen($fname,"w") or bberr();
  386. if($w_file) {
  387. @fputs($w_file,$text);
  388. @fclose($w_file);
  389. }
  390. return true;
  391. }
  392. }
  393. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement