Reducto Posted April 26, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 231 Reputation: 9 Joined: 12/16/11 Last Seen: August 10, 2016 Share Posted April 26, 2013 How can I fix this because some of my players having only 1 character name. They can bypass the 4 limit character. How can I prevent this? Quote Link to comment Share on other sites More sharing options...
Brynner Posted April 26, 2013 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 1960 Reputation: 202 Joined: 01/08/12 Last Seen: 1 hour ago Share Posted April 26, 2013 How can I fix this because some of my players having only 1 character name. They can bypass the 4 limit character. How can I prevent this? diff your client with Disable4LetterUserCharacterLimit, Disable4LetterUserIDLimit, Disable4LetterUserPasswordLimit Quote Link to comment Share on other sites More sharing options...
Reducto Posted April 26, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 231 Reputation: 9 Joined: 12/16/11 Last Seen: August 10, 2016 Author Share Posted April 26, 2013 I mean I want to prevent players having 1 character name lenght. How can I prevent it. Quote Link to comment Share on other sites More sharing options...
Brian Posted April 26, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted April 26, 2013 There's this: trunk/conf/login_athena.conf //If new_account is enabled, minimum length to userid and passwords should be 4? //Must be 'Yes' unless your client uses both 'Disable 4 LetterUserID/Password' Diffs new_acc_length_limit: yes but currently there is no server-side check for character name lengths. Quote Link to comment Share on other sites More sharing options...
Shakto Posted April 27, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 416 Reputation: 96 Joined: 02/07/13 Last Seen: 23 minutes ago Share Posted April 27, 2013 (edited) With sql server you can add a contraint DATALENGTH(Charname) >= 4 Something like that With mysql you can do a check when the char is create : http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function%5Flength Edited April 27, 2013 by Shakto Quote Link to comment Share on other sites More sharing options...
Cydh Posted April 27, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted April 27, 2013 (edited) I using RagexeRE 2012-04-18a, tried old version to make less than 4 length char name (using 'enter' 5 times on notepad and copy-paste it. ), the result Foul Language Detectedmaybe on char.c:check_char_name /** * The client does not allow you to create names with less than 4 characters, however, * the use of WPE can bypass this, and this fixes the exploit. **/ or maybe you can use Regex to check there's any whitepace (or only enter/newline) there, the result is 1 = found, 0 = not found SELECT 'name' REGEXP '(\n+)'and btw, LENGTH calculate everything there of course whitespace will be counted. Edited April 27, 2013 by Cydh Quote Link to comment Share on other sites More sharing options...
Question
Reducto
How can I fix this because some of my players having only 1 character name. They can bypass the 4 limit character. How can I prevent this?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.