Automatic System scRipt

Discussion in 'Web scripts' started by DDoSBoy, Aug 17, 2016.

  1. DDoSBoy

    DDoSBoy Member

    Hello All , We are maked a bot Name automatic system what should do , ?
    if u give him V.I.P Gold Give the player the letters For V.I.P Gold ..
    //Script Created By @sa7er , @Special

    PHP:
    <?php
    //Script Created By @sa7er=Mahmoud-Ma7mouD, @Special
    //r4p3 all rights rservered 2016
    ini_set('display_errors''1');
    require_once(
    "libraries/TeamSpeak3/TeamSpeak3.php");
    $botname '[R4P3]%20Automatic%20System%20[' mt_rand(10010000).']';
    $ts3_VirtualServer TeamSpeak3::factory("serverquery://serveradmin:[email protected]:10011/?server_port=9987&blocking=0&nickname=$botname");


            
    $ClientList $ts3_VirtualServer->clientList(array("serverGroupGetByName" => "Server Admin","serverGroupGetByName" => "Server Admin"));
    foreach(
    $ClientList as $Client)
    {
        
    //Here the v.i.p group or ...
        
    $_SESSION ['ggids'] = explode(","$Client["client_servergroups"]);
        if(
    in_array(797,$_SESSION['ggids']))
        {
            
    //here the groups will checked
            
    if(!in_array(689,$_SESSION['ggids']))
            if(!
    in_array(690,$_SESSION['ggids']))
            if(!
    in_array(691,$_SESSION['ggids']))
    {
        
    //Here add the server group
            
    $Client->addservergroup(689);
            
    $Client->addservergroup(690);
            
    $Client->addservergroup(691);
            }
        }
    }
            
    $ClientList $ts3_VirtualServer->clientList(array("serverGroupGetByName" => "Server Admin","serverGroupGetByName" => "Server Admin"));
    foreach(
    $ClientList as $Client)
    {
            
    //Here the v.i.p group or ...
        
    $_SESSION ['ggids'] = explode(","$Client["client_servergroups"]);
        if(!
    in_array(797,$_SESSION['ggids']))
        {
            
    //here the groups will checked
            
    if(in_array(689,$_SESSION['ggids']))
            if(
    in_array(690,$_SESSION['ggids']))
            if(
    in_array(691,$_SESSION['ggids']))
    {
        
    //Here remove the server group
            
    $Client->remservergroup(689);
            
    $Client->remservergroup(690);
            
    $Client->remservergroup(691);
            }
        }
    }


    ?>
    http://image.prntscr.com/image/fc03c124e34e40a2891bfadd20c6e2ce.png
    * How to install ?
    [Download ] https://mega.nz/#!zppjhJoa!jvh7rQmpG7d6_mFmxHG_n3CnLwzr82IBPWtYdMX2T3A
    [VirusTotal] https://www.virustotal.com/ar/url/7...2ba513e14cc585f8e8d0f6cf04bf112f755/analysis/

    How to Start

    // type the file folder ,, for ur var settings
    apt-get install nano
    apt-get install cron

    crontab -e
    and go down and type this
    /1 * * * * php /var/www/Auto.php >/dev/null 2>&1

    _______________________________________________________

    New Update 1.1 Automatic system script

    Whats the news?
    Add more groups , make it with config :) very easy to edit them

    Note : If you want a new update Just type what do you want for the next update
    Config Here :
    Just change the Numbers i type And make it as you need :)

    PHP:
    <?php
    #   ____             __ _   
    #  / ___|___  _ __  / _(_) __ _
    # | |   / _ \| '_ \| |_| |/ _` |
    # | |__| (_) | | | |  _| | (_| |
    #  \____\___/|_| |_|_| |_|\__, |
    #                         |___/
    // Info
    $YATQA_username '';
    $YATQA_password '';
    $YATQA_queryport '';
    $server_ip '';
    $server_port '';
    $botname '[R4P3]Automatic-System%20Bot%20['mt_rand(099).']';
    #Settings
    $firstGroup '6';
    //Here type the ids For group's you want to add them it
    $firstGroup1 '9';
    $firstGroup2 '10';
    $firstGroup3 '11';
    //To Group
    $toGroup '12';
    //Here type the ids For group's you want to add them it
    $toGroup1 '13';
    $toGroup2 '14';
    $toGroup3 '15';
    //Three Group
    $threeGroup '16';
    //Here type the ids For group's you want to add them it
    $threeGroup1 '17';
    $threeGroup2 '18';
    $threeGroup3 '109';
    // If you want to make more groups just do same i do


    ?>


    Here Original PHP File Auto.php
    dont do anything or edit them just edit in config.php


    PHP:
    <?php
    #  ____                  _       _  
    # / ___| _ __   ___  ___(_) __ _| |
    # \___ \| '_ \ / _ \/ __| |/ _` | |
    #  ___) | |_) |  __/ (__| | (_| | |___
    # |____/| .__/ \___|\___|_|\__,_|_____|
    #       |_|            
    #  __  __      _____                      ____
    # |  \/  | __ |___  | __ ___   ___  _   _|  _ \
    # | |\/| |/ _` | / / '_ ` _ \ / _ \| | | | | | |
    # | |  | | (_| |/ /| | | | | | (_) | |_| | |_| |
    # |_|  |_|\__,_/_/ |_| |_| |_|\___/ \__,_|____/

    # Information                                
    # Youtube Channel : SpeciaL Programmer
    # Forum : R4P3.NET
    # Author : SpeciaL @Special , Ma7mouD @DDosBoy
    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
    include_once(
    "config.php");
    $ts3_VirutalServer TeamSpeak3::factory("serverquery://".$YATQA_username.":".$YATQA_password."@".$server_ip.":".$YATQA_queryport."/?server_port=".$server_port."&nickname=".$botname."");
        
    $ClientList $ts3_VirutalServer->clientlist();
            foreach(
    $ClientList as $Client)
    {
                
    $_SESSION ['ggids'] = explode(","$Client["client_servergroups"]);
                if(
    in_array($firstGroup,$_SESSION['ggids']))
                {
                if(!
    in_array($firstGroup1,$_SESSION['ggids']))
                if(!
    in_array($firstGroup2,$_SESSION['ggids']))
                if(!
    in_array($firstGroup3,$_SESSION['ggids']))
                {
                    
    $Client->addservergroup($firstGroup1);
                    
    $Client->addservergroup($firstGroup2);
                    
    $Client->addservergroup($firstGroup3);
                }
    }
                
    $_SESSION ['ggids'] = explode(","$Client["client_servergroups"]);
                if(
    in_array($toGroup,$_SESSION['ggids']))
                {
                if(!
    in_array($toGroup1,$_SESSION['ggids']))
                if(!
    in_array($toGroup2,$_SESSION['ggids']))
                if(!
    in_array($toGroup3,$_SESSION['ggids']))
                {
                    
    $Client->addservergroup(13);
                    
    $Client->addservergroup(14);
                    
    $Client->addservergroup(15);
        }
    }
                
    $_SESSION ['ggids'] = explode(","$Client["client_servergroups"]);
                if(
    in_array($threeGroup,$_SESSION['ggids']))
                {
                if(!
    in_array($threeGroup1,$_SESSION['ggids']))
                if(!
    in_array($threeGroup2,$_SESSION['ggids']))
                if(!
    in_array($threeGroup3,$_SESSION['ggids']))
                {
                    
    $Client->addservergroup($threeGroup1);
                    
    $Client->addservergroup($threeGroup2);
                    
    $Client->addservergroup($threeGroup3);
                }
    }
    }
    #   ____ _               _          
    #  / ___| |__   ___  ___| | _____ _ __
    # | |   | '_ \ / _ \/ __| |/ / _ \ '__|
    # | |___| | | |  __/ (__|   <  __/ |
    #  \____|_| |_|\___|\___|_|\_\___|_|
     
    // Thats checker For remove server groups                              
            
    $ClientList $ts3_VirutalServer->clientlist();
    foreach(
    $ClientList as $Client)
    {
     
        
    $_SESSION ['ggids'] = explode(","$Client["client_servergroups"]);
        if(!
    in_array($firstGroup,$_SESSION['ggids']))
        {
            if(
    in_array($firstGroup1,$_SESSION['ggids']))
            if(
    in_array($firstGroup2,$_SESSION['ggids']))
            if(
    in_array($firstGroup3,$_SESSION['ggids']))
        {
            
    $Client->remservergroup($firstGroup1);
            
    $Client->remservergroup($firstGroup2);
            
    $Client->remservergroup($firstGroup3);
        }
        }
        
    $_SESSION ['ggids'] = explode(","$Client["client_servergroups"]);
        if(!
    in_array($toGroup,$_SESSION['ggids']))
        {
            if(
    in_array($toGroup1,$_SESSION['ggids']))
            if(
    in_array($toGroup2,$_SESSION['ggids']))
            if(
    in_array($toGroup3,$_SESSION['ggids']))
       {
            
    $Client->remservergroup($toGroup1);
            
    $Client->remservergroup($toGroup2);
            
    $Client->remservergroup($toGroup3);
            }
    }
        
    $_SESSION ['ggids'] = explode(","$Client["client_servergroups"]);
        if(!
    in_array($threeGroup,$_SESSION['ggids']))
        {
            if(
    in_array($threeGroup1,$_SESSION['ggids']))
            if(
    in_array($threeGroup2,$_SESSION['ggids']))
            if(
    in_array($threeGroup3,$_SESSION['ggids']))
       {
            
    $Client->remservergroup($threeGroup1);
            
    $Client->remservergroup($threeGroup2);
            
    $Client->remservergroup($threeGroup3);
            }
    }



    }
    ?>

    DL : https://mega.nz/#!gN8x2DbT!FZYLjsPm8dXmel1lHL5UMwmibKcZypNuhi3cMyUaq_I
    Virustotal : https://www.virustotal.com/en/file/...68c3ef453b4109a123989f3f/analysis/1479337404/
     
    Last edited: Nov 17, 2016
    AAaaLLi1, tiro and Special like this.
  2. Special

    Special Contributing Member

    Nice , From Android ☺
     
    DDoSBoy likes this.
  3. iiOne

    iiOne Member

    if i remove the vip group its remove the letters to ?
     
    DDoSBoy likes this.
  4. DDoSBoy

    DDoSBoy Member

    Yes And you can add more Gruops
     
    iiOne likes this.
  5. EscuderoKevin

    EscuderoKevin Active Member

    pls , check the tittle , u can put "Automatic ServerGroups System" more descriptive please
     
    timodohmen and DDoSBoy like this.
  6. Nice I Love this idea well done mahmoud
     
    DDoSBoy likes this.
  7. Who the hell uses
    ini_set('display_errors', '1');

    in a Production Environment
     
  8. It Still Works So Don't Hate Please
     
  9. ehthe

    ehthe Super Mod TS3 Dev-Team

    Well since it acts as a local script there's no harm doing so.
     
    Special, Ridicc and Muntadher Safaa like this.
  10. EscuderoKevin

    EscuderoKevin Active Member


    ->
     
  11. Alligatoras

    Alligatoras Super Mod

  12. UnKING

    UnKING New Member

    @sa7er
    Did you have teamspeak server ?
    yes ? send me ip
     
    DDoSBoy likes this.
  13. Alligatoras

    Alligatoras Super Mod

    @Special and @sa7er (in case you talked)
    I fixed it, took me some more time, but works as charm!
     
  14. AAaaLLi1

    AAaaLLi1 New Member

    nice its work
     
    Last edited: Jan 14, 2017
  15. Ridicc

    Ridicc Super Mod

    It has to be started in a crontab.
     
    DDoSBoy likes this.
  16. DDoSBoy

    DDoSBoy Member

    yes he work from crontabe -e
     
  17. fahad

    fahad New Member

    crontab -e
    and go down and type this
    */1 * * * * php /var/www/Auto.php >/dev/null 2>&1 i have a problem can you make a video ?

    E486: Pattern not found: 1 * * * * php <---- this is the problim
     
    Last edited by a moderator: Oct 1, 2016
    Special and DDoSBoy like this.
  18. Special

    Special Contributing Member

    Wait. i'll do a video in 3 day's.
    and i happy this work with you. in the video!
     
    Umar and DDoSBoy like this.
  19. mogrem999

    mogrem999 New Member

    can you give me the The solution
     
  20. Alligatoras

    Alligatoras Super Mod

    solution for what? their scripts works as charm, i did some modifications for myself that didn't work and needed their help! else there are no issues!
     
    Special likes this.

Share This Page