- Zonehacks.com
- Forums
- CPP
- Get MAC address
Not logged in - Click here to login to your Account Welcome Guest!
|
Get MAC address
|
|
Author Info:
|
|
| Jordan Posted about 1 year ago. Total XP: 870 |
Wassup dudes.
Just wondering if anyone has developed this before. Thought i'd throw it in and ask anyway. I want to know a way of getting a PC's MAC address, that will work in Win 2000 to Vista/7 if at all possible?
Thanks in advance! |
| Specific Posted about 1 year ago. Total XP: 4875 |
There are several ways to get MAC-Address of adapters. You can use the function GetAdaptersInfo() to populate IP_ADAPTER_INFO structure. This is probably your best option as it will work on all versions of Windows from 95 on, and it will provide you with information of the devices too. Also there is UuidCreate which uses the MAC-Address to create a unique id. This function will only work on 9x/Me, however, UuidCreateSequential was created to do the same in Win2k and XP as the UuidCreate. NetBIOS is another solution, but requires NetBIOS to be installed on the computer and is a little more complicated. Hope this helps to lead you in the right direction. |
| Jordan Posted about 1 year ago. Total XP: 870 |
I tried some online examples of that. But i probably don't have the includes or anything working.
It just hated me, lolol |
| Rip Posted about 1 year ago. Total XP: 14 |
Maybe this article will provide you with the information you are looking for - GL
|
| Specific Posted about 1 year ago. Total XP: 4875 |
Yea those look like good examples. Last modified by Specific on June 27, 2009, 2:44 pm |
| TheMatrlx Posted about 1 year ago. Total XP: 46 |
GetAdaptorsInfo() is the method which the WGC client uses, if I recall correctly. As a downside if you're thinking of using it for any sort of ID purpose (for banning, for example) it's relatively easy to find and patch, as it is in iphlpapi.dll, which you probably wouldn't otherwise find linked. |
| Jordan Posted about 1 year ago. Total XP: 870 |
I know, its just the previous method thats being used.. is... flawed. lol
Doesn't always return the correct results, sometimes it doesn't even return anything! |
| Ksbunker Posted about 1 year ago. Total XP: 674 |
"it's relatively easy to find and patch, as it is in iphlpapi.dll, which you probably wouldn't otherwise find linked." |
| TheMatrlx Posted about 1 year ago. Total XP: 46 |
It's still simple though, assuming there's no string-hiding trickery going on. Search for "iphlpapi.dll" and stick a breakpoint on it or use IDA's cross-reference feature to see what accesses it. That should take you to where GetProcAddress() is used, and to where the address of GetAdaptorsInfo() is stored. Patch as required. |
Not logged in - Click here to login to your Account
| Topic Title | Forum | Last post Info |
|---|---|---|
| memheader.h | CPP | August 18, 2010, 12:07 am by boringwall |
| Age Of Empires Addresses | Game Hacking | June 14, 2010, 1:15 pm by razvan |
| Help deleting hacks | Game Hacking | June 6, 2010, 8:01 pm by Specific |
| Memory Scanner | Game Hacking | January 16, 2010, 1:47 am by boringwall |
| [Help] SetWindowsHookEx Dll Injection | Questions and Answers | November 20, 2009, 6:07 pm by boringwall |

