OpenKore / openkore

A free/open source client and automation tool for Ragnarok Online
http://openkore.com
Other
1.29k stars 1.05k forks source link

tRO Mega Thread - All tRO issues here only #221

Closed aecuto closed 7 years ago

aecuto commented 8 years ago

how can i fix this problem??

today my server has update new EAC, my openkore can login to map server but after 1-3 second my openkore has disconnect from map server, please help me or notice me about this problem.

ps. i'm newbie for programmer :D ps2. i'm from Free bot page....

windhamwong commented 8 years ago

I would accept @unknown-item 's file only sry. It is about author's permission and proper handling policy thing

zuroba commented 8 years ago

@unknown-item in x3 your code it can't walk atk

firstsozaa commented 8 years ago

@windhamwong im using all his script but the problem stuck when talk to npc

unknown-item commented 8 years ago

@windhamwong I don't have full src for this, only some pieces of code. Please review and fix properly. I think there are still some problem with x3. I don't know why it went wrong. Basically it strips HMAC-ed packet from client and process only the original part. Then it sends with HMAC added like x0 does.

udomsaph commented 8 years ago

@unknown-item still errors 0A76 80 0001 184 0A76 80 0001 156 0001 222

unknown-item commented 8 years ago

@udomsaph then I don't know, because I have no way to debug it myself. Maybe somebody else can help you with x3.

windhamwong commented 8 years ago

@unknown-item can you send me your work please? So I can review and fix on them. Are you guys using X3 not X0 at the moment?

Samunprai commented 8 years ago

@windhamwong X0 works fine at the moment. But X3 still have some problem with sent packets

seenelf commented 8 years ago

@unknown-item I have logged my packet before send. It looks correct to me.

[Sep 14 20:20:35 2016.88] Sent packet    : 014F    [ 6 bytes]  [Guild Query Page]
[Sep 14 20:20:35 2016.88] Sent packet    : 0001    [314 bytes]  
[Sep 14 20:20:37 2016.53] client hmac = 1, packetLength = 31
[Sep 14 20:20:37 2016.54] client hmac = 1, packetLength = 5
[Sep 14 20:20:37 2016.55] << Sent by RO client:    035F [ 5 bytes]
[Sep 14 20:20:37 2016.56] Sent packet    : 035F    [ 5 bytes]  
[Sep 14 20:20:38 2016.61] client hmac = 1, packetLength = 31
[Sep 14 20:20:38 2016.62] client hmac = 1, packetLength = 5
[Sep 14 20:20:38 2016.63] << Sent by RO client:    035F [ 5 bytes]
[Sep 14 20:20:38 2016.64] Sent packet    : 035F    [ 5 bytes]  
[Sep 14 20:20:39 2016.99] client hmac = 1, packetLength = 31
[Sep 14 20:20:40 2016.29] client hmac = 1, packetLength = 5
[Sep 14 20:20:40 2016.94] << Sent by RO client:    035F [ 5 bytes]
[Sep 14 20:20:40 2016.17] Sent packet    : 035F    [ 5 bytes]  
[Sep 14 20:20:41 2016.10] client hmac = 1, packetLength = 31
[Sep 14 20:20:41 2016.10] client hmac = 1, packetLength = 5
[Sep 14 20:20:41 2016.11] << Sent by RO client:    035F [ 5 bytes]
[Sep 14 20:20:41 2016.12] Sent packet    : 035F    [ 5 bytes]  
[Sep 14 20:20:41 2016.38] client hmac = 1, packetLength = 32
[Sep 14 20:20:41 2016.38] client hmac = 1, packetLength = 6
[Sep 14 20:20:41 2016.39] << Sent by RO client:    0368 [ 6 bytes]
[Sep 14 20:20:41 2016.40] Sent packet    : 0368    [ 6 bytes]  

But I don't know why it still doesn't work with x3

zuroba commented 8 years ago

@udomsaph you can x3 ?

as70873463 commented 8 years ago

Why using autoTalkcont it slow talk npc ?

problem server or bot ??

banksleepy commented 8 years ago

any possible that someone can upload the new version pls

japanz commented 8 years ago

disconext form sever because talk to npc faster than sv how to fix it

ghost commented 8 years ago

@Poonjaroen Big thanks for you my man , My x0 work very well right now

but the next thing we must looking for is auto-ban.

ninenite commented 8 years ago

@unknown-item sorry bro , how to debug and running game client , you worked with program ?

thanks :+1:

cydiath commented 8 years ago

@unknown-item fuckig God boro like this him Very Hing God ro in the world...

but God Thailand unstle him is good me like..thisqqqqq ๊

ninenite commented 8 years ago

@unknown-item i think you used llinux for debug and running game right?

quarified commented 8 years ago

@unknown-item

Sorry how to find this key

EDB9D10AB84C9A2E05E38997C2F64A29

danmadoon commented 8 years ago

how about x3 going?

ghost commented 8 years ago

The problem now is how to talk with npc including kafra without getting DC.

I try so many time and result is we still be able to buy or sell item but can not talk with any other NPC.

So we can't warp to other map or storage.

unknown-item commented 8 years ago

@quarified @ninenite how to find keys inside EAC's injected code is beyond this level of discussion. I think you should just hope it does not change or someone like me is around.

zuroba commented 8 years ago

@unknown-item x3 i can test for you but above you fix not work

Death3erry commented 8 years ago

i am interested " how to find inside EAC's injected code " debuger level ? possible guide this. thank you @unknown-item

zuroba commented 8 years ago

that's your code can generate but now have many people to use i think maybe ban wave

aecuto commented 8 years ago

now, xkore 3 is work or not?

zuroba commented 8 years ago

