| View previous topic :: View next topic |
| Author |
Message |
hacksign23 Master Cheater
Reputation: 0
Joined: 26 Nov 2006 Posts: 404
|
Posted: Thu Aug 14, 2008 8:45 pm Post subject: Freezing Addresses in VB.Net |
|
|
Title says all. Thanks.
_________________
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Thu Aug 14, 2008 8:51 pm Post subject: |
|
|
"Freezing" a Pointer is simple assigning a value to it constantly.
You assign the pointer a value, and loop it, therefore "freezing" the value of it.
This is the same as what a UCE does.
Ie: (In C++ i dunno vb.net)
while (1==1) //infinite loop
{
Pointer1 = 4;
}
|
|
| Back to top |
|
 |
hacksign23 Master Cheater
Reputation: 0
Joined: 26 Nov 2006 Posts: 404
|
Posted: Thu Aug 14, 2008 9:07 pm Post subject: |
|
|
I got part of it. How would I assign the address to like an external program
this is what i got, but I don't think it hooks.
| Code: |
Dim Pointer As IntPtr
Pointer = &H1005000
While 1 = 1
Pointer = 1
End While
|
Just hooking the pointer to the external thingy.
_________________
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Thu Aug 14, 2008 9:12 pm Post subject: |
|
|
| hacksign23 wrote: | I got part of it. How would I assign the address to like an external program
this is what i got, but I don't think it hooks.
| Code: |
Dim Pointer As IntPtr
Pointer = &H1005000
While 1 = 1
Pointer = 1
End While
|
Just hooking the pointer to the external thingy. |
This modifies the memory at the pointer of address H1005000 (or whatever) of itself. This just assigns the value of a variable.
You need to modify the memory of an outside process.
There are 2 ways:
1. WriteProcessMemory()
- You need to bypass this in some unknown way if you are modifying MapleStory's memory.
- If not, it should do.
2. Make it into a DLL.
- a DLL gives direct access to the process it is injected into.
The pointer, I am talking about, could be anything. A game pointer that points to memory, or whatever.
|
|
| Back to top |
|
 |
hacksign23 Master Cheater
Reputation: 0
Joined: 26 Nov 2006 Posts: 404
|
Posted: Thu Aug 14, 2008 9:22 pm Post subject: |
|
|
While Loopzer = 1
WriteProcessMemory(processHandle, &H1005000, &H1, 1, 1)
End While
well i did that, but it takes up a lot of cpu and the program freezes. Umm... Loopzer is just there so i can disable it. yea. Would using a timer be a good idea? thanks.
_________________
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Thu Aug 14, 2008 9:25 pm Post subject: |
|
|
Put a delay somewhere in the loop, so it does not kill the cpu.
a delay of 100 + ms would do.
Im not so sure how to use WriteProcessMemory, so I cannt say if it is correct.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Aug 14, 2008 9:58 pm Post subject: |
|
|
| Just find what writes to it, then NOP the instruction.
|
|
| Back to top |
|
 |
hacksign23 Master Cheater
Reputation: 0
Joined: 26 Nov 2006 Posts: 404
|
Posted: Thu Aug 14, 2008 10:22 pm Post subject: |
|
|
yea i know but then the address it changes also changes, crashing the program.
I wouldn't have posted this if it did work.
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Aug 14, 2008 10:27 pm Post subject: |
|
|
| hacksign23 wrote: | yea i know but then the address it changes also changes, crashing the program.
I wouldn't have posted this if it did work. |
If you nop the instruction, nothing can happen. And if that's really a problem somehow, just change the instruction, you don't necessarily need to nop it to get 'infinite' as a result.
Last edited by hcavolsdsadgadsg on Fri Aug 15, 2008 12:04 am; edited 1 time in total |
|
| Back to top |
|
 |
hacksign23 Master Cheater
Reputation: 0
Joined: 26 Nov 2006 Posts: 404
|
Posted: Thu Aug 14, 2008 10:59 pm Post subject: |
|
|
Okay I'll tell you what happens. I got it to work anyways, but... yea here.
the one to nop: mov [eax],al
what happens, the value, instead of going to 16, it goes to some 263904089 bla. Plus, two bytes after the address turn to nops instead of 00 00.
yea.
_________________
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Thu Aug 14, 2008 11:10 pm Post subject: |
|
|
lol btw guys
why do you always do 1=1..
just put 1 it's enough
While 1
End While
while(1) {
}
1 is true
0 = false
in c++ you might of seen
while(true) {
}
thats same as replacing that word with 1.
|
|
| Back to top |
|
 |
hacksign23 Master Cheater
Reputation: 0
Joined: 26 Nov 2006 Posts: 404
|
Posted: Fri Aug 15, 2008 1:17 am Post subject: |
|
|
screw whilles. I can't use those unless i use a sleep which means i wouldn't be able to do anything.
_________________
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Fri Aug 15, 2008 6:25 am Post subject: |
|
|
| pkedpker wrote: | lol btw guys
why do you always do 1=1..
just put 1 it's enough
While 1
End While
while(1) {
}
1 is true
0 = false
in c++ you might of seen
while(true) {
}
thats same as replacing that word with 1. |
I donnt. I use something better
Why do an extra operation? I just used 1==1 cause in vb, i dunno if there is a for (;
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Aug 15, 2008 6:49 am Post subject: |
|
|
Either way you do a loop you will need to add a sleep if it is something consistently happening. As for loops themselves, I highly suggest using a real conditional check when looping for something that is going to be looping for a while, such as a main thread, hotkey monitor, etc.
| Code: | while( !bExitThread )
{
// Other code here...
Sleep( 10 );
} |
This way other parts of the program can cause the thread to exit as well, such as cleanup, exiting of the DLL, etc. It is best to cleanup the objects you make yourself.
With that, bExitThread would be a global variable. This way, like I mentioned, other functions have access to it if needed.
And without the sleep, you are going to just rape the CPU with any type of loop, be it do, while, for, etc.
_________________
- Retired. |
|
| Back to top |
|
 |
|