Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 KB | None | 0 0
  1. <?php
  2.  
  3. ini_set('display_errors', 0);
  4. ini_set('display_startup_errors', 0);
  5. error_reporting(E_ALL);
  6. @ini_set('zlib.output_compression',0);
  7. @ini_set('implicit_flush',1);
  8. @ob_end_clean();
  9. set_time_limit(0);
  10. ob_implicit_flush(1);
  11. ini_set('max_execution_time', -1);
  12.  
  13. function curlGet($url) {
  14. $ch = curl_init();
  15. curl_setopt($ch,CURLOPT_URL,$url);
  16. curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  17. curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
  18. $res = curl_exec($ch);
  19. return $res;
  20. }
  21.  
  22. if (!file_exists('madeline.php')) {
  23. copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
  24. }
  25. if (!file_exists('blockde.txt')) {
  26. file_put_contents('blockde.txt','');
  27. }
  28.  
  29.  
  30. //-----------------
  31. $admin = '@SsUsS';
  32. $session = readline('Enter session : ');
  33. $Token = readline('Enter Token : ');
  34. $SendIn = "583881427";
  35. //-----------------
  36.  
  37. function Check($user){
  38. $get = curlGet('http://telegram.me/'.$user);
  39. if(!strpos($get,"tgme_page_extra")){
  40. return "Good";
  41. }else {
  42. return "Bad";
  43. }
  44. }
  45. function random(){
  46. $out = "";
  47. $rand = substr(str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0,1);
  48. $randomf = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','_',1,2,3,4,5,6,7,8,9);
  49. $randomx = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
  50.  
  51. $out="";
  52. for ($i = 0; $i < count($randomx); $i++) {
  53. $two = $rand;
  54. $one = $randomx[$i];
  55. $out = $out . $one.$two.$two.$two.$two.$two."\n";
  56. }
  57. for ($i = 0; $i < count($randomf); $i++) {
  58. $two = $rand;
  59. $one = $randomf[$i];
  60. $out = $out . $two.$two.$one.$two.$two.$two."\n";
  61. $out = $out . $two.$one.$two.$two.$two.$two."\n";
  62. $out = $out . $two.$two.$two.$one.$two.$two."\n";
  63. if($one != "_"){
  64. $out = $out . $two.$two.$two.$two.$two.$one."\n";
  65. }
  66. }
  67. $j = "bot";
  68. $ke = "_";
  69. for ($k = 0; $k < count($randomf); $k++) {
  70. $two = $rand;
  71. $one = $randomf[$k];
  72. $out = $out . $two.$two.$one.$j."\n";
  73. $out = $out . $two.$one.$two.$j."\n";
  74. $out = $out . $two.$ke.$one.$j."\n";
  75. $out = $out . $two.$one.$one.$j."\n";
  76. $out = $out . $two.$two.$ke.$j."\n";
  77. }
  78. return $out;
  79. }
  80. include 'madeline.php';
  81. $MadelineProto = new \danog\MadelineProto\API($session.'.madeline');
  82. $MadelineProto->start();
  83. $typech = readline('What do you want to type a Checker? List(s) or Make(m) : ');
  84. if($typech == "s"){
  85. $Link = readline('Enter Link List: ');
  86. }
  87. $title = readline('Enter Name: ');
  88. $about = readline('Enter About: ');
  89. echo "I will stop for a minute to avoid the ban\n";
  90. sleep(60);
  91.  
  92. $i=0;
  93. $textsend = 'Checker was turned on';
  94. file_get_contents("https://api.telegram.org/bot$Token/sendMessage?chat_id=$SendIn&text=".$textsend);
  95. $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => $title, 'about' => $about ]);
  96. while(true){
  97. if($typech == "m"){
  98. $users = explode("\n",random());
  99. }else{
  100. $users = explode("\n",file_get_contents($Link));
  101. }
  102. foreach($users as $user){
  103. $user = str_replace([" ","\r","\n"], '', $user);
  104. $blockde = explode("\n", file_get_contents('blockde.txt'));
  105. if(!in_array($user, $blockde)){
  106. $Check = Check($user);
  107. if($Check == "Good"){
  108. try {
  109. $MadelineProto->account->checkUsername(['username' => $user ]);
  110.  
  111. $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $user ]);
  112. $textsend = "πŸ”˜ Report Checker
  113. β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
  114. ▫️User Name: [@$user]
  115. ◾️Loops Count: [$i]
  116. ▫️Was Moved To: [Channel]
  117. β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
  118. πŸ”˜ Admin Checker {$admin}";
  119. file_get_contents("https://api.telegram.org/bot$Token/sendMessage?chat_id=$SendIn&text=".urlencode($textsend));
  120. $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => $title, 'about' => $about ]);
  121. }catch(Exception $e){
  122. if($e->getMessage() == "The provided username is not valid"){
  123. file_put_contents("blockde.txt", file_get_contents("blockde.txt")."$user\n");
  124. }else{
  125. $textsend = '@' . $user . ':'.$e->getMessage();
  126. file_get_contents("https://api.telegram.org/bot$Token/sendMessage?chat_id=$SendIn&text=".$textsend);
  127. }
  128. echo $e->getMessage()."\n";
  129. }
  130. }else {
  131. echo "No:$user - ".$i++." $Check in:" .date('s'). "\n";
  132. }
  133. usleep(250000);
  134. }
  135. }
  136. }'][1], 'username' => $user ]);
  137. $textsend = "πŸ”˜ Report Checker
  138. β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
  139. ▫️User Name: [@$user]
  140. ◾️Loops Count: [$i]
  141. ▫️Was Moved To: [Channel]
  142. β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
  143. πŸ”˜ Admin Checker {$admin}";
  144. file_get_contents("https://api.telegram.org/bot$Token/sendMessage?chat_id=$SendIn&text=".urlencode($textsend));
  145. $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => $title, 'about' => $about ]);
  146. }catch(Exception $e){
  147. if($e->getMessage() == "The provided u
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement