| View previous topic :: View next topic |
| Author |
Message |
BoJangls Expert Cheater
Reputation: 0
Joined: 19 Dec 2007 Posts: 170
|
Posted: Thu Apr 09, 2009 3:20 pm Post subject: [Vb] Hooking to a process? |
|
|
I know a little about VB, but i'm not sure how to hook to a process. Or read memory. If some one could help my Aim Sn is Mkcrackelz. Or maybe some one could point me to a tutorial.
_________________
I'm Geeked UP |
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Thu Apr 09, 2009 3:36 pm Post subject: |
|
|
| .NET has a Process object that gets the process's handle for you, then you could just use the handle and call ReadProcessMemory
|
|
| Back to top |
|
 |
BoJangls Expert Cheater
Reputation: 0
Joined: 19 Dec 2007 Posts: 170
|
Posted: Thu Apr 09, 2009 3:42 pm Post subject: |
|
|
| : wrote: | | .NET has a Process object that gets the process's handle for you, then you could just use the handle and call ReadProcessMemory |
I guess i got alot of learnin to do. cuz i'm not sure how to do that.
i Never finshed my programming class -_- kinda sucks. cuz now i gota re learn everything on my own. I'll probably just google ReadProcessMemory and figure it out.
Thanks
edit: i tried to use this ( just to see how it worked)
Process.Start("Maplestory.exe")
and i put it in the same folder as maplestory.. and it then i ran it
and when i was supposed to open maple . i got an error...
_________________
I'm Geeked UP |
|
| Back to top |
|
 |
Frostbyt3 Master Cheater
Reputation: 0
Joined: 07 Jan 2008 Posts: 323 Location: Australia
|
Posted: Fri Apr 10, 2009 1:35 am Post subject: |
|
|
That should have been
| Code: | Dim process As New Process()
process.StartInfo = New ProcessStartInfo(Directory.GetCurrentDirectory() & "\MapleStory.exe")
process.Start()
|
Converted from C#, should work.
|
|
| Back to top |
|
 |
BoJangls Expert Cheater
Reputation: 0
Joined: 19 Dec 2007 Posts: 170
|
Posted: Fri Apr 10, 2009 7:39 am Post subject: |
|
|
thanks, i'll have to try this when I get home.
Edit: It says Specified file cannot be found
_________________
I'm Geeked UP |
|
| Back to top |
|
 |
shhac Expert Cheater
Reputation: 0
Joined: 30 Oct 2007 Posts: 108
|
Posted: Sun Apr 12, 2009 11:24 am Post subject: |
|
|
| Code: | | process.StartInfo = New ProcessStartInfo(Directory.GetCurrentDirectory() & "\MapleStory.exe") |
will only work if you're using it from the same directory.
I'd suggest you use the windows APIs anyway
| Code: | Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Boolean, ByVal dwProcessId As Integer) As Integer
Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer |
PROCESS_ALL_ACCESS = &H1F0FFF ' XP
PROCESS_ALL_ACCESS = &H1FFFFF ' Vista
usually have bInheritHandle as false.
|
|
| Back to top |
|
 |
|