Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 14:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[GF] Calling internal send function, last byte missing

Discussion on [GF] Calling internal send function, last byte missing within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
DonAirBerlin's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 62
Received Thanks: 18
Question [GF] Calling internal send function, last byte missing

Hello together,

after receiving great help last time concerning my problem with the _thiscall function. I was able to do some cool stuff with the client.

Anyway now I started trying to submit packages directly to the server using the internal send function. As a base for that I used the help of @.Verkauf ()

After realizing that his function in the end is not well formatted for the [GF] client (length need to be passed as first argument and the buffer as). I come to some new problems.

Mainly I got a kick after using the function with my own data (simple SendItemUse packet of size "4 BYTE").
Analyzing that I found out that the encrypted and sended package is of Size "5 Byte". That's the case for all packages. There is always one Byte added at the end of sequence before the encryption process.

I was not able to track that byte down. It looks even a bit random to me.

Is there anyone struggled with the same problem and can give some hints what the last byte is/how it is calculated.

Thanks in advance.
DonAirBerlin is offline  
Old 05/25/2023, 10:56   #2
 
DonAirBerlin's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 62
Received Thanks: 18
Thumbs up

Solved. After hooking and using the send function with your own data, you need to do an additional call to a different function. you can find that second function after the send call was done by the caller function.

It takes no arguments except the Class Pointer.
DonAirBerlin is offline  
Thanks
1 User
Old 05/26/2023, 17:42   #3
 
dave_m's Avatar
 
elite*gold: 0
Join Date: May 2023
Posts: 65
Received Thanks: 11
There is an additional call that adds a random byte at the end of each packet. You need to simulate that one too.

I think I also saw pservers which had that removed so you could try that there for learning purposes too.
dave_m is offline  
Thanks
1 User
Old 05/26/2023, 22:05   #4
 
DonAirBerlin's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 62
Received Thanks: 18
Yeah like you said you can just call the generator function without arguments and it gets added automatically and works. I am still trying to find out how to calculate that byte from scratch, but it's not my main focus for now.

Still thank you for your feedback

#closed
DonAirBerlin is offline  
Reply


Similar Threads Similar Threads
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
Need some help calling function for height
07/27/2011 - Perfect World - 2 Replies
Hey there, for some reason I keep crashing upon trying to call this function and it's really pissing me off. I was wondering if somebody could give me some advice as to what I'm doing wrong :( The function is being called inside a function starting at address 0x465730 in PWI The function I'm looking for is called twice here, namely at 0x4657C7 and 0x465879. The code where it is called looks something like this: http://img94.imageshack.us/img94/9867/coordfuncti on.png Now, I'm...
Help, calling an ingame function
03/13/2010 - General Coding - 2 Replies
Im trying with my dll to set off the "set stat function". The one that u press when you add a stat point to str, dex or what ever. My goal is to make players able to set there Stats to whatever they use to have from an earlier saved point. So if you play against different sort of mobs or players you reform your stats to be suetable for that sertan task in just 1 second right where you stand. Im thinking this is very useful for many ppl here. So now i could use help with the actuall call of...
Help with calling this function!
03/13/2010 - 12Sky2 - 6 Replies
First off: sorry for my poor english! Im trying with my dll to set off the "set stat function". The one that u press when you add a stat point to str, dex or what ever. My goal is to make players able to set there Stats to whatever they use to have from an earlier saved point. So if you play against different sort of mobs or players you reform your stats to be suetable for that sertan task in just 1 second right where you stand. Im thinking this is very useful for many ppl here. So now i...
Calling function in a game
03/29/2009 - General Coding - 1 Replies
Hai guise, I'm a stupid morron but how can I make a hook in c++ that will use Gameplay::GetMoney(); to return the current amount of Gold I have? http://www.bilderkiste.org/show/original/0bba0c93 80a21de4810c1429cbc287c9/call.jpg



All times are GMT +1. The time now is 14:00.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.