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

bot for idRO_RE #1392

Closed RaynV closed 6 years ago

RaynV commented 6 years ago

Please refer to the following resources for help using OpenKore: faqs - http://openkore.com/index.php/Frequently_Asked_Questions (such as "Packet Tokenizer") forum - http://forums.openkore.com documentation wiki - http://openkore.com/index.php/Main_Page download new openkore - https://github.com/OpenKore/openkore/archive/master.zip

------------------ Bug Report Template ------------------

Summary: Newer version of Openkore is bugged for IdRO renewal server
Affected configuration(s)/ file(s):

I will just take an example why my bot can't move Network/Send/IdRO.pm Line 30 : '035F' => ['character_move','a4', [qw(coordString)]],#5 After i delete this line my bot can move normally, and there's many other problem (such as using item, drop item, and etc) which can be solved by using older version of openkore.

Impact:

Bot can't move

Expected Behavior:

Bot moving normally / can use move command

Actual Behavior:

Bot stuck without moving and sending packet 5F 03 00 00 00

Steps to Reproduce:

Using latest version of openkore on renewal server IdRO

sctnightcore commented 6 years ago

login packet is not 0A75 ?

RaynV commented 6 years ago

Yes login packet 0A75, is this relevant with my problem?

alisonrag commented 6 years ago

whats version do you use?

alisonrag commented 6 years ago

the new version dont have any update do idRO

RaynV commented 6 years ago

It's not only on idro.pm. My bot can't use item, drop item, and auto storaging, and the bot just work fine if i use openkore from 8-9 months ago.

Fadreus commented 6 years ago

bot just work fine if i use openkore from 8-9 months ago.

