| View previous topic :: View next topic |
| Author |
Message |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Fri May 29, 2009 2:19 pm Post subject: Re: WriteProcessMemory In Delphi 7 |
|
|
What exactly don't you get? It's pretty much straight forwards to me... The hProcess is a handle to a process and BaseAddress is the base of where you want to read. Buffer is a pointer to where you want the returned bytes to be. And nSize is how many bytes you want to read so if you want to read/write a dword you would use 4 as that value. And numofbytesret is just a random var that tells you how much was returned.
|
|
| Back to top |
|
 |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Fri May 29, 2009 3:02 pm Post subject: Re: WriteProcessMemory In Delphi 7 |
|
|
| dnsi0 wrote: |
What exactly don't you get? It's pretty much straight forwards to me... The hProcess is a handle to a process and BaseAddress is the base of where you want to read. Buffer is a pointer to where you want the returned bytes to be. And nSize is how many bytes you want to read so if you want to read/write a dword you would use 4 as that value. And numofbytesret is just a random var that tells you how much was returned. |
I don't get how to write one and or call one
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Fri May 29, 2009 3:12 pm Post subject: Re: WriteProcessMemory In Delphi 7 |
|
|
| [SM] Oblivion's Grave wrote: | | dnsi0 wrote: |
What exactly don't you get? It's pretty much straight forwards to me... The hProcess is a handle to a process and BaseAddress is the base of where you want to read. Buffer is a pointer to where you want the returned bytes to be. And nSize is how many bytes you want to read so if you want to read/write a dword you would use 4 as that value. And numofbytesret is just a random var that tells you how much was returned. |
I don't get how to write one and or call one  |
Just code it the way you would normally call a Kernel32.dll function.
|
|
| Back to top |
|
 |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Fri May 29, 2009 7:03 pm Post subject: |
|
|
LOL! Thats whay I'm saying, I have never done explicit and difficult stuff in Delphi, on simple things, like codes that display sent data, etc. Loading stuff, etc.
Not to leech but would you mind giving me an example? I'm trying to learn how to edit a packet before its sent, like filtering
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri May 29, 2009 8:18 pm Post subject: |
|
|
| Will you just learn the damn basics first?
|
|
| Back to top |
|
 |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Fri May 29, 2009 8:35 pm Post subject: |
|
|
| slovach wrote: | | Will you just learn the damn basics first? |
I know basic stuff ^^ Not difficult stuff like that, I didn't ask to get flamed but if it makes you feel better go ahead ^^
I know how to do basic things, examples:
If Checkbox1.checked = True then
Send1packet('asdf');
TWeb.Navigate('asdf');
If Listbox1.ItemIndex <>0 then
ListBox1.Items.Delete(Listbox1.ItemIndex);
Send1packet('asdf'+Edit1.Text+'asdf');
Datastrings.Clear;
Listbox1.Clear;
I'm not stupid, I just can't do difficult things, thats why I asked for help. No I can't make a hook or hack into the FBI's database. And no that is not all I can do, just some random examples.
|
|
| Back to top |
|
 |
Valex37 How do I cheat?
Reputation: 0
Joined: 22 May 2009 Posts: 9 Location: United States of America
|
Posted: Fri May 29, 2009 8:50 pm Post subject: |
|
|
| Quote: | BOOL WINAPI WriteProcessMemory(
__in HANDLE hProcess,
__in LPVOID lpBaseAddress,
__in LPCVOID lpBuffer,
__in SIZE_T nSize,
__out SIZE_T *lpNumberOfBytesWritten
);
|
So, you don't get how to use it? I am not too familiar with Delphi, but here is an example in C++ which I will try to comment properly.
| Code: |
#include <windows.h> //Required for Windows API functions
#include <iostream> //Required for cout/cin
using namespace std; //So we don't have to type std::
int main() {
char * pWndName = "My Game 2009"; //Variable for the Title of the game we are editing
HANDLE pHandle; //Handle to process
HWND pHwnd; //Handle to window
DWORD pId; //Process ID
int pWriteValue01 = NULL; //Variable we are going to write later
int pPointerAddress = 0x21F00D20; //Address to write to (We will call it Money)
pHwnd = FindWindow(NULL,pWndName); //Find the window with the Title name
pId = GetWindowThreadProcessId(pHwnd,&pId); //Grab process ID from window
pHandle = OpenProcess(PROCESS_ALL_ACCESS,FALSE,pId); //Finally, open the process
if (!pHandle) { //Couldn't open
cout << "Could not find process.\nQuitting in 5 seconds.\n"; //Error msg
Sleep(5000); //Wait 5 seconds
return 0; //Quit
}
cout << "Found process.\n"; //Woohoo
cout << "\nEnter amount of Money: \n"; //Chuh Ching
cin >> pWriteValue01; //Give me the money
WriteProcessMemory(pHandle,(LPVOID)pPointerAddress,(LPCVOID)&pWriteValue01,4,0);
//Alright here we got the actual WriteProcessMemory Function
//This takes the Handle we declared and set earlier to the window, and the pointer address we need because this is the area of memory we need to write to
//which in this case is the area the program holds the Money variable
//then it references the pWriteValue01 (Value we are writing to the Address for Money) and finally, 4 is the number of bytes, which in this case is an INT(4 Bytes)
//Keep the last parameter 0 for this type of editing
//That's it. Hope you understood all this.
}
|
_________________
Valex |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri May 29, 2009 9:27 pm Post subject: |
|
|
| [SM] Oblivion's Grave wrote: | | slovach wrote: | | Will you just learn the damn basics first? |
I know basic stuff ^^ Not difficult stuff like that, I didn't ask to get flamed but if it makes you feel better go ahead ^^
I know how to do basic things, examples:
|
Except none of this would be difficult in the least if you had even the tiniest foothold in Win32 and whatever language?
If you don't understand what MSDN has to say about it, then go back to learning.
I'm tired of people that just beg for everything to be fed to them. You've made no attempt at all to do this on your own. You don't know how, is that why? Then what does that say? (hint: the obvious)
Booooo, I am such a horrible asshole.
PS: Google has about a million results on exactly what you want to do.
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sat May 30, 2009 7:06 am Post subject: |
|
|
| slovach wrote: | | [SM] Oblivion's Grave wrote: | | slovach wrote: | | Will you just learn the damn basics first? |
I know basic stuff ^^ Not difficult stuff like that, I didn't ask to get flamed but if it makes you feel better go ahead ^^
I know how to do basic things, examples:
|
Except none of this would be difficult in the least if you had even the tiniest foothold in Win32 and whatever language?
If you don't understand what MSDN has to say about it, then go back to learning.
I'm tired of people that just beg for everything to be fed to them. You've made no attempt at all to do this on your own. You don't know how, is that why? Then what does that say? (hint: the obvious)
Booooo, I am such a horrible asshole.
PS: Google has about a million results on exactly what you want to do. |
I would agree. There is a nice tutorial I found on google that taught me everything I needed to know about rvm and wvm.
Here:
vars:
| Code: | omgbuffer:Byte;
omgrandomvar:Dword; |
code:
ReadProcessMemory:
Result:=ReadProcessMemory(hProcess,$00400000,@omgbuffer,1,omgrandomvar);
This will read 1 byte from hProcess address 00400000 into OMGBUFFER. The value should be 4D.
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sat May 30, 2009 8:44 am Post subject: |
|
|
RPM/WPM is NOT advanced.
_________________
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sat May 30, 2009 12:37 pm Post subject: |
|
|
| sponge wrote: | | RPM/WPM is NOT advanced. |
What do you mean sponge? "Not Advanced".
|
|
| Back to top |
|
 |
