Showing server password [PHP]

FromLondon

Honk Honk
TeamSpeak Developer
VIP
May 20, 2016
264
107
136
Hello guys! Anyone know how to get and show server password with php ?
Which metods are using for encryption?
 

InVaDeR359

Active Member
May 29, 2017
160
121
72
I don't think you can show the server password without actually writing the password in the php file.
 

EscuderoKevin

Well-Known Member
Jul 2, 2015
380
181
130
Whiout serveradmin query password its impossible if u haave serveradmid password its easy...

PHP:
//Connection
$config = array(
    "address" => "localhost",
    "queryport" => "10011",
    "serveradmin" => "serveradmin",
    "password" => "qwerty",
    "port" => "9987",
    "nickname" => "CodexBOT"
);
 $ts3_VirtualServer = TeamSpeak3::factory("serverquery://{$config['serveradmin']}:{$config['password']}@{$config['address']}:{$config['queryport']}/?server_port={$config['port']}&nickname={$config['nickname']}");
 $serverpassword= $ts3_VirtualServer->virtualserver_password
 echo $serverpassword;
 

FromLondon

Honk Honk
TeamSpeak Developer
VIP
May 20, 2016
264
107
136
You are aware that the ServerQuery Password you get there is encrypted?
Yes, i know about that. I want decrypt him and show on control panel
But I do not know which methods are used to encrypt it
 

Supervisor

Administrator
Apr 27, 2015
1,863
2,546
335
its a hash :D
hashes are used for a one-way encryption - its designed so you are NOT able to decrypt it easily :D
 

Najsr

Moderator
TeamSpeak Developer
Apr 23, 2016
483
249
167
What about making a script that will change password on server and also it will change it on a web (SQL?).
 

FromLondon

Honk Honk
TeamSpeak Developer
VIP
May 20, 2016
264
107
136
What about making a script that will change password on server and also it will change it on a web (SQL?).
And if for example the administrator decided to change the password, being directly on the server, and not from the web panel :)
 
Top