Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 22:13

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

Advertisement



Locking WriteProcessMemory with a TickBox

Discussion on Locking WriteProcessMemory with a TickBox within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
*M*'s Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 950
Received Thanks: 2,410
This is the code for one of the buttons in my app:

Code:
 Private Sub Command8_Click()
If Hooked = True Then
  WriteProcessMemory ProcessHandle, &580316, 386, 2, 0&
End If
End Sub
The problem is the memory address that I write to resets itself after a while and I have to click the button again, is there anyway to lock the memory address that I write to? Or just have the code refresh itself at a set interval?
I would like to achieve this with a tick box if possible
*M*
*M* is offline  
Old 06/11/2007, 07:45   #2
 
Lowfyr's Avatar
 
elite*gold: 235
The Black Market: 135/1/0
Join Date: Jul 2003
Posts: 16,559
Received Thanks: 17,765
Quote:
Or just have the code refresh itself at a set interval?
this is how I freeze values, should work.
Lowfyr is offline  
Old 06/11/2007, 08:32   #3
 
elite*gold: 0
Join Date: Aug 2005
Posts: 443
Received Thanks: 72
If you are familiar with API Hooking you can do a Hook on the WriteProcessMemory function and check if it is your Address that someone wants to write to.
If so, just block it.
neji is offline  
Old 06/11/2007, 09:25   #4
 
*M*'s Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 950
Received Thanks: 2,410
Thanks for you replies, I did a little more digging and came up with this

A timer which locks the code on:
Code:
Private Sub Timer2_Timer()
If Timer2.Enabled = True Then
Call Command8_Click
End If
End Sub
and Option buttons for on:

Code:
Private Sub Option2_Click()
Timer2.Enabled = True
End Sub
And Off

Code:
Private Sub Option1_Click()
Timer2.Enabled = False
If Hooked = True Then
  WriteProcessMemory ProcessHandle, &H555216, 0, 4, 0&
End If
End Sub
The off button turns off the timer and then sets the code back to its default value

You can lock this thread now if you see no use for it being open.
*M* is offline  
Old 06/11/2007, 09:55   #5
 
elite*gold: 0
Join Date: Apr 2007
Posts: 66
Received Thanks: 15
That's lame. If you want a value to be frozen, then make the code (of the target) reflect it. Use code caves, hijack/nop/whatever the command that changes it.
wiz is offline  
Old 06/11/2007, 11:16   #6
 
*M*'s Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 950
Received Thanks: 2,410
Quote:
Originally posted by wiz@Jun 11 2007, 09:55
That's lame. If you want a value to be frozen, then make the code (of the target) reflect it. Use code caves, hijack/nop/whatever the command that changes it.
w/e, I've only just started VB.
*M* is offline  
Reply


Similar Threads Similar Threads
Probleme Visual Basic unter Vista64Bit mit ReadProcessMemory und WriteProcessMemory
04/24/2012 - .NET Languages - 2 Replies
Hallo Ihrs Ich hoffe ihr könnt mir vllt vieleicht weiterhelfen, ich befasse mich schon seit einigen Tagen mit ReadProcessMemory und WriteProcessMemory aber irgendwie will das ganze nicht unter Vista 64 Bit nicht funktionieren. Nachfolgender Code tut zb den Puktestand in Solitaire auslesen und in einer Textbox anzeigen. (Ist ja nur ein Beispiel) unter XP funktioniert das ganze ohne Probleme, aber unter Vista bekomme ich immer den Wert 0 zurück. Mir ist klar das die Speicheradresse unter Vista...
Locking for a DEV/GFX
08/21/2010 - Dekaron Private Server - 8 Replies
Hey im locking for a DEV or GFX how want help me just a little with the server , I don't need help in opening it , I don't need help in changing the files to much , I just need a little hand so I can dedicate more time to important things on server . The job you will have will not be hard . All I can say is the server will be unique , more hard for you will be the aloken part maybe but even there u will not help to much . PM me if you interested .
help on Writeprocessmemory
10/07/2009 - General Coding - 8 Replies
#include <Windows.h> #include <iostream> using namespace std; #define EngineUpgrade_Addr 0x2F7EDDC8 #define EngineUpgrade_Value 1000 const SIZE_T EngineUpgrade_Size = sizeof(EngineUpgrade_Value); SIZE_T EngineUpgrade_Sent = 0;
Wie erlange ich die PID eines Prozesses für z.B. WriteProcessMemory
11/06/2008 - Coding Tutorials - 4 Replies
An die, die noch nicht wissen, wie sie ein Handle eines Prozesses erlangen, folgt hier ein kleiner Beispielquelltext . Beispielprogramm: .386 .model flat, stdcall option casemap :none include windows.inc include kernel32.inc include user32.inc



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


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.