SHARE
TWEET

Untitled

a guest Aug 25th, 2019 135 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3.  
  4. /* by @api_web */
  5. -----------------------
  6. Mr Mohammed - @MMxMM :))
  7. -----------------------
  8.  
  9.  
  10.  
  11. */
  12.  
  13. ini_set('display_errors', 0);
  14. ini_set('display_startup_errors', 0);
  15. error_reporting(E_ALL);
  16. @ini_set('zlib.output_compression',0);
  17. @ini_set('implicit_flush',1);
  18. @ob_end_clean();
  19. set_time_limit(0);
  20. ob_implicit_flush(1);
  21. ini_set('max_execution_time', -1);
  22.  
  23. //---------------------
  24. $account = "SJAD100";
  25. $admin = "SJAD100";
  26. //---------------------
  27. include 'madeline.php';
  28. $MadelineProto = new \danog\MadelineProto\API($account.'.madeline');
  29. $MadelineProto->start();
  30. class telegram{
  31. public function curlGet($url) {
  32. $ch = curl_init();
  33. curl_setopt($ch,CURLOPT_URL,$url);
  34. curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  35. curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
  36. $res = curl_exec($ch);
  37. return $res;
  38. }
  39. public function format_timer_result($time_in_seconds){
  40.     $time_in_seconds = ceil($time_in_seconds);
  41.  
  42.     // Check for 0
  43.     if ($time_in_seconds == 0){
  44.         return 'Less than a second';
  45.     }
  46.  
  47.     // Days
  48.     $days = floor($time_in_seconds / (60 * 60 * 24));
  49.     $time_in_seconds -= $days * (60 * 60 * 24);
  50.  
  51.     // Hours
  52.     $hours = floor($time_in_seconds / (60 * 60));
  53.     $time_in_seconds -= $hours * (60 * 60);
  54.  
  55.     // Minutes
  56.     $minutes = floor($time_in_seconds / 60);
  57.     $time_in_seconds -= $minutes * 60;
  58.  
  59.     // Seconds
  60.     $seconds = floor($time_in_seconds);
  61.  
  62.     // Format for return
  63.     $return = '';
  64.     if ($days > 0){
  65.         $return .= $days . ' Day' . ($days == 1 ? '' : 's'). ' ';
  66.     }
  67.     if ($hours > 0){
  68.         $return .= $hours . ' Hour' . ($hours == 1 ? '' : 's') . ' ';
  69.     }
  70.     if ($minutes > 0){
  71.         $return .= $minutes . ' Minute' . ($minutes == 1 ? '' : 's') . ' ';
  72.     }
  73.     if ($seconds > 0){
  74.         $return .= $seconds . ' Second' . ($seconds == 1 ? '' : 's') . ' ';
  75.     }
  76.     $return = trim($return);
  77.  
  78.     return $return;
  79. }
  80. public function random(){
  81. $out = "";
  82. $rand = substr(str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0,1);
  83. $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);
  84. $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');
  85.  
  86. $out="";
  87. $out = $out . $rand . $rand . $rand . $rand . $rand."\n";
  88. $out = $out . $rand . "_" . $rand . "_" . $rand."\n";
  89. $out = $out . $rand . $rand . $rand . $rand . $rand . $rand."\n";
  90. $out = $out . $rand . $rand . $rand . $rand . $rand . $rand . $rand."\n";
  91. $out = $out . $rand . $rand . $rand . $rand . $rand . $rand . $rand . $rand."\n";
  92. $out = $out . $rand . $rand . $rand . $rand . $rand . $rand . $rand . $rand . $rand."\n";
  93. $out = $out . $rand . "_" . $rand . $rand . $rand."\n";
  94. $out = $out . $rand . $rand . "_" . $rand . $rand."\n";
  95. $out = $out . $rand .$rand . $rand .  "_" . $rand."\n";
  96. $b = "bot";
  97. $out = $out . $rand.$rand.$rand.$b."\n";
  98. $out = $out . $rand.$rand.$rand."_".$b."\n";
  99. for ($i = 0; $i < count($randomx); $i++) {
  100. $two = $rand;
  101. $one = $randomx[$i];
  102. $out = $out . $one.$two.$two.$two.$two."\n";
  103. $out = $out . $two.$one.$b."\n";
  104. $out = $out . $one.$two.$b."\n";
  105. }
  106. $two = $rand;
  107. $out = $out . $two."1111"."\n";
  108. $out = $out . $two."2222"."\n";
  109. $out = $out . $two."3333"."\n";
  110. $out = $out . $two."4444"."\n";
  111. $out = $out . $two."5555"."\n";
  112. $out = $out . $two."6666"."\n";
  113. $out = $out . $two."7777"."\n";
  114. $out = $out . $two."8888"."\n";
  115. $out = $out . $two."9999"."\n";
  116.  
  117. for ($i = 0; $i < count($randomf); $i++) {
  118. $two = $rand;
  119. $one = $randomf[$i];
  120. $out = $out . $two.$two.$one.$two.$two."\n";
  121. $out = $out . $two.$one.$two.$two.$two."\n";
  122. $out = $out . $two.$two.$two.$one.$two."\n";
  123. $out = $out . $two.$one.$b."\n";
  124. if($one != "_"){
  125. $out = $out . $two.$two.$two.$two.$one."\n";
  126. $out = $out . $one.$two.$b."\n";
  127. }
  128. }
  129. return $out;
  130. }
  131. public function speed($user){
  132. global $MadelineProto;
  133. global $admin;
  134.   $start = date('s');
  135.   $countpreesinsoucnds = 0;
  136.   while(true){
  137. $this->check("a",$user,"0");
  138.     $end = date('s');
  139.       if($start == $end){
  140.         $countpreesinsoucnds++;
  141.       }else {
  142.           break;
  143.       }
  144.   }
  145. echo "The number of clicks per second is:".$countpreesinsoucnds;
  146. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nThe number of clicks per second is:$countpreesinsoucnds\n———————\n- @$admin"
  147. ]);
  148. }
  149. public function check($type,$user,$typea=null){
  150. global $MadelineProto;
  151. if($type == "t"){
  152. $get = $this->curlGet('http://telegram.me/'.$user);
  153. if(!strpos($get,"tgme_page_extra")){
  154. return "Good";
  155. }else {
  156.  return "Bad";
  157. }
  158. }
  159. if($type == "m"){
  160. try{
  161. $MadelineProto->messages->getPeerDialogs(['peers'=> [$user]]);
  162.  return "Bad";
  163. }catch(Exception $e){
  164. return "Good";
  165. }
  166. }
  167. if($type == "a"){
  168. $arrapi = [
  169.   'http://188.166.2.245/index.php?user=',
  170.   'http://188.166.7.159/userinfo/index.php?user=',
  171.   'http://178.62.243.245/userinfo/index.php?user=',
  172.   'http://178.62.252.143/userinfo/index.php?user=',
  173.   'http://128.199.59.56/userinfo/index.php?user=',
  174.   'http://178.62.255.217/userinfo/index.php?user=',
  175.   'http://188.166.7.240/userinfo/index.php?user=',
  176.   'http://188.166.12.7/userinfo/index.php?user=',
  177.   'http://188.166.13.81/userinfo/index.php?user=',
  178.   'http://188.166.14.250/userinfo/index.php?user=',
  179.   'http://206.189.106.129/userinfo/index.php?user=',
  180.   'http://206.189.106.132/userinfo/index.php?user=',
  181.   'http://206.189.106.134/userinfo/index.php?user=',
  182.   'http://159.65.202.245/userinfo/index.php?user=',
  183.   'http://167.99.212.46/userinfo/index.php?user=',
  184.   'http://188.166.121.118/userinfo/index.php?user=',
  185.   'http://167.99.215.205/userinfo/index.php?user='
  186. ];
  187. return $this->curlGet($arrapi[$typea]."$user");
  188. }
  189. }
  190. public function start($holdtype,$hold,$type,$put,$user=null,$puty,$id=null,$title=null,$about=null,$message=null){
  191. global $admin;
  192. global $MadelineProto;
  193. $res = "Project X has been Launched";
  194. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => $res]);
  195. //------
  196. if($put == "BotFather"){
  197. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  198. 'message' => "/start"
  199. ]);
  200. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  201. 'message' => "/newbot"
  202. ]);
  203. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  204. 'message' => "$title"
  205. ]);
  206. }
  207. if($put == "Channel"){
  208. if($puty == "n"){
  209. $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => $title, 'about' => $about ]);
  210. }
  211. }
  212. if($type == "turbo"){
  213. $i = 0;
  214. $x = 100;
  215. $iapi = 0;
  216. $time_start = microtime(true);
  217. while(true){
  218.  
  219. if($holdtype == "a"){
  220. if($i == $x){
  221. $x = $x + 100;
  222.  
  223. if($iapi == 16){
  224. $iapi = 0;
  225. }else {
  226. $iapi++;
  227. }
  228. $Check = $this->check($holdtype,$user,$iapi);
  229. }else{
  230. $Check = $this->check($holdtype,$user,$iapi);
  231. }
  232. }else{
  233. $Check = $this->check($holdtype,$user);
  234. }
  235.  
  236. if($Check == "Good"){
  237. try {
  238. if($put == "Channel"){
  239. if($puty == "n"){
  240. $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $user ]);
  241. $MadelineProto->messages->sendMessage(['peer' => $updates['updates'][1], 'message' => str_replace('USER',$user,$message) ]);
  242. $time_end = microtime(true);
  243. $execution_time = $time_end - $time_start;
  244. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nUsername taken [@$user]\nNumber of clicks [$i]\nTime taken [".$this->format_timer_result($execution_time)."]\n\nWas moved to [$put]\nName [$title]\nAbout [$about]\nmessage [".str_replace('USER',$user,$message)."]\n———————\n- @$admin"
  245. ]);
  246. }else {
  247. $MadelineProto->channels->updateUsername(['channel' => $id, 'username' => $user ]);
  248. $MadelineProto->messages->sendMessage(['peer' => $id, 'message' => str_replace('USER',$user,$message) ]);
  249. $time_end = microtime(true);
  250. $execution_time = $time_end - $time_start;
  251. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nUsername taken [@$user]\nNumber of clicks [$i]\nTime taken [".$this->format_timer_result($execution_time)."]\n\nWas moved to [$put]\nId [$id]\nmessage [".str_replace('USER',$user,$message)."]\n———————\n- @$admin"
  252. ]);
  253. }
  254. }
  255. if($put == "Account"){
  256. $MadelineProto->account->updateUsername(['username' => $user]);
  257. $time_end = microtime(true);
  258. $execution_time = $time_end - $time_start;
  259. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nUsername taken [@$user]\nNumber of clicks [$i]\nTime taken [".$this->format_timer_result($execution_time)."]\n\nWas moved to [$put]\n———————\n- @$admin"
  260. ]);
  261. }
  262. if($put == "BotFather"){
  263. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  264. 'message' => $user
  265. ]);
  266. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  267. 'message' => "/setabouttext"
  268. ]);
  269. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  270. 'message' => "@$user"
  271. ]);
  272. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  273. 'message' => "$about"
  274. ]);
  275. $time_end = microtime(true);
  276. $execution_time = $time_end - $time_start;
  277. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nUsername taken [@$user]\nNumber of clicks [$i]\nTime taken [".$this->format_timer_result($execution_time)."]\n\nWas moved to [$put]\nName [$title]\nAbout [$about]\n———————\n- @$admin"
  278. ]);
  279. }
  280.  
  281. echo "Username taken [@$user]\n";
  282. break;
  283. } catch(Exception $e){
  284. if($e->getMessage() == "The provided username is not valid" or $e->getMessage() == "USERNAME_OCCUPIED"){
  285. file_put_contents("blockde.txt", file_get_contents("blockde.txt")."$user\n");
  286. //$MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => '@' . $user . ':It was saved in list banned usernames']);
  287. }else{
  288. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => '@' . $user . ':'.$e->getMessage()]);
  289. }
  290. echo $e->getMessage()."\n";
  291. }
  292. }else {
  293. echo "No:$user - ".$i++." $Check in:" .date('s'). " $iapi\n";
  294.  
  295. if($holdtype == "t"){
  296.       if($hold == 4){
  297.         usleep(250000);
  298.       } elseif($hold == 6){
  299.         usleep(150000);
  300.       } else {
  301.         if($i >= 260 and $i <= 700){
  302.           usleep(150000);
  303.         } elseif ($i > 700){
  304.           usleep(250000);
  305.         }
  306.       }
  307. }
  308.  
  309.  
  310.  
  311. }
  312. }
  313.  
  314. }
  315.  
  316.  
  317. if($type == "checker"){
  318. $i = 0;
  319. $x = 100;
  320. $iapi = 0;
  321. $time_start = microtime(true);
  322. while(true){
  323. $rand = explode("\n", $this->random() );
  324. for ($z=0; $z < count($rand); $z++){
  325. $user = $rand[$z];
  326. $blockde = explode("\n", file_get_contents('blockde.txt'));
  327. if(!in_array("$user", $blockde)){
  328.   if($i == $x){
  329.   $x = $x + 100;
  330.  
  331.   if($iapi == 16){
  332.   $iapi = 0;
  333.   }else {
  334.   $iapi++;
  335.   }
  336.   $Check = $this->check("a",$user,$iapi);
  337.   }else{
  338.   $Check = $this->check("a",$user,$iapi);
  339.   }
  340.  
  341.  
  342. if($Check == "Good"){
  343. try {
  344. $MadelineProto->account->checkUsername(['username' => $user ]);
  345. if($put == "Channel"){
  346. if($puty == "n"){
  347. $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $user ]);
  348. $MadelineProto->messages->sendMessage(['peer' => $updates['updates'][1], 'message' => str_replace('USER',$user,$message) ]);
  349. $time_end = microtime(true);
  350. $execution_time = $time_end - $time_start;
  351. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nUsername taken [@$user]\nNumber of clicks [$i]\nTime taken [".$this->format_timer_result($execution_time)."]\n\nWas moved to [$put]\nName [$title]\nAbout [$about]\nmessage [".str_replace('USER',$user,$message)."]\n———————\n- @$admin"
  352. ]);
  353. $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => $title, 'about' => $about ]);
  354. }else {
  355. $MadelineProto->channels->updateUsername(['channel' => $user, 'username' => $user ]);
  356. $MadelineProto->messages->sendMessage(['peer' => $id, 'message' => str_replace('USER',$user,$message) ]);
  357. $time_end = microtime(true);
  358. $execution_time = $time_end - $time_start;
  359. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nUsername taken [@$user]\nNumber of clicks [$i]\nTime taken [".$this->format_timer_result($execution_time)."]\n\nWas moved to [$put]\nId [$id]\nmessage [".str_replace('USER',$user,$message)."]\n———————\n- @$admin"
  360. ]);
  361. }
  362. }
  363. if($put == "Account"){
  364. $MadelineProto->account->updateUsername(['username' => $user]);
  365. $time_end = microtime(true);
  366. $execution_time = $time_end - $time_start;
  367. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nUsername taken [@$user]\nNumber of clicks [$i]\nTime taken [".$this->format_timer_result($execution_time)."]\n\nWas moved to [$put]\n———————\n- @$admin"
  368. ]);
  369. break;
  370. }
  371. if($put == "BotFather"){
  372. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  373. 'message' => $user
  374. ]);
  375. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  376. 'message' => "/setabouttext"
  377. ]);
  378. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  379. 'message' => "@$user"
  380. ]);
  381. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  382. 'message' => "$about"
  383. ]);
  384. $time_end = microtime(true);
  385. $execution_time = $time_end - $time_start;
  386. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nUsername taken [@$user]\nNumber of clicks [$i]\nTime taken [".$this->format_timer_result($execution_time)."]\n\nWas moved to [$put]\nName [$title]\nAbout [$about]\n———————\n- @$admin"
  387. ]);
  388. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  389. 'message' => "/start"
  390. ]);
  391. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  392. 'message' => "/newbot"
  393. ]);
  394. $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
  395. 'message' => "$title"
  396. ]);
  397. }
  398.  
  399. echo "Username taken [@$user]\n";
  400. } catch(Exception $e){
  401. if($e->getMessage() == "The provided username is not valid" or $e->getMessage() == "USERNAME_OCCUPIED"){
  402. file_put_contents("blockde.txt", file_get_contents("blockde.txt")."$user\n");
  403. //$MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => '@' . $user . ':It was saved in list banned usernames']);
  404. }else{
  405. $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => '@' . $user . ':'.$e->getMessage()]);
  406. }
  407. echo $e->getMessage()."\n";
  408. }
  409. }else {
  410. echo "No:$user - ".$i++." $Check in:" .date('s'). " $iapi\n";
  411. }
  412. }
  413. }
  414. }
  415. }
  416. //------
  417. }
  418.  
  419.  
  420. }
  421. $type = readline("Choose between Turbo or Chucker or Speed-Clicks(t/c/s): ");
  422. $telegram = new telegram();
  423. if($type == "s"){
  424. $telegram->speed($admin);
  425. }
  426. if($type == 't'){
  427. $posttypework = 'turbo';
  428. $user = readline("Username: @");
  429. $plase = readline("Where do you want to put the username in the channel or account or BotFather(a/c/b): ");
  430.  
  431. if($plase == "c"){
  432.   $chaneel = readline("Do you want a new channel or id?(n/i): ");
  433.     $posttype = "Channel";
  434. }
  435. if($plase == "a"){
  436.     $posttype = "Account";
  437.     $chaneel = null;
  438.     $chaneln = null;
  439.     $chanela = null;
  440.     $chanelm = null;
  441. }
  442. if($plase == "b"){
  443.     $posttype = "BotFather";
  444.     $chaneel = null;
  445.   $chaneln = readline("Name: ");
  446.   $chanela = readline("About: ");
  447.     $chanelm = null;
  448. }
  449. if($chaneel == "i"){
  450.   $chaneelid = readline("Id: ");
  451.   $chanelm = readline("You can view the username in the message via USER \nmessage: ");
  452.   $chaneln = null;
  453.   $chanela = null;
  454. }elseif($chaneel == "n"){
  455.   $chaneln = readline("Name: ");
  456.   $chanela = readline("About: ");
  457.   $chanelm = readline("You can view the username in the message via USER \nmessage: ");
  458.       $chaneelid = 0;
  459. } else {
  460.     $chaneelid = 0;
  461. }
  462. }
  463. if($type == 'c'){
  464. $posttypework = 'checker';
  465. $user = null;
  466. $plase = readline("Where do you want to put the username in the channel or account or BotFather(a/c/b): ");
  467. if($plase == "c"){
  468.   $chaneel = readline("Do you want a new channel or id?(n/i): ");
  469.     $posttype = "Channel";
  470. }
  471. if($plase == "a"){
  472.     $posttype = "Account";
  473.     $chaneel = null;
  474.     $chaneln = null;
  475.     $chanela = null;
  476.     $chanelm = null;
  477. }
  478. if($plase == "b"){
  479.     $posttype = "BotFather";
  480.     $chaneel = null;
  481.   $chaneln = readline("Name: ");
  482.   $chanela = readline("About: ");
  483.     $chanelm = null;
  484. }
  485. if($chaneel == "i"){
  486.   $chaneelid = readline("Id: ");
  487.   $chanelm = readline("You can view the username in the message via USER \nmessage: ");
  488. }elseif($chaneel == "n"){
  489.   $chaneln = readline("Name: ");
  490.   $chanela = readline("About: ");
  491.   $chanelm = readline("You can view the username in the message via USER \nmessage: ");
  492.       $chaneelid = 0;
  493. } else {
  494.     $chaneelid = 0;
  495. }
  496. }
  497. if($type == 't' or $type == 'c'){
  498.  
  499. if($type == 't'){
  500. $holdtype = readline('Choose the Check type(t/m/a): ');
  501. if($holdtype == "t"){
  502. $hold = readline('Choose the speed of the clicks (4/6/25): ');
  503. }else{
  504.   $hold = 0;
  505. }
  506. }else{
  507.   $hold = 0;
  508.   $holdtype = "";
  509. }
  510. $telegram->start($holdtype,$hold,$posttypework,$posttype,$user,$chaneel,$chaneelid,$chaneln,$chanela,$chanelm);
  511. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top