Raised This Month: $32 Target: $400
 8% 

AmxBans for non-own server


Post New Thread Reply   
 
Thread Tools Display Modes
gameplayonline
Member
Join Date: Jun 2017
Old 10-13-2017 , 14:22   Re: AmxBans for non-own server
Reply With Quote #11

I think solution can be add mysql user full rights but access only to tables what we need in database but im not expert to mysql and im not sure if is it possible. If have somebody tutorial to this we will tahnksgiving for that.
And we will create different users for every partner and this will fix problem with visible login details.

Last edited by gameplayonline; 10-14-2017 at 20:14.
gameplayonline is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 10-13-2017 , 16:05   Re: AmxBans for non-own server
Reply With Quote #12

Quote:
Originally Posted by Ex1T View Post
(because they will see MySQL access data in sql.cfg file) so they can connect to PhpMyAdmin and see passwords, delete all database, editing database etc.
I got an idea. Why not hardcode the db password in plugin itself instead of using that in sql.cfg?! And don't upload plugin sources to the game server, so the another partner won't be able to see that password.

Last edited by KiLLeR.; 10-13-2017 at 16:06.
KiLLeR. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-13-2017 , 22:41   Re: AmxBans for non-own server
Reply With Quote #13

Quote:
Originally Posted by gameplayonline View Post
I think one solution is to recode amxbans to use encoding like md5 but for reason we need allow editing or deleting bans DB user must have right to modify or delete tables and i think he is able to code his own password to md5 and replace amxbans master admin password in db and get access to banlist with full access rights...
We need allow show, add, edit and delete bans and for this reason we must know which functions mysql user needs.
MD5 don't do anything here. The user should not need to create or delete any tables. At most, they will only need to read and write entries to the predefined tables.

Even better is to have the non-owner accounts only able to write ban to the table. Then, if bans need to be removed, they can send a request to the owner to remove them. I think this is the best solution.

Quote:
Originally Posted by KiLLeR. View Post
I got an idea. Why not hardcode the db password in plugin itself instead of using that in sql.cfg?! And don't upload plugin sources to the game server, so the another partner won't be able to see that password.
It is extremely easy to get any text from the compiled plugin.
__________________
fysiks is offline
gameplayonline
Member
Join Date: Jun 2017
Old 10-14-2017 , 20:09   Re: AmxBans for non-own server
Reply With Quote #14

Ok we have created user with rights SELECT, INSERT to table amx_bans i think we need too right SELECT for table amx_amxadmins where is admin list to sucessfull admin connect on server... We will test it today now i try use logic...
When we have function SELECT on table amx_amxadmins i think is possible to get other admin details like username/passwords to servers where some owner dont have rights...
Are you see any solution to this?

Last edited by gameplayonline; 10-14-2017 at 20:12.
gameplayonline is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-15-2017 , 13:47   Re: AmxBans for non-own server
Reply With Quote #15

Quote:
Originally Posted by fysiks View Post
MD5 don't do anything here. The user should not need to create or delete any tables. At most, they will only need to read and write entries to the predefined tables.

Even better is to have the non-owner accounts only able to write ban to the table. Then, if bans need to be removed, they can send a request to the owner to remove them. I think this is the best solution.



It is extremely easy to get any text from the compiled plugin.
he said to hardcode it...
__________________
retired chump
DjSoftero is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-15-2017 , 20:52   Re: AmxBans for non-own server
Reply With Quote #16

Quote:
Originally Posted by DjSoftero View Post
he said to hardcode it...
Quote:
Originally Posted by fysiks View Post
It is extremely easy to get any text from the compiled plugin.
__________________
fysiks is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-16-2017 , 11:29   Re: AmxBans for non-own server
Reply With Quote #17

this won`t do it?
PHP Code:
new cdeg
new ae[5]
ae[0] = e
ae
[2] = d
ae
[3] = g
ae
[1] = 
and like throw it all over the place

yeah, if a person rly wants to know it, he can dig it up eventualy. nvm
__________________
retired chump

Last edited by DjSoftero; 10-16-2017 at 12:38.
DjSoftero is offline
gameplayonline
Member
Join Date: Jun 2017
Old 10-17-2017 , 06:53   Re: AmxBans for non-own server
Reply With Quote #18

He can get server admin passwords from other servers from mysql database too...
gameplayonline is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 10-17-2017 , 16:48   Re: AmxBans for non-own server
Reply With Quote #19

If every server add its own table for admins and don't give access on your ally to tables from your servers?
KiLLeR. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-17-2017 , 21:27   Re: AmxBans for non-own server
Reply With Quote #20

Quote:
Originally Posted by gameplayonline View Post
He can get server admin passwords from other servers from mysql database too...
There's a problem right there, admins shouldn't be authenticated by password.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode