bRO's client asking for PIN Code on log in

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: bRO's client asking for PIN Code on log in

#71 Post by Kaspy »

Fat4LitY wrote:
Kurama wrote:Image
first digit -> second digit

you receive the 08B9 packet with numbers position, but always the first number has the data "30".

now, we just need know what is the numbers positions and then make the packet



ITS NOT ENCRYPTED!
Clever. So we just need to discover how to turn the packet into 0-9 numbers position?

This could be easily done disassembling the Ragexe (need guy experienced in x86 Assembly)
As it is the client, really would be the ideal method, because if the LUG change the values​​, would be fast and convenient update, only the hardest of all.
ever_boy_ wrote:edit: whether I send 08B8 packet or not, I get disconnected all the same. still trying to figure out why.
it seems that the problem is with the addHook code.
Perhaps by being very idle.
Image
SkyDev
Noob
Noob
Posts: 10
Joined: 13 Nov 2012, 10:38
Noob?: No

Re: bRO's client asking for PIN Code on log in

#72 Post by SkyDev »

Fat4LitY wrote: Clever. So we just need to discover how to turn the packet into 0-9 numbers position?

This could be easily done disassembling the Ragexe (need guy experienced in x86 Assembly)

i will look for this tonight ( only free time for now... :-( ). If someone can before, great!!!
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: bRO's client asking for PIN Code on log in

#73 Post by ever_boy_ »

KeplerBR wrote:Perhaps by being very idle.
Very? It disconnects in less than 2 seconds after receiving char list (082D) and not answering with 0066.

If I can fix this, I can make it partially functional till we get the encryption for the pin.


Right now, I need to figure out why this isn't working:

Code: Select all

$self->{charSelectScreenHook} = Plugins::addHook(charSelectScreen => sub { $_[1]{return} = 1 });
This is supposed to pause the char_login till I answer the pin code packet. The problem is, even though it allows me to answer the 08B9 packet, I get disconnect due time out with char select server.
Maybe it needs a timeout?
Kurama
Noob
Noob
Posts: 19
Joined: 13 Dec 2012, 17:26
Noob?: No

Re: bRO's client asking for PIN Code on log in

#74 Post by Kurama »

Image

now i have pin function in my xkore =D
lets test
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: bRO's client asking for PIN Code on log in

#75 Post by ever_boy_ »

I did it. I successfully logged in to the game using kore.
However, I had to erase the 'char' parameter from config.txt. While I'm prompted to manually choose my char, I'm able to properly answer the 08b9 packet.
But this is just a workaround, gotta find out how to solve this using the code in receive\bRO.pm


edit: pra quem duvidar que eu consegui logar, é só me dar o nick que eu mando pm in-game com um palavrão que seria impossível dizer pelo client normal.


edit2:
1. need to find a way to 'delay' kore's char_login action, so that it doesn't need manual intervention in order to properly answer the pin packet.
2. need to figure out the encryption system for the pin code, so that it doesn't need manual editing at every log in.
Kurama
Noob
Noob
Posts: 19
Joined: 13 Dec 2012, 17:26
Noob?: No

Re: bRO's client asking for PIN Code on log in

#76 Post by Kurama »

i got it = D

Image
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: bRO's client asking for PIN Code on log in

#77 Post by ever_boy_ »

Kurama wrote:i got it = D
Huh?
How do we get the encryption system out of this?
Kurama
Noob
Noob
Posts: 19
Joined: 13 Dec 2012, 17:26
Noob?: No

Re: bRO's client asking for PIN Code on log in

#78 Post by Kurama »

Image

this is the crypt function .-.
now write in perl because i dont know perl D:

AND PLEASE, SHARE!
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: bRO's client asking for PIN Code on log in

#79 Post by ever_boy_ »

Kurama wrote:now write in perl because i dont know perl D:
And I don't know how to read assembly :lol:
Gotta google it right now :(
Kurama
Noob
Noob
Posts: 19
Joined: 13 Dec 2012, 17:26
Noob?: No

Re: bRO's client asking for PIN Code on log in

#80 Post by Kurama »

:/

i tested. i know assembly but, i dont know perl
then i cant help D: