How to change port number in a Game.exe Fix ep 6

02/02/2021 20:35 jvczxc#1
: rtfm: I would like to change ports 30800 and 30810 of a game.exe ep 6 with different hexadesimal addresses I do not know if writing 00803 and 010803 or 30800 and 30810 or that dir look for it I used HxD and Olly Ctrl+f and nothing and Ctrl + G in HxD and I do not see the line I leave my game.exe decrip here:

[Only registered and activated users can see links. Click Here To Register...]

Tansk
02/02/2021 21:33 Elessar2#2
okay open olydbg find commands just search "" push 00007850 "" and wrong category please request to close..
03/30/2021 16:26 carlos233#3
Quote:
Originally Posted by jvczxc View Post
: rtfm: I would like to change ports 30800 and 30810 of a game.exe ep 6 with different hexadesimal addresses I do not know if writing 00803 and 010803 or 30800 and 30810 or that dir look for it I used HxD and Olly Ctrl+f and nothing and Ctrl + G in HxD and I do not see the line I leave my game.exe decrip here:

[Only registered and activated users can see links. Click Here To Register...]

Tansk
here's your game
ports 20810/20800

30810
E8 E6 54 12 00 8D 4C 24 44 68 5A 78 00 00 51 E8

30800
1D 00 68 50 78 00 00 68 D0 0D 7C 00 E8 FF 38 1D

[Only registered and activated users can see links. Click Here To Register...]
04/01/2021 22:23 jvczxc#4
Quote:
Originally Posted by carlos233 View Post
here's your game
ports 20810/20800

30810
E8 E6 54 12 00 8D 4C 24 44 68 5A 78 00 00 51 E8

30800
1D 00 68 50 78 00 00 68 D0 0D 7C 00 E8 FF 38 1D

[Only registered and activated users can see links. Click Here To Register...]
If ok, but as I get to change by myself the ports, which tool I use (Olly or HxD) is okay your answer but is walking for me, and I need to learn to walk. I need to know which port you're using because I'm going to do something different, I don't know if it works, but I want to know exactly how it's done.
04/02/2021 07:17 sominus#5
I'm not good at explaining things, so anyone correct me if I'm wrong here.


The hex pattern he posted represent the binary format of a assembly instruction.
Example:

1D 00 68 50 78 00 00 68 D0 0D 7C 00 E8 FF 38 1D

68 50 78 00 00 you see with HxD, comes from 'push 00007850' that you would find with Olly.

50 78 00 00 means 00007850 in hex, and 30800 in decimal.

So, if you want for example, use 30900 for your port, you could search for 1D 00 68 50 78 00 00 68 D0 0D 7C 00 E8 FF 38 1D with HxD, and just edit the 50 78 part, and change them to B4 78 (30900 in decimal is 78B4 in hex, and reversed is B4 78)


And, if you use Olly, just do what Elessar2 said.
And remember to change the ports in the server INIs as well.

If you want to know why are the numbers reversed (7850 / 50 78), seach 'endianess' in google.

PS: I've searched with HxD both patterns carlos233 posted, in a ep6 game.exe, and they were both there. So if you can't find them, may be you have a different game.exe and should go with the Olly way.
04/02/2021 07:46 carlos233#6
Quote:
Originally Posted by sominus View Post
I'm not good at explaining things, so anyone correct me if I'm wrong here.


The hex pattern he posted represent the binary format of a assembly instruction.
Example:

1D 00 68 50 78 00 00 68 D0 0D 7C 00 E8 FF 38 1D

68 50 78 00 00 you see with HxD, comes from 'push 00007850' that you would find with Olly.

50 78 00 00 means 00007850 in hex, and 30800 in decimal.

So, if you want for example, use 30900 for your port, you could search for 1D 00 68 50 78 00 00 68 D0 0D 7C 00 E8 FF 38 1D with HxD, and just edit the 50 78 part, and change them to B4 78 (30900 in decimal is 78B4 in hex, and reversed is B4 78)


And, if you use Olly, just do what Elessar2 said.
And remember to change the ports in the server INIs as well.

If you want to know why are the numbers reversed (7850 / 50 78), seach 'endianess' in google.

PS: I've searched with HxD both patterns carlos233 posted, in a ep6 game.exe, and they were both there. So if you can't find them, may be you have a different game.exe and should go with the Olly way.

Goodnight. use a hex editor
04/02/2021 12:23 lucasgabriel2021#7
Quote:
Originally Posted by carlos233 View Post
here's your game
ports 20810/20800

30810
E8 E6 54 12 00 8D 4C 24 44 68 5A 78 00 00 51 E8

30800
1D 00 68 50 78 00 00 68 D0 0D 7C 00 E8 FF 38 1D

[Only registered and activated users can see links. Click Here To Register...]
thank you very much ️ sir was looking for this:handsdown::handsdown::handsdown: