[TS3] move client by IP

Discussion in 'PHP' started by hASVAN, Feb 8, 2016.

  1. hASVAN

    hASVAN Contributor

    hello guys i need script that check user if he is in teamspeak or no if he is connected he will be switched to channel by the ip
     
  2. Qraktzyl

    Qraktzyl Contributing Member

    Hello hASVAN,

    That's possible to do with the ts3 php framework. Is it always the same channel clients connect to?
     
  3. hASVAN

    hASVAN Contributor

    the script will create the channel and when he the user connect to the teamspeak he will switch him there
     
    Last edited: Feb 9, 2016
  4. JayJax

    JayJax Contributing Member

    Sounds something like : jts3servermod or something like : ЯbMod
     
  5. JayJax

    JayJax Contributing Member

  6. hASVAN

    hASVAN Contributor

    im using ts3 framework
     
    Last edited: Feb 9, 2016
  7. JayJax

    JayJax Contributing Member

    Ah okay.

    Btw somehow it feels like php is using too much cpu resources when being used on teamspeak.
    Might want to check that out, maybe a overflow vuln for teamspeak?
     
  8. hASVAN

    hASVAN Contributor

    what ??
     
  9. JayJax

    JayJax Contributing Member

    What i mean to say is that php somehow uses a lot of cpu when being used for teamspeak purpose.
     
  10. hASVAN

    hASVAN Contributor

    oh yes i know :p
     
  11. JayJax

    JayJax Contributing Member

    Thats what im trying to say, its already using alot of cpu, but if im correct there is a CVE Buffer Overflow for php, what if that could be used on teamspeak?
     
  12. Qraktzyl

    Qraktzyl Contributing Member

    https://github.com/RobinBeismann/ts3cm/blob/master/index.php
    This is similar to what you need. You need to create a database for it. Basically it will create a channel for the user, and move him to that channel.
    The only difference from what you want is that the user won't switch to this channel when connecting to the server.

    THIS IS SPECULATION, dont know if possible as I cannot check right now but if it would that's how I would do it :
    You could make a php script that runs each second. For each user on the server that are connected for less than 5 seconds, move them to their respective created channel as noted in database.

    I didn't notice that. You are talking about php in general or a specific version? Also, from my end, it was rbmod that was using a lot of server ressources :p.
     
  13. JayJax

    JayJax Contributing Member

    I ment in general :p for example the clock script takes alot of cpu resources :p
     
  14. hASVAN

    hASVAN Contributor

    thx man i love you :p
     
    Qraktzyl likes this.

Share This Page