Last idro related update was last April (#541 & #261) so yeah it worked back then. Ever since than, due to new license changed there is no dev maintaining idRO afaik.

vodkaskywalker commented 6 years ago

Last idro related update was last April (#541 & #261) so yeah it worked back then. Ever since than, due to new license changed there is no dev maintaining idRO afaik.

latest changed files on idRO files

571

idRO.pm on Send and Receive part.

Fadreus commented 6 years ago

Ah, I missed that part 😓😓😓

sctnightcore commented 6 years ago

image

Right? https://ror.gravindo.id/

image

Why do you can login?

image

alisonrag commented 6 years ago

if you have a working bot, please share with us, so we can update and fix the idor server files

sctnightcore commented 6 years ago

XD wait wait XDXDXDXDXDXDXD image

RaynV commented 6 years ago

@sctnightcore use xkore1

sctnightcore commented 6 years ago

https://cdn.discordapp.com/attachments/348586123993284620/380629449944727553/image.png

@RaynV Ok @alisonrag wait me XD untitled

vodkaskywalker commented 6 years ago

@sctnightcore for xkore 0, posted method #571 (sniff, then manually edit packetparser & send every time before start kore) still works, since they new client use 0A75 (probably encrypted 01DD).

as for the new client here are some sniff to play with xx = username & password part (encrypted) which doesn't change every time we sniff.

1st sniff

00000000  DC 01 14 00 3D 9F 94 D7  5B D7 79 BF 1D 63 A2 25
00000010  89 83 59 F8   
00000000  75 0A 43 00 93 63 49 D1  xx xx xx xx xx xx xx xx   
00000010   xx xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx  
00000020   xx xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx 
00000030  62 83 64 5B C9 A2 06 DA  A3 81 DC 60 07 25 F1 E2
00000040  32 D4 1D                                                                    

2nd sniff

00000000  DC 01 14 00 47 68 8A 05  A3 88 CA 9F 04 1D 2C 5C
00000010  5E 93 75 C0    
00000000  75 0A 43 00 F4 00 A4 8B  xx xx xx xx xx xx xx xx   
00000010   xx xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx  
00000020   xx xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx   
00000030  62 83 64 CA 81 FB A6 F2  A3 5E ED FE 85 D3 55 AD   
00000040  DB 7B 1D

packet from current openkore

00000000  DD 01 02 00 00 00 61 63  xx xx xx xx xx xx xx xx   
00000010   xx xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx  
00000020   xx xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx   

example of successful login packet (or method with edited packet parser)

00000000  69 00 8F 00 xx xx 00 00  yy yy yy 00 00 00 00 00
00000010  xx xx xx xx 00 00 00 00  00 00 00 00 00 00 00 00   
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 hh CA   
00000030  5D 19 E4 70 17 56 61 6C  68 61 6C 6C 61 20 28 4E    
00000040  65 77 29 00 00 00 00 00  00 xx xx 00 00 00 00 CA    
00000050  5D 19 C4 70 17 41 73 67  61 72 64 00 00 00 00 00 
00000060  00 00 00 00 00 00 00 00  00 xx 00 00 00 00 00 CA   
00000070  5D 19 85 70 17 4D 69 64  67 61 72 64 00 00 00 00   
00000080  00 00 00 00 00 00 00 00  00 xx 00 00 00 00 00      

xx = changes everytime yy = different for each account (tried with 2 valid accounts. static for every login) hh = sex

temporary fix is done by reverting idRO.pm on send and receive. send = erase/comment line 30 (035F) receive = erase/comment line 35-46 (sync ex)

so far no problem on moving, and storage (only test storage with console command)

sctnightcore commented 6 years ago

@windhamwong
@vodkaskywalker test with x1 and x3 is work for me XD idk for x 0 TT

RaynV commented 6 years ago

@vodkaskywalker deleted those lines but still can't use item, drop item, and storage. Xkore 1 can use item normally but xkore 0 can't. I think the problem is not only in idro.pm send and receive image

@sctnightcore most idro player probably know how to connect using openkore on IdRO. But we prefer not to post it publicly as it will be patched as soon as "they" learned it. So connection problem is not the issue here.

sctnightcore commented 6 years ago
You used Item: Novice Potion (0) x 1 - 296 left
Inventory Item Removed: Novice Potion (0) x 1
Inventory Item Removed: Green Herb (14) x 1

Now work : drop,use item,
I want to know how xkore0 can connect? @RaynV

Fix :item unknow add 1024#Squid_Ink# to tables\idRO\items.txt

RaynV commented 6 years ago

@sctnightcore can you use storage on xkore 1? i don't know how to contact you privately

c4c1n6kr3m1 commented 6 years ago

@RaynV if you know the consequence, than why you still post in here all you need is revert the send and receive for idRO, just look at the file history , and pick one before the last @RaynV please close this topic, if you still have trouble you can contact me on kaskus, my id gorogu5

sctnightcore commented 6 years ago

@c4c1n6kr3m1 you can bypass x0 ? add me on discord sctnightcore24hour#1063 @RaynV i dont have id to test storage on x1 XD

sctnightcore commented 6 years ago

storage work only x3

2

@RaynV

RaynV commented 6 years ago

@c4c1n6kr3m1 reverting back send and receive idro files didn't solve all the problems for me. I still can't use item, drop item, and storage.

vodkaskywalker commented 6 years ago

try recvpackets #403 , i'm using that recvpackets, this commit 2ab2df30adca24c764a92a2113b5b0d0fbb3fbb9 and only revert send/receive idRO before #571 unable to reproduce both issues on x0 & x1, haven't tried x3

sctnightcore commented 6 years ago

Does anyone test my PR? #1402

@vodkaskywalker @RaynV I've tested that use x1 and x3. WORKKKKKKKKKKKK

x1 can not use autostorage x3 can do everything I've fixed it for you. You should check the PR of me.@RaynV

WTF

FIX new network ! 
      new recvpacket ! 
lukmanulhakimdevops commented 6 years ago

Error message: Can't call method "isWalkable" on an undefined value at src/Misc.pm line 728.

Stack trace: Can't call method "isWalkable" on an undefined value at src/Misc.pm line 728. at src/Interface/Wx.pm line 163 Interface::Wx::mainLoop('Interface::Wx=HASH(0x6a2c95c)') called at openkore.pl line 97 main::__start() called at start.pl line 136

Died at this line: foreach my $z (@spots) {

@moeyisgod covia City map

I must manually move my character to the LockMap spot

Remake portals.txt

Still freeze

10:24:26 2017.57] ================================================

Sent packet: 035F [5 bytes] Nov 17 10:24:26 2017 0> 5F 03 00 00 00 .... [Nov 17 10:24:26 2017.68] Sent move to: 204, 57 [Nov 17 10:24:26 2017.16] AI: route | 2 [Nov 17 10:24:26 2017.58] Move You - (re)trying [Nov 17 10:24:26 2017.60] ================================================ Sent packet: 035F [5 bytes] Nov 17 10:24:26 2017 0> 5F 03 00 00 00 .... [Nov 17 10:24:26 2017.62] Sent move to: 204, 57 [Nov 17 10:24:27 2017.13] Move You - (re)trying [Nov 17 10:24:27 2017.15] ================================================ Sent packet: 035F [5 bytes] Nov 17 10:24:27 2017 0> 5F 03 00 00 00 .... [Nov 17 10:24:27 2017.17] Sent move to: 204, 57 [Nov 17 10:24:27 2017.54] Move You - timeout [Nov 17 10:24:27 2017.55] Route You - not moving, decreasing step size to 2 [Nov 17 10:24:27 2017.57] Received packet: 0360 Handler: sync [Nov 17 10:24:27 2017.59] ================================================ Sent packet: 0360 [6 bytes] Nov 17 10:24:27 2017 0> 60 03 17 D6 06 01 `..... [Nov 17 10:24:27 2017.60] Move You - (re)trying [Nov 17 10:24:27 2017.62] ================================================ Sent packet: 035F [5 bytes] Nov 17 10:24:27 2017 0> 5F 03 00 00 00 .... [Nov 17 10:24:27 2017.64] Sent move to: 204, 56 [Nov 17 10:24:27 2017.66] Received packet: 007F Handler: receivedsync [Nov 17 10:24:27 2017.67] Received Sync [Nov 17 10:24:28 2017.16] autoBreakTime: fri 10:24 [Nov 17 10:24:28 2017.17] Move You - (re)trying [Nov 17 10:24:28 2017.18] ================================================ Sent packet: 035F [5 bytes] Nov 17 10:24:28 2017 0> 5F 03 00 00 00 .... [Nov 17 10:24:28 2017.19] Sent move to: 204, 56 [Nov 17 10:24:28 2017.21] AI: route | 2

sctnightcore commented 6 years ago

@null32sys what server ?

lukmanulhakimdevops commented 6 years ago

idRO Renewal channel Valhalla @Moscovia dungeon

0> 5F 03 00 00 00 _....

What is that packet meaning?

lukmanulhakimdevops commented 6 years ago

May I try to another server on idRO Classic : Thor?

RaynV commented 6 years ago

@null32sys Classic server have some protection lsdk.dll. You need to deal with it first

lukmanulhakimdevops commented 6 years ago

TCP Port 5000

https://pastebin.com/8gCdjF4e

UDP Port 17000

https://pastebin.com/nSwd1gXG

Send

00000000 72 00 a7 28 03 00 ac 6c 92 00 8b 24 00 00 fa e9 r..(...l ...$.... 00000010 02 00 01

Recv

00000000 83 02 a7 28 03 00 ...(.. 00000006 eb 02 01 b7 c2 0f 10 4b 60 05 05 00 00 .......K `.... 00000013 0f 01 4e 00 01 00 00 00 00 00 00 00 00 00 01 00

Send 00000013 7d 00 60 03 34 f1 02 00 4d 01 4f 01 00 00 00 00 }.`.4... M.O..... 00000023 4f 01 00 00 00 00 4f 01 01 00 00 00 c9 08 O.....O. ......

Recv 00000215 b1 00 16 00 4d 00 00 00 ....M... 0000021D b1 00 17 00 5b 00 00 00 b0 00 19 00 ac 58 00 00 ....[... .....X.. 0000022D b0 00 18 00 82 15 00 00 b0 00 0c 00 04 00 00 00 ........ ........ 0000023D 91 09 7c 00 03 00 39 02 00 f4 01 00 00 00 00 00 ..|...9. ........ 0000024D 00 00 00 00 00 00 00 00 00 00 00 01 06 00 23 30 ........ ......#0

Send 00000031 5f 03 10 cb 00

Recv

00000AD4 87 00 32 c3 c2 0f 10 4b 61 0c b0 88 ..2....K a... 00000AE0 14 09 56 00 05 9f cd 00 00 90 01 00 00 00 00 00 ..V..... ........ 00000AF0 00 00 00 ea 03 00 00 00 00 00 00 00 00 9b be c2 ........ ........ 00000B00 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ 00000B10 00 00 00 00 00 00 00 00 00 00 00 13 4a 71 20 ab ........ ....Jq . 00000B20 3c 00 00 01 00 00 00 ff ff ff ff ff ff ff ff 00

Send 00000036 5f 03 11 0a f0

Recv

00000BDB 14 09 57 00 05 bf cd 00 00 c8 00 00 00 00 00 00 ..W..... ........ 00000BEB 00 00 00 27 04 00 00 00 00 00 00 00 00 63 c4 c2 ...'.... .....c.. 00000BFB 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ 00000C0B 00 00 00 00 00 00 00 00 00 00 00 11 4a 41 14 a8 ........ ....JA.. 00000C1B 84 00 00 03 00 00 00 ff ff ff ff ff ff ff ff 00 ........ ........ 00000C2B 4c 75 6e 61 74 69 63

And Then send change to

0000003B 68 03 a9 cd 00 00

And then

00000094 89 00 ae cd 00 00 07 .......

Just see the full packet on the pastebin

sctnightcore commented 6 years ago

idRO Classic : Thor not work !

0> 5F 03 00 00 00 _.... = move

lukmanulhakimdevops commented 6 years ago

lsdk.dll

Disassembly https://pastebin.com/RTwrHaUE

sctnightcore commented 6 years ago

idk asm code! XD

lukmanulhakimdevops commented 6 years ago

lol so do I !

sctnightcore commented 6 years ago

@null32sys ok

if you can bypass Thor pm me on discord sctnightcore24hour#1063

lukmanulhakimdevops commented 6 years ago

I can't bypass lsdk.dll #sad

Good News my character can move now

sctnightcore commented 6 years ago

@null32sys. X1 , x3?

vodkaskywalker commented 6 years ago

@sctnightcore

1402

image

x1 i have no problem with autostorage.

should be closed if there are no other problems imho.

sctnightcore commented 6 years ago

@RaynV @vodkaskywalker ok ?

i will close issues

lukmanulhakimdevops commented 6 years ago

idRO Renewal OK, but I get a few trouble about NPC at Moscovia, I must to locate my character to LockMap manually. And how about idRO Classic? Any update?

sctnightcore commented 6 years ago

idRO Classic I can not connect to server.

lukmanulhakimdevops commented 6 years ago

@sctnightcore idRO Classic reference to issue #457

889

711

595

589

587

579

575

564

563

529

519

Must Change \openkore\src\Network Send.pm and PacketParser.pm after reconnect decrypt key always change after 01 DC [ DC 01 14 00 00 xx xx

Look at the full packet

https://pastebin.com/nmKFZPyV

DD 01 change to 75 0A [it's encrypted packet]

sctnightcore commented 6 years ago

idRO Classic packet login is 0A75 ? https://github.com/OpenKore/openkore/issues/595 ohhhhhhhh i cannot do it T.T

lukmanulhakimdevops commented 6 years ago

That's is a problem must add key manually to send.pm and packetparser.pm

@sctnightcore Focus on this issue #461

sctnightcore commented 6 years ago

@null32sys ok i will close issues

lukmanulhakimdevops commented 6 years ago

@sctnightcore I'm tired to add manually the key packet after bot reconnect. #sad

sctnightcore commented 6 years ago

@null32sys add my discord : sctnightcore24hour#1063

paultalah commented 6 years ago

@sctnightcore hello bro. i have same problem with @null32sys i have old openkore and must add manually the packetparser. if bot disconnect, i have to sniff again. its totally tired lol. can you please help me to run openkore without sniffing? i have read all issues but i cant understand because i m new in openkore.

and also, i cant add your discord. thanks a lot

sctnightcore commented 6 years ago

@paultalah use with xkore1 and xkore3 is work !!!

ghost commented 6 years ago

@sctnightcore : did u noted that we have secure login before 0A75 ?