Posted: Mon May 30, 2011 3:55 pm Post subject: InternetWriteFile - Change the buffer?
I've found that a game I like to play uses InternetWriteFile for uploading files, and I want to change the buffer to upload *cough* not so approved *cough* content.
Joined: 09 May 2003 Posts: 25855 Location: The netherlands
Posted: Mon May 30, 2011 4:25 pm Post subject:
in 32-bit:
after the startup body of the function (push ebp/ mov ebp,esp) the state of the variables is:
[ebp+4]=return address
[ebp+8]=Handle to file
[ebp+c]=Address of the buffer
[ebp+10]=Number of bytes in the buffer
[ebp+14]=Address to store the number of actually written bytes
The following code is just to show how it should, it will not work if you just copy/paste, you must make some adjustments yourself
Code:
push ebp
mov ebp,esp
push eax
mov eax,[ebp+c]
mov byte ptr [eax+0], change byte1
mov byte ptr [eax+1], change byte 2
mov byte ptr [eax+10], change byte 16
.....
//just don't go over the value stored in [ebp+10]
//adjust [ebp+10] if you want to write less bytes
pop eax
pop ebp
execute overwritten bytes
jmp to original code
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
Last edited by Dark Byte on Mon May 30, 2011 4:44 pm; edited 1 time in total
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