planetteamspeak / ts3phpframework

Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
https://www.planetteamspeak.com
GNU General Public License v3.0
211 stars 59 forks source link

Get license information #110

Closed Sebbo94BY closed 6 years ago

Sebbo94BY commented 6 years ago

There is no way to get license information from the current connected TeamSpeak instance, or?

Something like this:

ronindesign commented 6 years ago

No, this has been discussed on the forum before I believe.

EDIT: Forum comment - there is no way to check license info over server query, and we certainly don't want to be transmitting / receiving your license keys across unknown network security.

Since, for many users, the framework is rarely used on the same server as the TeamSpeak3 server, we do not want to include this functionality since it's not baked into the TS3 server's query system.

You can follow same logic as Yat.qa query tool and ~easily parse this from your licensekey.dat file locally on your teamspeak server~. EDIT: Janni @ Yat.qa does not parse the licensekey (again for security reasons), it looks like his tool reads the log file (under some conditions, available via server query):

As I already told you in another thread, log is the only way to do anything like this. And it doesn't work for updated licenses or logappend=1. -- Janni (YaTQA)

It is formatted as follows:

company name : Testing Company
address      : 12345 123rd Ave Se
zipcode      : 12345
city         : My City
country      : United States of America
phone        : 1234567890
fax          : 
sales contact: Contact1 Tester (contact1@testercompany.com)
tech contact : Contact2 Tester (contact2@testercompany.com)

type         : Non-Profit License
start date   : Sat Jan 13 00:00:00 1969
end date     : Wed Dec 10 00:00:00 3210
max. virtual servers: 10
max. slots   : 512
description  : TeamSpeak 3 Non-Profit License

==key2==
<key>
==key2==

==key==
<key>

Opening the door to accessing the server's license increases security risk and, for some, might be enough to dissuade them from using the framework altogether.

Sebbo94BY commented 6 years ago

It would be cool, if TeamSpeak would just provide a command to display the current detected license information like I mentioned for only authorized super server admins.

They don't need to show the license key(s) - only the other information, which are useful.

Ok, then I need to check the instance log file for this. I thought there is a trick to get it using a ServerQuery command.

Thanks for your feedback.

ronindesign commented 6 years ago

Yeah, I would also like this. I know I could have used this this in some of my projects.

Not much we can do when the TS3 server doesn't have the functionality, it is unfortunate...