Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Question] How to Make a Trainer Involving Packets?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ehdgoanf
Advanced Cheater
Reputation: 0

Joined: 23 Jun 2006
Posts: 98

PostPosted: Wed Nov 14, 2007 3:12 am    Post subject: [Question] How to Make a Trainer Involving Packets? Reply with quote

Hi,
I've looked around the forum, but only found tutorials on how to make trainers involving memory editting.

I don't know how to word this properly, but let's say I found Packet G WPE Pro.
Packet G supposedly goes like: "31 30 30 30 30 30", which then translates to "100000" in text.

What I want to do is make a trainer so that it creates and applies a "filter" that ADDS a certain number to the original packet.
For example, I press the magic button on the trainer and it creates and applies a filter that changes Packet G into "34 30 30 30 30 30".
So, if I press the button again, it would create and apply the filter that changes "34 30 30 30 30 30" to "37 30 30 30 30 30".

I know Exidis's Lunia Trainer sends packets, but I want to modify the packet by creating a filter. So, in other words, can anybody teach me how to make a trainer that would edit the packet instead of sending it?
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Wed Nov 14, 2007 3:27 am    Post subject: Reply with quote

Hook send & recv
Back to top
View user's profile Send private message MSN Messenger
ehdgoanf
Advanced Cheater
Reputation: 0

Joined: 23 Jun 2006
Posts: 98

PostPosted: Wed Nov 14, 2007 4:00 am    Post subject: Reply with quote

Is there any easier way of going about this than getting into intense programming..=x
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Nov 14, 2007 5:40 am    Post subject: Reply with quote

i dont think there is any easy ways of this.

look into WinSock.

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Nov 14, 2007 12:31 pm    Post subject: Reply with quote

If you can locate the packet handler in memory thats sending the packets you could hook that instead and alter the buffer before the packet is sent, but again, it's not an easy task. Finding the function isn't the hard part, but hooking it correctly and altering the buffer so it wont crash the game and so on is the more tricky part.

You'd be better off hooking send/recv, but mainly send in your case since you want to alter out going packets.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Acim
Grandmaster Cheater Supreme
Reputation: 0

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Wed Nov 14, 2007 3:17 pm    Post subject: Reply with quote

ehdgoanf wrote:
Is there any easier way of going about this than getting into intense programming..=x


Not really. Moose made a packet trainer once. Ask him how he did it, but I doubt he'll respond in the next year.

_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.
Back to top
View user's profile Send private message
ehdgoanf
Advanced Cheater
Reputation: 0

Joined: 23 Jun 2006
Posts: 98

PostPosted: Wed Nov 14, 2007 4:31 pm    Post subject: Reply with quote

Is there a source code for any of these packet trainers?
Maybe I can look at them somehow learn from them..=x

Either that, or could anybody post a link to a site where I can get more information about these topics..?
Back to top
View user's profile Send private message
rapion124
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Wed Nov 14, 2007 8:10 pm    Post subject: Reply with quote

The bad thing about hooking send and recv is that not all packets are going to be from the game. Your internet router/modem sends packets to things other than the game so it might affect your packets logged. It can also crash your trainer if there's a sudden burst of thousands of packets so your buffer overloads.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Nov 15, 2007 12:05 am    Post subject: Reply with quote

rapion124 wrote:
The bad thing about hooking send and recv is that not all packets are going to be from the game. Your internet router/modem sends packets to things other than the game so it might affect your packets logged. It can also crash your trainer if there's a sudden burst of thousands of packets so your buffer overloads.


Um.. thats why you don't do system wide hooks. Only hook it in the process. The only packets the game client will ever get is those sent between the game client and the game server.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
jam3s2k
How do I cheat?
Reputation: 0

Joined: 19 Nov 2007
Posts: 8

PostPosted: Tue Nov 20, 2007 8:30 am    Post subject: Reply with quote

Wiccaan you know a url to any sources that implement process hooks for send/recv or anything aslong as its a processed base hook?

respond soon Smile
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Nov 20, 2007 9:16 am    Post subject: Reply with quote

jam3s2k wrote:
Wiccaan you know a url to any sources that implement process hooks for send/recv or anything aslong as its a processed base hook?

respond soon Smile


Just inject a dll into the process then locally hook send/recv. It would be completely process based.
Back to top
View user's profile Send private message
jam3s2k
How do I cheat?
Reputation: 0

Joined: 19 Nov 2007
Posts: 8

PostPosted: Tue Nov 20, 2007 9:18 am    Post subject: Reply with quote

Flyte wrote:
jam3s2k wrote:
Wiccaan you know a url to any sources that implement process hooks for send/recv or anything aslong as its a processed base hook?

respond soon Smile


Just inject a dll into the process then locally hook send/recv. It would be completely process based.


Got a link to an example of this in visual basic?
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Nov 20, 2007 9:50 am    Post subject: Reply with quote

jam3s2k wrote:
Got a link to an example of this in visual basic?


You cannot make dll's in VB. (Wiccaan, don't bring up hacked linkers, it isn't natively supported.)
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Tue Nov 20, 2007 10:42 am    Post subject: Reply with quote

Google?

=)
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Nov 20, 2007 11:54 am    Post subject: Reply with quote

jam3s2k wrote:
Wiccaan you know a url to any sources that implement process hooks for send/recv or anything aslong as its a processed base hook?

respond soon Smile


Use Detours, look around for v1.5 cause the new version is meh. As Flyte said, inject your DLL into the given process and hook it locally, using Detours.

There are plenty of tutorials on how to use Detours so you should be able to get that done, and use the MSDN for how send / recv should be setup when your callback.

Flyte wrote:
You cannot make dll's in VB. (Wiccaan, don't bring up hacked linkers, it isn't natively supported.)


Aww Sad Razz

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites