| View previous topic :: View next topic |
| Author |
Message |
synapsehome How do I cheat?
Reputation: 0
Joined: 13 Jul 2011 Posts: 7
|
Posted: Wed Jul 13, 2011 12:19 pm Post subject: Help with the correct source code |
|
|
Hi all! Before that I was doing simple cheats, addresses the necessary parameters were in the form 01000549 and problems with writing to memory does not arise, but now I'm faced with this problem - the address of parameter is material.dll + EB459 (static). How i can write to this adress (source pls )
PS. Sry about my bad English, im from far Russia
Last edited by synapsehome on Wed Jul 13, 2011 12:36 pm; edited 1 time in total |
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
|
| Back to top |
|
 |
synapsehome How do I cheat?
Reputation: 0
Joined: 13 Jul 2011 Posts: 7
|
Posted: Wed Jul 13, 2011 12:35 pm Post subject: |
|
|
| I dont need winject 1.7, i need source to inject.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Jul 13, 2011 12:38 pm Post subject: |
|
|
| synapsehome wrote: | | I dont need winject 1.7, i need source to inject. |
There are plenty of sites that have tons of injector examples, sources, and explanations. Rather then getting spoon-fed try searching before you beg next time.
_________________
- Retired. |
|
| Back to top |
|
 |
Acubra Advanced Cheater
Reputation: 0
Joined: 19 Jun 2011 Posts: 64 Location: C:\Windows\System32\HoG
|
Posted: Wed Jul 13, 2011 12:57 pm Post subject: |
|
|
| You need to receive the ModuleBase of the material.dll. To achieve this you need to use the API CreateToolhelp32Snapshot and then loop through the moduls via Module32Next. If you found the correct module, you just have to add the offset (in your case it's EB459) to the moduleaddress and you are at the correct address to write your codeinjection or whatever you want to do there.
|
|
| Back to top |
|
 |
synapsehome How do I cheat?
Reputation: 0
Joined: 13 Jul 2011 Posts: 7
|
Posted: Wed Jul 13, 2011 1:08 pm Post subject: |
|
|
| Thx, but i know about it. I cant write a code, there are a lot of errors. Do you have any examples? I cant find them in google, wtf.
|
|
| Back to top |
|
 |
Acubra Advanced Cheater
Reputation: 0
Joined: 19 Jun 2011 Posts: 64 Location: C:\Windows\System32\HoG
|
Posted: Wed Jul 13, 2011 1:37 pm Post subject: |
|
|
| Just google "CreateToolhelp32Snapshot your programming language" and you will find tons of examples.
|
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Wed Jul 13, 2011 3:25 pm Post subject: |
|
|
Sorry, I misinterpreted your question. You can search the Programming section here, there are tons of examples.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
| Back to top |
|
 |
Pingo Grandmaster Cheater
Reputation: 8
Joined: 12 Jul 2007 Posts: 571
|
Posted: Wed Jul 13, 2011 3:57 pm Post subject: |
|
|
| Acubra wrote: | | You need to receive the ModuleBase of the material.dll. To achieve this you need to use the API CreateToolhelp32Snapshot and then loop through the moduls via Module32Next. If you found the correct module, you just have to add the offset (in your case it's EB459) to the moduleaddress and you are at the correct address to write your codeinjection or whatever you want to do there. |
Why when you can just use System.Diagnostics.ProcessModuleCollection.
Seems like alot of extra work when you have the tools already.
@synapsehome
Which language are you referring to.
_________________
|
|
| Back to top |
|
 |
Acubra Advanced Cheater
Reputation: 0
Joined: 19 Jun 2011 Posts: 64 Location: C:\Windows\System32\HoG
|
Posted: Wed Jul 13, 2011 4:03 pm Post subject: |
|
|
Hey Pingo,
not everyone is using .net. In MASM or C there is no other way to do it. (At least I don't know them)
|
|
| Back to top |
|
 |
Pingo Grandmaster Cheater
Reputation: 8
Joined: 12 Jul 2007 Posts: 571
|
Posted: Wed Jul 13, 2011 4:09 pm Post subject: |
|
|
| Acubra wrote: | Hey Pingo,
not everyone is using .net. In MASM or C there is no other way to do it. (At least I don't know them) |
True, i never thought of that. Im having an off day
_________________
|
|
| Back to top |
|
 |
synapsehome How do I cheat?
Reputation: 0
Joined: 13 Jul 2011 Posts: 7
|
Posted: Thu Jul 14, 2011 3:06 am Post subject: |
|
|
| forum.cheatengine.org/viewtopic.php?t=539364 - this i need, but i need to write float and integer at material.dll + EB459
|
|
| Back to top |
|
 |
Pingo Grandmaster Cheater
Reputation: 8
Joined: 12 Jul 2007 Posts: 571
|
Posted: Thu Jul 14, 2011 4:21 am Post subject: |
|
|
Just remember, WriteProcessMemory writes the value as a byte array.
Whatever value type you need to write, you'll need to convert it to bytes.
| Code: | | WriteProcessMemory(Process_Handle, Address, Bytes, Bytes_Length, 0) |
So to write a float/integer value, you need to convert it to byte array first.
| Code: | | BitConverter.GetBytes(Value) |
And just make a simple write float, something like this
| Code: | Public Sub WriteFloat(ByVal iAddress As Integer, ByVal Float_Value As Single)
Dim pBytes As Byte() = BitConverter.GetBytes(Float_Value)
WriteProcessMemory(IntPtr.Zero, iAddress, pBytes, pBytes.Length, 0)
End Sub |
But replace IntPtr.Zero with the actual process handle.
For the module, just get the Baseaddress and add the offset.
_________________
|
|
| Back to top |
|
 |
synapsehome How do I cheat?
Reputation: 0
Joined: 13 Jul 2011 Posts: 7
|
Posted: Thu Jul 14, 2011 10:17 am Post subject: |
|
|
| Thank you. But now i have the problem with the record to memory. I need to write the number 1 in the process of HL2. What is the pBytes.Length and 0?
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
|
| Back to top |
|
 |
|