Jump to content
  • 0

Name having only 1 character lenght


Reducto

Question


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

I mean I want to prevent players having 1 character name lenght. How can I prevent it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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. :(
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  403
  • Reputation:   89
  • Joined:  02/07/13
  • Last Seen:  

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 by Shakto
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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. :P),

the result

 

Foul Language Detected

maybe

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. :D Edited by Cydh
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...