Advertisement
P22DX

Bot Jembut

Mar 10th, 2018
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.98 KB | None | 0 0
  1. #!/data/data/com.termux/files/usr/bin/php
  2. <?php
  3. if(strtolower(substr(PHP_OS, 0, 3)) == "win") {
  4. $bersih="cls";
  5. } else {
  6. $bersih="clear";
  7. }
  8.  
  9. date_default_timezone_set('Asia/Jakarta');
  10. $date   = date('d-M-Y h:i:s');
  11. $green  = "\e[92m";
  12. $red    = "\e[91m";
  13. $yellow = "\e[93m";
  14. $blue   = "\e[36m";
  15. pilih:
  16. system($bersih);
  17. echo "\n$yellow
  18. ____        _     _           ____        _
  19. / ___| _ __ (_) __| | ___ _ __| __ )  ___ | |_
  20. \___ \| '_ \| |/ _` |/ _ \ '__|  _ \ / _ \| __|
  21. ___) | |_) | | (_| |  __/ |  | |_) | (_) | |_
  22. |____/| .__/|_|\__,_|\___|_|  |____/ \___/ \__|
  23.      |_|";
  24. echo "\n$blue
  25. Author  : Cvar1984
  26. Code    : PHP
  27. Github  : http://github.com/Cvar1984
  28. Team    : Blackhole Security
  29. Version : 1.4 ( Alpha )
  30. Date    : 28-02-2018\n";
  31. echo "$red=========================== Cvar1984 ))=====(@)>$green\n";
  32. @header('Content-Type: text/html; charset=UTF-8');
  33. function input($echo) {
  34.     echo "$echo --> ";
  35. }
  36. input("Comentar");
  37. $msgx=trim(fgets(STDIN));
  38. echo "$red=========================== Cvar1984 ))=====(@)>$green\n";
  39. input("Count");
  40. $jumlah=trim(fgets(STDIN));
  41. echo "$red=========================== Cvar1984 ))=====(@)>$green\n";
  42. input("Input Token From File / Paste? [y/n]");
  43. $pilih = trim(fgets(STDIN));
  44. if($pilih == "y") {
  45.     echo "$red=========================== Cvar1984 ))=====(@)>$green\n";
  46.     input("Filenane");
  47.     $Fname = trim(fgets(STDIN));
  48.     echo "$red=========================== Cvar1984 ))=====(@)>$green\n";
  49.     $token = file_get_contents($Fname);
  50. } elseif($pilih == "n") {
  51.     echo "$red=========================== Cvar1984 ))=====(@)>$green\n";
  52.     input("Token");
  53.     $token = trim(fgets(STDIN));
  54.     echo "$red=========================== Cvar1984 ))=====(@)>$green\n";
  55. } else {
  56.     echo "$red(!)$yellow Invalid$red (!)$green\n";
  57.     goto pilih;
  58. }
  59. $ambil = "https://graph.facebook.com/me/home?fields=id,from,type&limit=".$jumlah."&access_token=".$token;
  60. $ambil = file_get_contents($ambil);
  61. $ambil = json_decode($ambil, true);
  62. foreach($ambil['data'] as $data) {
  63.     $stat_id = $data['id'];
  64.     $post_id = explode("_", $stat_id);
  65.     $msg=$msgx . "\n"."-=[ ".$date." ]=-";
  66.     $url = "https://graph.facebook.com/".$post_id[1]."/comments";
  67. $var="method=POST&message=".$msg."&access_token=".$token;  
  68.    
  69.        $ch=curl_init();
  70.       curl_setopt($ch, CURLOPT_URL, $url);
  71.         curl_setopt($ch, CURLOPT_POST, true);
  72.         curl_setopt($ch, CURLOPT_POSTFIELDS, $var);
  73.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  74.         $result = curl_exec($ch);
  75.         curl_close($ch);
  76. echo "Comment => $msg\n";
  77. if(preg_match('/error/', $result)) {
  78.      die("$red(!)$yellow Token Invalid$red (!)");
  79.         } else {
  80.     echo "Post ID => $post_id[1]"."\n";
  81.     echo "Send Comment Success!\n";
  82.     $sleep = array(
  83.         "5",
  84.         "6",
  85.         "7",
  86.         "8"
  87.     ); // Detik
  88.     $slp   = array_rand($sleep);
  89.     $slp2  = $sleep[$slp];
  90.     echo "Sleeping For $slp2 Second\n";
  91.     echo "$red=========================== Cvar1984 ))=====(@)>$green\n";
  92.     sleep($slp2);
  93.         }
  94.     }
  95.     unset($data);
  96. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement