1/16/2013 bRO Maintenance - Password reset

Brazil

Moderator: Moderators

Message
Author
Fat4LitY
Noob
Noob
Posts: 14
Joined: 03 Sep 2012, 17:51
Noob?: No

1/16/2013 bRO Maintenance - Password reset

#1 Post by Fat4LitY »

Hi guys, today bRO implemented a new system that reset the account password when connected with x number of accounts on the same IP.

So I decided to create a Deplhi application to do the update part of the reseted passwords and create a list of them, updating it constantly. (may could take a time since I don't program in Delphi since 2006)

Now what I need: to make a Plugin that searchs in a .txt file (C:/ragpswd.txt por ex.) for a given loginname and update the password on the config.txt

The .txt file will be something like this:

[Login][Password]
login1 Tg!H1InY@
login2 Pj&bF64XE
login3 uD%zY1Jc2

So I was thinking to do something like this (using xConf.pl)

automacro passwordchanged {
console \Incorrect password\
call {
$loginname = @config(username) <-- xConf.pl reading username from config.txt
$newpassword = @updatePassword($loginname) <-- New Plugin command
do conf password $newpassword <-- xConf.pl writing new password on config.txt
reload config.txt
do relog
}

}

The updatePassword will be the Plugin command to search for the $loginname on the .txt list and retrieve the corresponding password, while the Delphi app updates the list constantly.

Is that possible?

ps: If I can make that Delphi app I'll share the code here with everyone.

iMikeLance
Moderators
Moderators
Posts: 208
Joined: 01 Feb 2010, 17:37
Noob?: No
Location: Brazil - MG
Contact:

Re: 1/16/2013 bRO Maintenance - Password reset

#2 Post by iMikeLance »

Maybe it'll be better if you write it in Perl. A nice way to do it would be by automatically checking your email when you receive the invalid password packet and overriding Openkore's default behaviour (it shouldn't ask for the correct password in this case).

Post Reply