Valex37 How do I cheat?
Reputation: 0
Joined: 22 May 2009 Posts: 9 Location: United States of America
|
Posted: Sat May 30, 2009 2:10 pm Post subject: |
|
|
| sponge wrote: | | RPM/WPM is NOT advanced. |
I agree. It's not difficult feeding a function you have full documentation on a few parameters. WPM/RPM is quite simple to use. Now the way you use them is a different story, you could develop quite a complex memory editing program.
_________________
Valex |
|
| Back to top |
|
 |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Sat May 30, 2009 2:17 pm Post subject: |
|
|
| slovach wrote: | | [SM] Oblivion's Grave wrote: | | slovach wrote: | | Will you just learn the damn basics first? |
I know basic stuff ^^ Not difficult stuff like that, I didn't ask to get flamed but if it makes you feel better go ahead ^^
I know how to do basic things, examples:
|
Except none of this would be difficult in the least if you had even the tiniest foothold in Win32 and whatever language?
If you don't understand what MSDN has to say about it, then go back to learning.
I'm tired of people that just beg for everything to be fed to them. You've made no attempt at all to do this on your own. You don't know how, is that why? Then what does that say? (hint: the obvious)
Booooo, I am such a horrible asshole.
PS: Google has about a million results on exactly what you want to do. |
How am I asking to be spoon fed? I'm not, all I asked was if someone could help me understand it better, not how to make such and such, so all in all that WOULD be trying to attempt it myself IF I am trying to learn how it operates, and get used to it, its good old fat,dumb ass America. I'm getting tired of people like you, that post dumb-ass comments and bring people down because they don't know what to do, maybe if you could try and be helpful then MAYBE just maybe so many people won't ask.
But a WAY MORE experienced and WAY MORE elite HACKER in the AQW section helped me, so I don't need your help, not that you gave any. DELETE THIS.
|
|
| Back to top |
|
 |
Valex37 How do I cheat?
Reputation: 0
Joined: 22 May 2009 Posts: 9 Location: United States of America
|
Posted: Sat May 30, 2009 3:01 pm Post subject: |
|
|
| [SM] Oblivion's Grave wrote: | | slovach wrote: | | [SM] Oblivion's Grave wrote: | | slovach wrote: | | Will you just learn the damn basics first? |
I know basic stuff ^^ Not difficult stuff like that, I didn't ask to get flamed but if it makes you feel better go ahead ^^
I know how to do basic things, examples:
|
Except none of this would be difficult in the least if you had even the tiniest foothold in Win32 and whatever language?
If you don't understand what MSDN has to say about it, then go back to learning.
I'm tired of people that just beg for everything to be fed to them. You've made no attempt at all to do this on your own. You don't know how, is that why? Then what does that say? (hint: the obvious)
Booooo, I am such a horrible asshole.
PS: Google has about a million results on exactly what you want to do. |
How am I asking to be spoon fed? I'm not, all I asked was if someone could help me understand it better, not how to make such and such, so all in all that WOULD be trying to attempt it myself IF I am trying to learn how it operates, and get used to it, its good old fat,dumb ass America. I'm getting tired of people like you, that post dumb-ass comments and bring people down because they don't know what to do, maybe if you could try and be helpful then MAYBE just maybe so many people won't ask.
But a WAY MORE experienced and WAY MORE elite HACKER in the AQW section helped me, so I don't need your help, not that you gave any. DELETE THIS. |
Wow, did you just insult America while whining like a bitch? I posted some useful code that is commented above. You shouldn't have been provoked so easily.
_________________
Valex |
|
| Back to top |
|
 |
|