unpack('V', $args->{accountID});ever_boy_ wrote:it says the same as before: "global symbol @keys requires explicit package name".EternalHarvest wrote:ever_boy_ wrote:Well, yeah, I got to find out how to do that.. tried to use 'print' command but didn't work.Code: Select all
use Data::Dumper; Log::message(Dumper \$var);
edit: got it. thanks.
everything looks "fine", execpt for the accountID, which is shown as: ?ú¬'
is that right?
bRO's client asking for PIN Code on log in
Moderator: Moderators
-
- Moderators
- Posts: 208
- Joined: 01 Feb 2010, 17:37
- Noob?: No
- Location: Brazil - MG
Re: bRO's client asking for PIN Code on log in
-
- Developers
- Posts: 308
- Joined: 06 Jul 2012, 13:44
- Noob?: No
Re: bRO's client asking for PIN Code on log in
thanks. works perfectly, with 'H*'.
now how about the 4 random bytes... could they be a key?
when everything's in place, this:
should it look exactly like the 08B8 packet in wireshark? (b8 08 XX XX XX XX YY YY YY YY)
now how about the 4 random bytes... could they be a key?
when everything's in place, this:
Code: Select all
$self->sendToServer($msg);
-
- Moderators
- Posts: 208
- Joined: 01 Feb 2010, 17:37
- Noob?: No
- Location: Brazil - MG
Re: bRO's client asking for PIN Code on log in
Are you sure?ever_boy_ wrote:It's a bit confusing here. BEFORE entering the pin, I get the 08B9 packet together with the char list info. At this point, it contains my account ID:iMikeLance wrote:Also 08B9 is received AFTER inputing pin code and selecting your char.
b9 08 45 4e 7e 05 XX XX XX XX 01 00

If you're right then maybe we should send another packet after receiving charlist in order to bring up the PIN window?
-
- Developers
- Posts: 308
- Joined: 06 Jul 2012, 13:44
- Noob?: No
Re: bRO's client asking for PIN Code on log in
Yeah, pretty sure. As I said some pages ago, the first 08B9 packet comes "in the same flow" as the 08D2, right at the end of it. At this point, it contains: packet's ID, 4 random bytes, 4 bytes for accountID, 2 bytes for a flag.iMikeLance wrote: Are you sure?
If you're right then maybe we should send another packet after receiving charlist in order to bring up the PIN window?
After you enter your pin code, this 08B9 packet shows up again, but this time it is completely null, except for the packet's ID.
Now I know what is sent, and when is sent. Just need to figure out how to properly build the packet, since it seems to be different from mRO.
In ServerType0.pm, both sendLoginPinCode and sendStoragePassword are sharing this piece of code:
Code: Select all
$msg = pack("C C v", 0x3B, 0x02, $type)
If so, I would have it replaced for:
Code: Select all
$msg = pack("v v", 0x0968, $type)
-
- Moderators
- Posts: 208
- Joined: 01 Feb 2010, 17:37
- Noob?: No
- Location: Brazil - MG
Re: bRO's client asking for PIN Code on log in
Ignore this post, already discovered why and solving it.
Just sniffed that part and indeed 08B9 is at the end of received_characters (082D) as you can see below:

The problem is: in this situation 08B9 is being ignored by Openkore, as it wasn't received. It's not being recognized as a part of 082D either.
ever_boy_ wrote:iMikeLance wrote: Are you sure?
If you're right then maybe we should send another packet after receiving charlist in order to bring up the PIN window?
Yeah, pretty sure. As I said some pages ago, the first 08B9 packet comes "in the same flow" as the 08D2, right at the end of it. At this point, it contains: packet's ID, 4 random bytes, 4 bytes for accountID, 2 bytes for a flag.
After you enter your pin code, this 08B9 packet shows up again, but this time it is completely null, except for the packet's ID.[/code]
how about that?
Just sniffed that part and indeed 08B9 is at the end of received_characters (082D) as you can see below:

The problem is: in this situation 08B9 is being ignored by Openkore, as it wasn't received. It's not being recognized as a part of 082D either.
-
- Noob
- Posts: 19
- Joined: 13 Dec 2012, 17:26
- Noob?: No
Re: bRO's client asking for PIN Code on log in
08B9 isnt ignored .-.
-
- Moderators
- Posts: 208
- Joined: 01 Feb 2010, 17:37
- Noob?: No
- Location: Brazil - MG
Re: bRO's client asking for PIN Code on log in
If you unset "char" parameter it is. I'll fix it later.Kurama wrote:08B9 isnt ignored .-.
-
- Developers
- Posts: 308
- Joined: 06 Jul 2012, 13:44
- Noob?: No
Re: bRO's client asking for PIN Code on log in
Hmm.. I didnt get that last part. Did you find the formula or not?
So, how many bytes should have in the packet sent by kore?
So, how many bytes should have in the packet sent by kore?
-
- Noob
- Posts: 19
- Joined: 13 Dec 2012, 17:26
- Noob?: No
Re: bRO's client asking for PIN Code on log in
10?
ID + accountid + pin?
ID + accountid + pin?
-
- Moderators
- Posts: 208
- Joined: 01 Feb 2010, 17:37
- Noob?: No
- Location: Brazil - MG
Re: bRO's client asking for PIN Code on log in
If you're sure that the "send PIN" packet is 08B8 it should be 10bytes (2bytes for packetID, 8bytes for the packet content itself (maybe accoutid+encryptedPIN). I just built the receive handler, seems like i'm stuck in the same situation as you are. I'll look into it tomorrow, I don't have much time now.ever_boy_ wrote:Hmm.. I didnt get that last part. Did you find the formula or not?
So, how many bytes should have in the packet sent by kore?