Site Maintenance (Server migration/upgrade will take place either today or tomorrow)week.

Go Back   GameKiller - Maple Story Hacks, Combat Arms Hacks & WonderKing Hacks > Programming & Reversing > General Programming & Reversing

[C#]Getting Address value?

This is a discussion on [C#]Getting Address value? within the General Programming & Reversing forums, part of the Programming & Reversing category; Well I've seen a release where it tells you your level and map.(MapleStory) I'm guessing that was by finding the ...


Reply
 
LinkBack Thread Tools Display Modes
Old 01-13-2010, 07:01 PM   #1
Newbie
Feedback Score: 0 reviews
 
Sour's Avatar
 
Join Date: Aug 2009
Posts: 37
Thanks: 3
Thanked 1 Time in 1 Post
Default [C#]Getting Address value?

Well I've seen a release where it tells you your level and map.(MapleStory) I'm guessing that was by finding the value of an Address?
I was wondering. How do you get the value of an address of another program?

I just need a website showing me how to read the Memory...
Thanks

[Last thread I was helped right away, so I'm asking another question.]
Sour is offline   Reply With Quote
Sponsored Links

Old 01-13-2010, 10:04 PM   #2
Bronze Rank Hacker
Feedback Score: 0 reviews
 
Wintermute's Avatar
 
Join Date: Aug 2009
Posts: 437
Thanks: 36
Thanked 99 Times in 84 Posts
Default Re: [C#]Getting Address value?

ReadProcessMemory.

To edit, WriteProcessMemory.

These will not work for MapleStory without a bypass.
Wintermute is offline   Reply With Quote
The Following User Says Thank You to Wintermute For This Useful Post:
Sour (01-13-2010)
Old 01-13-2010, 10:24 PM   #3
Newbie
Feedback Score: 0 reviews
 
Sour's Avatar
 
Join Date: Aug 2009
Posts: 37
Thanks: 3
Thanked 1 Time in 1 Post
Default Re: [C#]Getting Address value?

Originally Posted by Wintermute View Post
ReadProcessMemory.

To edit, WriteProcessMemory.

These will not work for MapleStory without a bypass.
Thanks, and ok.
I was just wondering, because some other games I would like to make a...program...for.
Sour is offline   Reply With Quote
Old 01-14-2010, 06:40 PM   #4
Beginner Hacker
Feedback Score: 0 reviews
 
KittyKittyBoy17's Avatar
 
Join Date: Sep 2009
Posts: 139
Thanks: 1
Thanked 22 Times in 17 Posts
Default Re: [C#]Getting Address value?

You also need OpenProcess() to get a HANDLE for ReadProcessMemory()/WriteProcessMemory(). Also like most programs, you need to get privileges to read or write memory to it. Go look up AdjustTokenPrivileges().

Finally Back
KittyKittyBoy17 is offline   Reply With Quote
Old 01-14-2010, 07:20 PM   #5
Bronze Rank Hacker
Feedback Score: 0 reviews
 
Wintermute's Avatar
 
Join Date: Aug 2009
Posts: 437
Thanks: 36
Thanked 99 Times in 84 Posts
Default Re: [C#]Getting Address value?

Well, any game that has protection, such as x-trap, GameGuard or HackShield, should be unaffected by this method, unless you ahve a bypass.

Originally Posted by KittyKittyBoy17 View Post
You also need OpenProcess() to get a HANDLE for ReadProcessMemory()/WriteProcessMemory(). Also like most programs, you need to get privileges to read or write memory to it. Go look up AdjustTokenPrivileges().

Finally Back
Welcome back. Sure has been awfully lonely without you.
Wintermute is offline   Reply With Quote
Old 01-14-2010, 07:47 PM   #6
Newbie
Feedback Score: 0 reviews
 
Join Date: Jul 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: [C#]Getting Address value?

i dont know who even made it,

Last edited by m1sniper; 01-16-2010 at 02:34 PM.
m1sniper is offline   Reply With Quote
Old 01-16-2010, 06:20 AM   #7
Bronze Rank Hacker
Feedback Score: 0 reviews
 
Wintermute's Avatar
 
Join Date: Aug 2009
Posts: 437
Thanks: 36
Thanked 99 Times in 84 Posts
Default Re: [C#]Getting Address value?

Originally Posted by m1sniper View Post
Code:
Useless code
Way to copy and paste some pretty damn useless code without giving any credits, whatsoever. Didn't you ever notice that's a bannable offense?

Anyway, since I don't code C#, I decided to search Google. This is advanced, but should be pretty comprehensive.

[Only Registered and Activated Users Can See Links. Click Here To Register...]
Wintermute is offline   Reply With Quote
The Following User Says Thank You to Wintermute For This Useful Post:
Sour (01-17-2010)
Old 01-18-2010, 12:41 PM   #8
Newbie
Feedback Score: 0 reviews
 
Sour's Avatar
 
Join Date: Aug 2009
Posts: 37
Thanks: 3
Thanked 1 Time in 1 Post
Default Re: [C#]Getting Address value?

Can someone explain what this means? I don't really like typing stuff that I don't understand =/

PHP Code:
[DllImport("kernel32.dll",SetLastError true)]
static 
extern bool WriteProcessMemory(IntPtr hProcessIntPtr lpBaseAddressbyte [] lpBufferuint nSizeout int lpNumberOfBytesWritten); 
All I know:Imports kernel32.dll
intPtr=Pointer
I also know what static extern bool means
The rest of it though...No clue...

I have a book on C#, but it is for beginners, so it doesn't have Reading/Writing process memory.

I mean like. When I call the function. What do I type for each of those?

Last edited by Sour; 01-18-2010 at 12:44 PM.
Sour is offline   Reply With Quote
Old 01-18-2010, 05:37 PM   #9
Beginner Hacker
Feedback Score: 0 reviews
 
KittyKittyBoy17's Avatar
 
Join Date: Sep 2009
Posts: 139
Thanks: 1
Thanked 22 Times in 17 Posts
Default Re: [C#]Getting Address value?

The first line looks like you import the kernel32.dll.
static is like a constant value except that it can be changed. For example you run a function with a static variable declared in it. Instead of that variable being set to 0 every time you call the function, it will retain its value.
extern means that you call it from another header or source file. An example would be you declared a value call global in header1.h and you want to use it again, you would use the extern keyword in header2.h.
WriteProcessMemory(...) is the function and within its ()'s you have it's parameters. The bool infront of this function is the return value. It will return true if it was successful and false if it failed to write the memory.
IntPtr hProcess is the first parameter. This holds a HANDLE value to a process you want to write memory to.
IntPtr lpBaseAddress is the second parameter. This holds a DWORD value to the address in the process you want to write memory to. An exmaple would be in Minesweeper the address for the height is 0x01005334 or (something like that).
byte [] lpBuffer is the array of bytes you want to write to the address. If you want to write the integer 7 to an address you would use 0x11 (HEX value).
uint nSize is the size of bytes you want to overwrite in the address. It is usually the size of the number of bytes you want to write.
out int lpNumberOfBytesWritten is the number of cytes that this functio nwas able to write in that address.

You might want to use GetLastError() if WriteProcessMemory() returns false.

Normally I would tell you to look it up on the MSDN Library, but today I'm in a good mood.
KittyKittyBoy17 is offline   Reply With Quote
The Following User Says Thank You to KittyKittyBoy17 For This Useful Post:
Sour (01-18-2010)
Old 01-18-2010, 08:08 PM   #10
Newbie
Feedback Score: 0 reviews
 
Sour's Avatar
 
Join Date: Aug 2009
Posts: 37
Thanks: 3
Thanked 1 Time in 1 Post
Default Re: [C#]Getting Address value?

Originally Posted by KittyKittyBoy17 View Post
The first line looks like you import the kernel32.dll.
static is like a constant value except that it can be changed. For example you run a function with a static variable declared in it. Instead of that variable being set to 0 every time you call the function, it will retain its value.
extern means that you call it from another header or source file. An example would be you declared a value call global in header1.h and you want to use it again, you would use the extern keyword in header2.h.
WriteProcessMemory(...) is the function and within its ()'s you have it's parameters. The bool infront of this function is the return value. It will return true if it was successful and false if it failed to write the memory.
IntPtr hProcess is the first parameter. This holds a HANDLE value to a process you want to write memory to.
IntPtr lpBaseAddress is the second parameter. This holds a DWORD value to the address in the process you want to write memory to. An exmaple would be in Minesweeper the address for the height is 0x01005334 or (something like that).
byte [] lpBuffer is the array of bytes you want to write to the address. If you want to write the integer 7 to an address you would use 0x11 (HEX value).
uint nSize is the size of bytes you want to overwrite in the address. It is usually the size of the number of bytes you want to write.
out int lpNumberOfBytesWritten is the number of cytes that this functio nwas able to write in that address.

You might want to use GetLastError() if WriteProcessMemory() returns false.

Normally I would tell you to look it up on the MSDN Library, but today I'm in a good mood.
Now I can finally do something with it...That is if I don't have to reformat my computer due to a keylogger...

[Thanked]
Sour is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads for: [C#]Getting Address value?
Thread Thread Starter Forum Replies Last Post
S > nexon@hotmail.com Wronk Account Sales 23 01-17-2010 11:32 PM
Does anyone have GMS 0.80 address chelvan Global Maple Story Hacks Discussion 0 12-25-2009 02:09 PM
CA IP address otter2208 Combat Arms Hacks Discussion 1 11-12-2009 05:25 PM
[REQUEST] Address wargician Global Maple Story Hacks Discussion 3 08-27-2009 10:27 PM
Put this in address bar Darksparklen SpamZilla 11 08-04-2009 04:33 PM


GameKiller.net is not responsible for any content in any posting made by users on the site.