@expertly01 no something wrong packet or client

unknown-item commented 8 years ago

@tarkungZ capture client NPC talk packets and compare them with your bot's.

@zuroba maybe I should re-work my patch(move HMAC from Send.pm to DirectConnection.pm) try this: Network.zip Send.pm is stock(original). x0 & x3 should both work.

SuperBotTz commented 8 years ago

[url=http://www.mx7.com/view2/zmidztyuz5rxCBit][img]http://www.mx7.com/i/d18/lQ0qMr.jpg[/img][/url]

@tarkungZ capture client NPC talk packets and compare them with your bot's.

@zuroba maybe I should re-work my patch(move HMAC from Send.pm to DirectConnection.pm) try this: Network.zip Send.pm is stock(original). x0 & x3 should both work.

X-3 No connet help me

SuperBotTz commented 8 years ago

X-3 No connet sv Help me

unknown-item commented 8 years ago

@hx750i this key is shared for everyone. You can try capture packets from different client/account. Then calculate HMAC and compare, its the same.

zuroba commented 8 years ago

@unknown-item x3 can't move atk and dc

quarified commented 8 years ago

@unknown-item

Can u tell how to find key i think i can catch up, pls.

SuperBotTz commented 8 years ago

x-3 add to key "EDB9D10AB84C9A2E05E38997C2F64A29 " to config ?

SuperBotTz commented 8 years ago

XKoreProxy.pm in sub serverDisconnect, add: $self->{client_hmac} = 0; before: return $self->{server}->serverDisconnect();

in sub modifyPacketOut, add:

if($self->{client_hmac} && length($msg) > 28) { $msg = substr($msg, 2, length($msg) - 2 - 24) } before: my $switch = uc(unpack("H2", substr($msg, 1, 1))) . uc(unpack("H2", substr($msg, 0, 1)));

add:

if ($switch eq "0436" || $switch eq "0072") { $self->{client_hmac} = 1; } before: return $msg;

i not

I resolve not @unknown-item help me i have XKoreProxy.pm files

unknown-item commented 8 years ago

@zuroba can you use files from my last post and post capture packets please? I need to know what is being sent in order to fix it.

SomebodyFromtRO commented 8 years ago

Not sure if this broke the rules. but I just signup here to give a BIG THANKS to @unknown-item you da real MVP. God bless you!

roxstars commented 8 years ago

I have trouble about npc talk too.

zuroba commented 8 years ago

@unknown-item i use lastest file you it's can't work

unknown-item commented 8 years ago

@zuroba I need details on how it broke, because I can't test it myself. Something like debugPacket logs or packet captures will be helpful.

zuroba commented 8 years ago

@unknown-item see my log This

natawee37 commented 8 years ago

Use xkoreproyxy $switch eq "0276" 0, 51 @unknown-item // logConsole http://www.drop4shared.com/a6dcef0d //

If use file https://github.com/OpenKore/openkore/files/473254/Network.zip

Xkoreproxy line:433 if ($switch eq "0069") my $accountInfo = substr($msg, 0, 47);

my $serverInfo = substr($msg, 47, length($msg));

not connect Account Server Sent by RO client: 0275 [37 bytes]

windhamwong commented 8 years ago

@unknown-item Thanks for the file. I will work on it today. I have test account here, I can test it directly.

unknown-item commented 8 years ago

@zuroba

from your log I see two problem: 0436 packet length is wrong, 0A7B is EAC packet, if you use x3, just ignore it and let client reply 0A7C. I think you can try this: recvpackets.txt

unknown-item commented 8 years ago

@natawee37 try compare files and change only the part relating to HMAC. I think you are close to make it work.

as70873463 commented 8 years ago

@unknown-item now, new problem I found delay talk with npc . ~5 - 10 sec my sent 0090 to server // 5-10sec bot receive talk npc you try click name npc for test .

picesszaza commented 8 years ago

@unknown-item this my console log use your recvpackets

http://pastebin.com/CSDyXiq9

unknown-item commented 8 years ago

@picesszaza I think it is almost working. It looks like your client died after 0436 (not sending anything else). Maybe it is a problem with proxy or packet switch, because your bot seems normal.

picesszaza commented 8 years ago

@unknown-item thank bro i think problem with proxy too.

forall01 commented 8 years ago

@unknown-item I have the issues when talk npc for warp , Npc response slow and disconnect to mapserver. and when relogin and talk again disconnect around 2 - 3 time and work on around 4 time.

beerdrumers commented 8 years ago

@picesszaza You mustn't modify these packet.

[Sep 15 06:09:30 2016.59] Sent packet : 007D [ 2 bytes] [Map Loaded] [Sep 15 06:09:30 2016.59] Sent packet : 014D [ 2 bytes] [Guild First Query] [Sep 15 06:09:30 2016.60] Sent Guild Master/Member Check. [Sep 15 06:09:30 2016.60] Sent packet : 014F [ 6 bytes] [Guild Query Page] [Sep 15 06:09:30 2016.61] Sent Guild Request Page : 0 [Sep 15 06:09:30 2016.61] Sent packet : 014F [ 6 bytes] [Guild Query Page] [Sep 15 06:09:30 2016.61] Sent Guild Request Page : 0 [Sep 15 06:09:30 2016.62] Sent packet : 014F [ 6 bytes] [Guild Query Page] [Sep 15 06:09:30 2016.63] Sent Guild Request Page : 1 [Sep 15 06:09:30 2016.63] You are now in the game [Sep 15 06:09:30 2016.64] Sent packet : 08C9 [ 2 bytes]

These are packets those were sent by RO client with a HMAC format. So, we need to keep these message and just forward to RO server.