[FilterScript] [FS] « MellAdmin » - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]
#61

Oh boy. It hurts to see how you deal with the passwords in this filterscript, and then release it to the public...

Passwords should never be hashed in the SQL query, nor should MD5 be ever used for hashing passwords.
Reply
#62

Quote:
Originally Posted by Johnson_boy
Посмотреть сообщение
Oh boy. It hurts to see how you deal with the passwords in this filterscript, and then release it to the public...

Passwords should never be hashed in the SQL query, nor should MD5 be ever used for hashing passwords.
I refer to https://sampforum.blast.hk/showthread.php?tid=496953
Reply
#63

Quote:
Originally Posted by Mellnik
Посмотреть сообщение
pawn Код:
stock CheckPlayerPassword(playerid, hash[])
{
    #if USE_MYSQL == true
    new query[256];
    mysql_real_escape_string(hash, hash);
    format(query, sizeof(query), "SELECT `Hash` FROM `"#MYSQL_TABLE"` WHERE `PlayerName` = '%s' AND `Hash`= MD5('%s')", GetName(playerid), hash);
    if(mysql_ping(gSQL))
    {
        mysql_query(query, _CHECK_PASSWORD, playerid, gSQL);
    }
    #else
I'm pretty sure the password is hashed in the query. Variable hash contains user input from the dialog, and is hashed using MySQL's MD5 function.
Reply
#64

If I change '#define USE_MYSQL' to 'True', why returns this error?

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           5296 bytes
Code size:           147048 bytes
Data size:           205224 bytes
Stack/heap size:       9600 bytes; estimated max. usage: unknown, due to recursion
Total requirements:  367168 bytes
I'm sorry for my bad English!
Reply
#65

Nice job
Reply
#66

Nice!
Reply
#67

well done!
Reply
#68

Glad to see you here Mellnik
Also thanks for sharing this system is AMAZING , I hope you to keep it up

Black_and_red
Reply
#69

Hello,
I have a problem with this admin system.
Use Garhouse, GangSystem
Once I put this system admin, I do not work properly these systems.
For example, I can not buy a house, I can not create the Ganges.
Write /gang goes my everything, but clicking anywhere in the window disappears.
Can anybody help me?
I apologize for bad English.
FS that I do not work:
Garhouse - By [03] Garsino.
GangSystem - http://www.samp-ru.org/load/filtersc...2_0/18-1-0-130
Reply
#70

nice one! keep it up!
Reply
#71

Very good!
Reply
#72

It's time for me to learn mysql, found a good system, but why the link no longer works? So bad :/
Reply
#73

Anyone have MellAdmin? If have PM me guys please I need melladmin
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)