Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- /* by @api_web */
- -----------------------
- Mr Mohammed - @MMxMM :))
- -----------------------
- */
- ini_set('display_errors', 0);
- ini_set('display_startup_errors', 0);
- error_reporting(E_ALL);
- @ini_set('zlib.output_compression',0);
- @ini_set('implicit_flush',1);
- @ob_end_clean();
- set_time_limit(0);
- ob_implicit_flush(1);
- ini_set('max_execution_time', -1);
- //---------------------
- $account = "SJAD100";
- $admin = "SJAD100";
- //---------------------
- include 'madeline.php';
- $MadelineProto = new \danog\MadelineProto\API($account.'.madeline');
- $MadelineProto->start();
- class telegram{
- public function curlGet($url) {
- $ch = curl_init();
- curl_setopt($ch,CURLOPT_URL,$url);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
- curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
- $res = curl_exec($ch);
- return $res;
- }
- public function format_timer_result($time_in_seconds){
- $time_in_seconds = ceil($time_in_seconds);
- // Check for 0
- if ($time_in_seconds == 0){
- return 'Less than a second';
- }
- // Days
- $days = floor($time_in_seconds / (60 * 60 * 24));
- $time_in_seconds -= $days * (60 * 60 * 24);
- // Hours
- $hours = floor($time_in_seconds / (60 * 60));
- $time_in_seconds -= $hours * (60 * 60);
- // Minutes
- $minutes = floor($time_in_seconds / 60);
- $time_in_seconds -= $minutes * 60;
- // Seconds
- $seconds = floor($time_in_seconds);
- // Format for return
- $return = '';
- if ($days > 0){
- $return .= $days . ' Day' . ($days == 1 ? '' : 's'). ' ';
- }
- if ($hours > 0){
- $return .= $hours . ' Hour' . ($hours == 1 ? '' : 's') . ' ';
- }
- if ($minutes > 0){
- $return .= $minutes . ' Minute' . ($minutes == 1 ? '' : 's') . ' ';
- }
- if ($seconds > 0){
- $return .= $seconds . ' Second' . ($seconds == 1 ? '' : 's') . ' ';
- }
- $return = trim($return);
- return $return;
- }
- public function random(){
- $out = "";
- $rand = substr(str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0,1);
- $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);
- $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');
- $out="";
- $out = $out . $rand . $rand . $rand . $rand . $rand."\n";
- $out = $out . $rand . "_" . $rand . "_" . $rand."\n";
- $out = $out . $rand . $rand . $rand . $rand . $rand . $rand."\n";
- $out = $out . $rand . $rand . $rand . $rand . $rand . $rand . $rand."\n";
- $out = $out . $rand . $rand . $rand . $rand . $rand . $rand . $rand . $rand."\n";
- $out = $out . $rand . $rand . $rand . $rand . $rand . $rand . $rand . $rand . $rand."\n";
- $out = $out . $rand . "_" . $rand . $rand . $rand."\n";
- $out = $out . $rand . $rand . "_" . $rand . $rand."\n";
- $out = $out . $rand .$rand . $rand . "_" . $rand."\n";
- $b = "bot";
- $out = $out . $rand.$rand.$rand.$b."\n";
- $out = $out . $rand.$rand.$rand."_".$b."\n";
- for ($i = 0; $i < count($randomx); $i++) {
- $two = $rand;
- $one = $randomx[$i];
- $out = $out . $one.$two.$two.$two.$two."\n";
- $out = $out . $two.$one.$b."\n";
- $out = $out . $one.$two.$b."\n";
- }
- $two = $rand;
- $out = $out . $two."1111"."\n";
- $out = $out . $two."2222"."\n";
- $out = $out . $two."3333"."\n";
- $out = $out . $two."4444"."\n";
- $out = $out . $two."5555"."\n";
- $out = $out . $two."6666"."\n";
- $out = $out . $two."7777"."\n";
- $out = $out . $two."8888"."\n";
- $out = $out . $two."9999"."\n";
- for ($i = 0; $i < count($randomf); $i++) {
- $two = $rand;
- $one = $randomf[$i];
- $out = $out . $two.$two.$one.$two.$two."\n";
- $out = $out . $two.$one.$two.$two.$two."\n";
- $out = $out . $two.$two.$two.$one.$two."\n";
- $out = $out . $two.$one.$b."\n";
- if($one != "_"){
- $out = $out . $two.$two.$two.$two.$one."\n";
- $out = $out . $one.$two.$b."\n";
- }
- }
- return $out;
- }
- public function speed($user){
- global $MadelineProto;
- global $admin;
- $start = date('s');
- $countpreesinsoucnds = 0;
- while(true){
- $this->check("a",$user,"0");
- $end = date('s');
- if($start == $end){
- $countpreesinsoucnds++;
- }else {
- break;
- }
- }
- echo "The number of clicks per second is:".$countpreesinsoucnds;
- $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => "New update ✅\n———————\nThe number of clicks per second is:$countpreesinsoucnds\n———————\n- @$admin"
- ]);
- }
- public function check($type,$user,$typea=null){
- global $MadelineProto;
- if($type == "t"){
- $get = $this->curlGet('http://telegram.me/'.$user);
- if(!strpos($get,"tgme_page_extra")){
- return "Good";
- }else {
- return "Bad";
- }
- }
- if($type == "m"){
- try{
- $MadelineProto->messages->getPeerDialogs(['peers'=> [$user]]);
- return "Bad";
- }catch(Exception $e){
- return "Good";
- }
- }
- if($type == "a"){
- $arrapi = [
- 'http://188.166.2.245/index.php?user=',
- 'http://188.166.7.159/userinfo/index.php?user=',
- 'http://178.62.243.245/userinfo/index.php?user=',
- 'http://178.62.252.143/userinfo/index.php?user=',
- 'http://128.199.59.56/userinfo/index.php?user=',
- 'http://178.62.255.217/userinfo/index.php?user=',
- 'http://188.166.7.240/userinfo/index.php?user=',
- 'http://188.166.12.7/userinfo/index.php?user=',
- 'http://188.166.13.81/userinfo/index.php?user=',
- 'http://188.166.14.250/userinfo/index.php?user=',
- 'http://206.189.106.129/userinfo/index.php?user=',
- 'http://206.189.106.132/userinfo/index.php?user=',
- 'http://206.189.106.134/userinfo/index.php?user=',
- 'http://159.65.202.245/userinfo/index.php?user=',
- 'http://167.99.212.46/userinfo/index.php?user=',
- 'http://188.166.121.118/userinfo/index.php?user=',
- 'http://167.99.215.205/userinfo/index.php?user='
- ];
- return $this->curlGet($arrapi[$typea]."$user");
- }
- }
- public function start($holdtype,$hold,$type,$put,$user=null,$puty,$id=null,$title=null,$about=null,$message=null){
- global $admin;
- global $MadelineProto;
- $res = "Project X has been Launched";
- $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => $res]);
- //------
- if($put == "BotFather"){
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "/start"
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "/newbot"
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "$title"
- ]);
- }
- if($put == "Channel"){
- if($puty == "n"){
- $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => $title, 'about' => $about ]);
- }
- }
- if($type == "turbo"){
- $i = 0;
- $x = 100;
- $iapi = 0;
- $time_start = microtime(true);
- while(true){
- if($holdtype == "a"){
- if($i == $x){
- $x = $x + 100;
- if($iapi == 16){
- $iapi = 0;
- }else {
- $iapi++;
- }
- $Check = $this->check($holdtype,$user,$iapi);
- }else{
- $Check = $this->check($holdtype,$user,$iapi);
- }
- }else{
- $Check = $this->check($holdtype,$user);
- }
- if($Check == "Good"){
- try {
- if($put == "Channel"){
- if($puty == "n"){
- $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $user ]);
- $MadelineProto->messages->sendMessage(['peer' => $updates['updates'][1], 'message' => str_replace('USER',$user,$message) ]);
- $time_end = microtime(true);
- $execution_time = $time_end - $time_start;
- $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"
- ]);
- }else {
- $MadelineProto->channels->updateUsername(['channel' => $id, 'username' => $user ]);
- $MadelineProto->messages->sendMessage(['peer' => $id, 'message' => str_replace('USER',$user,$message) ]);
- $time_end = microtime(true);
- $execution_time = $time_end - $time_start;
- $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"
- ]);
- }
- }
- if($put == "Account"){
- $MadelineProto->account->updateUsername(['username' => $user]);
- $time_end = microtime(true);
- $execution_time = $time_end - $time_start;
- $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"
- ]);
- }
- if($put == "BotFather"){
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => $user
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "/setabouttext"
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "@$user"
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "$about"
- ]);
- $time_end = microtime(true);
- $execution_time = $time_end - $time_start;
- $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"
- ]);
- }
- echo "Username taken [@$user]\n";
- break;
- } catch(Exception $e){
- if($e->getMessage() == "The provided username is not valid" or $e->getMessage() == "USERNAME_OCCUPIED"){
- file_put_contents("blockde.txt", file_get_contents("blockde.txt")."$user\n");
- //$MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => '@' . $user . ':It was saved in list banned usernames']);
- }else{
- $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => '@' . $user . ':'.$e->getMessage()]);
- }
- echo $e->getMessage()."\n";
- }
- }else {
- echo "No:$user - ".$i++." $Check in:" .date('s'). " $iapi\n";
- if($holdtype == "t"){
- if($hold == 4){
- usleep(250000);
- } elseif($hold == 6){
- usleep(150000);
- } else {
- if($i >= 260 and $i <= 700){
- usleep(150000);
- } elseif ($i > 700){
- usleep(250000);
- }
- }
- }
- }
- }
- }
- if($type == "checker"){
- $i = 0;
- $x = 100;
- $iapi = 0;
- $time_start = microtime(true);
- while(true){
- $rand = explode("\n", $this->random() );
- for ($z=0; $z < count($rand); $z++){
- $user = $rand[$z];
- $blockde = explode("\n", file_get_contents('blockde.txt'));
- if(!in_array("$user", $blockde)){
- if($i == $x){
- $x = $x + 100;
- if($iapi == 16){
- $iapi = 0;
- }else {
- $iapi++;
- }
- $Check = $this->check("a",$user,$iapi);
- }else{
- $Check = $this->check("a",$user,$iapi);
- }
- if($Check == "Good"){
- try {
- $MadelineProto->account->checkUsername(['username' => $user ]);
- if($put == "Channel"){
- if($puty == "n"){
- $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $user ]);
- $MadelineProto->messages->sendMessage(['peer' => $updates['updates'][1], 'message' => str_replace('USER',$user,$message) ]);
- $time_end = microtime(true);
- $execution_time = $time_end - $time_start;
- $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"
- ]);
- $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => $title, 'about' => $about ]);
- }else {
- $MadelineProto->channels->updateUsername(['channel' => $user, 'username' => $user ]);
- $MadelineProto->messages->sendMessage(['peer' => $id, 'message' => str_replace('USER',$user,$message) ]);
- $time_end = microtime(true);
- $execution_time = $time_end - $time_start;
- $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"
- ]);
- }
- }
- if($put == "Account"){
- $MadelineProto->account->updateUsername(['username' => $user]);
- $time_end = microtime(true);
- $execution_time = $time_end - $time_start;
- $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"
- ]);
- break;
- }
- if($put == "BotFather"){
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => $user
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "/setabouttext"
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "@$user"
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "$about"
- ]);
- $time_end = microtime(true);
- $execution_time = $time_end - $time_start;
- $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"
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "/start"
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "/newbot"
- ]);
- $MadelineProto->messages->sendMessage(['peer' => '@BotFather',
- 'message' => "$title"
- ]);
- }
- echo "Username taken [@$user]\n";
- } catch(Exception $e){
- if($e->getMessage() == "The provided username is not valid" or $e->getMessage() == "USERNAME_OCCUPIED"){
- file_put_contents("blockde.txt", file_get_contents("blockde.txt")."$user\n");
- //$MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => '@' . $user . ':It was saved in list banned usernames']);
- }else{
- $MadelineProto->messages->sendMessage(['peer' => '@'.$admin, 'message' => '@' . $user . ':'.$e->getMessage()]);
- }
- echo $e->getMessage()."\n";
- }
- }else {
- echo "No:$user - ".$i++." $Check in:" .date('s'). " $iapi\n";
- }
- }
- }
- }
- }
- //------
- }
- }
- $type = readline("Choose between Turbo or Chucker or Speed-Clicks(t/c/s): ");
- $telegram = new telegram();
- if($type == "s"){
- $telegram->speed($admin);
- }
- if($type == 't'){
- $posttypework = 'turbo';
- $user = readline("Username: @");
- $plase = readline("Where do you want to put the username in the channel or account or BotFather(a/c/b): ");
- if($plase == "c"){
- $chaneel = readline("Do you want a new channel or id?(n/i): ");
- $posttype = "Channel";
- }
- if($plase == "a"){
- $posttype = "Account";
- $chaneel = null;
- $chaneln = null;
- $chanela = null;
- $chanelm = null;
- }
- if($plase == "b"){
- $posttype = "BotFather";
- $chaneel = null;
- $chaneln = readline("Name: ");
- $chanela = readline("About: ");
- $chanelm = null;
- }
- if($chaneel == "i"){
- $chaneelid = readline("Id: ");
- $chanelm = readline("You can view the username in the message via USER \nmessage: ");
- $chaneln = null;
- $chanela = null;
- }elseif($chaneel == "n"){
- $chaneln = readline("Name: ");
- $chanela = readline("About: ");
- $chanelm = readline("You can view the username in the message via USER \nmessage: ");
- $chaneelid = 0;
- } else {
- $chaneelid = 0;
- }
- }
- if($type == 'c'){
- $posttypework = 'checker';
- $user = null;
- $plase = readline("Where do you want to put the username in the channel or account or BotFather(a/c/b): ");
- if($plase == "c"){
- $chaneel = readline("Do you want a new channel or id?(n/i): ");
- $posttype = "Channel";
- }
- if($plase == "a"){
- $posttype = "Account";
- $chaneel = null;
- $chaneln = null;
- $chanela = null;
- $chanelm = null;
- }
- if($plase == "b"){
- $posttype = "BotFather";
- $chaneel = null;
- $chaneln = readline("Name: ");
- $chanela = readline("About: ");
- $chanelm = null;
- }
- if($chaneel == "i"){
- $chaneelid = readline("Id: ");
- $chanelm = readline("You can view the username in the message via USER \nmessage: ");
- }elseif($chaneel == "n"){
- $chaneln = readline("Name: ");
- $chanela = readline("About: ");
- $chanelm = readline("You can view the username in the message via USER \nmessage: ");
- $chaneelid = 0;
- } else {
- $chaneelid = 0;
- }
- }
- if($type == 't' or $type == 'c'){
- if($type == 't'){
- $holdtype = readline('Choose the Check type(t/m/a): ');
- if($holdtype == "t"){
- $hold = readline('Choose the speed of the clicks (4/6/25): ');
- }else{
- $hold = 0;
- }
- }else{
- $hold = 0;
- $holdtype = "";
- }
- $telegram->start($holdtype,$hold,$posttypework,$posttype,$user,$chaneel,$chaneelid,$chaneln,$chanela,$chanelm);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement