Raised This Month: $ Target: $400
 0% 

smart setinfo _pw pass reset (unauthorized access)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mercury
Member
Join Date: Jun 2004
Old 07-21-2006 , 02:20   smart setinfo _pw pass reset (unauthorized access)
Reply With Quote #1

ok, i have an idea about smart reset setinfo _pw on users machines.
you know setinfo _pw "pass" sits in users config.cfg until you clear it manually. so that you can fall a victim of unauthorized access, especially when you are not the only person using your computer.

i'm new to amxx so my code doesn't work. included just to show examples.

i suggest the following:
1. on connect right after client_authorized() we should save all users passwords in array.
2. then clear them from users configs:

Code:
public client_authorized(id) {     if (!is_user_bot(id)) {         //save pass         user_pwds[id] = "his_setinfo_pass"         //clear setinfo         client_cmd(id,"setinfo _pw ^"^"")     }     return PLUGIN_CONTINUE }

3. right after timelimit has run out we should set those setinfos back:

Code:
new players[32], num get_players(players, num) for (new i=0; i<num; i++) {     client_cmd(i,"setinfo _pww ^"%s^"", user_pwds[i]) }

it's all ok in theory but i have no such a knowledges to build this one from the beginning up to the final end. so any advices would be much appreciated. ty.

p.s.: on the whole i think this functionality should be included in amxx by default (maybe as an optional cvar) since it brings in useful security improvement.
__________________
mercury is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 07-21-2006 , 02:42   Re: smart setinfo _pw pass reset (unauthorized access)
Reply With Quote #2

Code:
new players[32], num
get_players(players, num)
for (new i=0; i<num; i++)
{
    client_cmd(players[i],"setinfo _pww ^"%s^"", user_pwds[players[i]])
}
oops edited
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 07-21-2006 , 14:07   Re: smart setinfo _pw pass reset (unauthorized access)
Reply With Quote #3

set_user_info, use this instead.
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Flashhh!
Senior Member
Join Date: Nov 2005
Old 11-01-2006 , 11:32   Re: smart setinfo _pw pass reset (unauthorized access)
Reply With Quote #4

Well please we need urgently a plugin similar to this because some servers logs all connections of players on port 27015 and they are stolen the passwords of the admins of our servers and then enter and ban all the people.
I sugest a plugin that an admin need to type a second password to acces to his flags rights but "in game", something like this amx_mypassword xxxxxx.
This second password must not be in cfg or must not be read if someone logs player connection.
If he type in game that password the plugin should activate his flags rights. So if the admin connect to other servers and they stole the setinfo information they will need the second password to active the admin flags right.
I need urgent this plugin, Its a big problem and bug of HL games.

Last edited by Flashhh!; 11-01-2006 at 11:34.
Flashhh! is offline
Flashhh!
Senior Member
Join Date: Nov 2005
Old 11-01-2006 , 16:25   Re: smart setinfo _pw pass reset (unauthorized access)
Reply With Quote #5

no answers?
Flashhh! is offline
kurian
Member
Join Date: Aug 2005
Old 08-07-2007 , 05:06   Re: smart setinfo _pw pass reset (unauthorized access)
Reply With Quote #6

Quote:
Originally Posted by Cheap_Suit View Post
Code:
new players[32], num
get_players(players, num)
for (new i=0; i<num; i++)
{
    client_cmd(players[i],"setinfo _pww ^"%s^"", user_pwds[players[i]])
}
oops edited
u have any idea how many other ppl it will give you password to if you quit ?
EDIT:
ok nvm it wont.. old value will be overwritten when new person joins.
__________________
[IMG]http://img267.**************/img267/8526/userbarjg9.gif[/IMG]
kurian 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 08:53.


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