Jump to content

Fix to auto-close on wrong password for new clients


EvilPuncker

Recommended Posts


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

index.php?app=downloads&module=display&section=screenshot&id=2548

File Name: Fix to auto-close on wrong password/id for new clients

File Submitter: EvilPuncker

File Submitted: 11 Sep 2012

File Category: Source Modifications

Content Author: *Athena team

Well, the code is kinda simple and since most people don't know about it yet, I'm releasing a diff for those who want it, it is just a piece of code copied from char.c and pasted into login.c to make the client send "rejected from the server" on wrong password, so it will not close anymore, and you can edit your msgstringtable.txt to show "wrong password/rejected from the server", hope you enjoy.

Click here to download this file

Edited by EvilPuncker
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

is this for real? im going to try it.

if this works..only one thing left...

the click delay's on 2011 xD

EDIT:

Working! and it says rejected from server right?...

how about when i go to character selection then click "cancel"...it says.. "Are you sure you want to quit?" it closes the client..

can you change it to when i click "cancel" it returns to login?

Edited by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

no fix for that

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

There was any problem with it? Why is the file unavailable? o.o

Edited by Osaka
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   3
  • Joined:  02/11/12
  • Last Seen:  

Unavailable o_o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

There was any problem with it? Why is the file unavaliable? o.o

Unavailable o_o

The file has been updated and since it has, it has to be re-approved.

Edit

Approved.

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

I hope someone can release the client way on fixing this..

I tried using that but like Emistry said

if your players accidently / purposely spam it...

their account will be treated as DDoS attack by the server and temporary block them from login for a short interval...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

@Razer X, you can add the counter in conf files, default is 5 if not mistaken, just add up to 30. Who will type wrong-pass 30 times :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

not working on me :(

index.php?app=downloads&module=display&section=screenshot&id=2548

File Name: Fix to auto-close on wrong password/id for new clients

File Submitter: EvilPuncker

File Submitted: 11 Sep 2012

File Category: Source Modifications

Content Author: *Athena team

Well, the code is kinda simple and since most people don't know about it yet, I'm releasing a diff for those who want it, it is just a piece of code copied from char.c and pasted into login.c to make the client send "rejected from the server" on wrong password, so it will not close anymore, and you can edit your msgstringtable.txt to show "wrong password/rejected from the server", hope you enjoy.

Click here to download this file

why it's not working on 2011-03-15?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Nice fix :P Working for my 2012-06-18 client xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   1
  • Joined:  07/27/12
  • Last Seen:  

This is very good Working for my 2012-06-18 client /no1 

Link to comment
Share on other sites

  • 10 months later...

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  117
  • Reputation:   1
  • Joined:  01/05/14
  • Last Seen:  

hi there where can i replace this ? 
 

Index: trunk/src/login/login.c
===================================================================
--- trunk/src/login/login.c (revisão 16773)
+++ trunk/src/login/login.c (cópia de trabalho)
@@ -1045,7 +1045,14 @@
  if( !check_password(sd->md5key, sd->passwdenc, sd->passwd, acc.pass) )
  {
  ShowNotice("Invalid password (account: '%s', pass: '%s', received pass: '%s', ip: %s)\n", sd->userid, acc.pass, sd->passwd, ip);
- return 1; // 1 = Incorrect Password
+ {
+ int fd = sd->fd;
+
+ WFIFOHEAD(fd,3);
+ WFIFOW(fd,0) = 0x6c;
+ WFIFOB(fd,2) = 0;
+ WFIFOSET(fd,3);
+ }
  }
 
  if( acc.expiration_time != 0 && acc.expiration_time < time(NULL) )
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
Reply to this topic...

×   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...