Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Freezing Addresses in VB.Net

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
hacksign23
Master Cheater
Reputation: 0

Joined: 26 Nov 2006
Posts: 404

PostPosted: Thu Aug 14, 2008 8:45 pm    Post subject: Freezing Addresses in VB.Net Reply with quote

Title says all. Thanks.
_________________
Back to top
View user's profile Send private message AIM Address
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Thu Aug 14, 2008 8:51 pm    Post subject: Reply with quote

"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
View user's profile Send private message Send e-mail
hacksign23
Master Cheater
Reputation: 0

Joined: 26 Nov 2006
Posts: 404

PostPosted: Thu Aug 14, 2008 9:07 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Thu Aug 14, 2008 9:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
hacksign23
Master Cheater
Reputation: 0

Joined: 26 Nov 2006
Posts: 404

PostPosted: Thu Aug 14, 2008 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Thu Aug 14, 2008 9:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Aug 14, 2008 9:58 pm    Post subject: Reply with quote

Just find what writes to it, then NOP the instruction.
Back to top
View user's profile Send private message
hacksign23
Master Cheater
Reputation: 0

Joined: 26 Nov 2006
Posts: 404

PostPosted: Thu Aug 14, 2008 10:22 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Aug 14, 2008 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
hacksign23
Master Cheater
Reputation: 0

Joined: 26 Nov 2006
Posts: 404

PostPosted: Thu Aug 14, 2008 10:59 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Thu Aug 14, 2008 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
hacksign23
Master Cheater
Reputation: 0

Joined: 26 Nov 2006
Posts: 404

PostPosted: Fri Aug 15, 2008 1:17 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Fri Aug 15, 2008 6:25 am    Post subject: Reply with quote

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

Code:
for (;;) {

}


Why do an extra operation? I just used 1==1 cause in vb, i dunno if there is a for (;Wink
Back to top
View user's profile Send private message Send e-mail
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Aug 15, 2008 6:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites