- 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 9 months ago. Total XP: 774 |
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 9 months ago. Total XP: 4837 |
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 9 months ago. Total XP: 774 |
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 9 months ago. Total XP: 14 |
Maybe this article will provide you with the information you are looking for - GL
|
| Specific Posted 9 months ago. Total XP: 4837 |
Yea those look like good examples. Last modified by Specific on June 27, 2009, 2:44 pm |
| TheMatrlx Posted 8 months 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 8 months ago. Total XP: 774 |
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 8 months 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 8 months 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 |
|---|---|---|
| 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 |
| December 31, 1969, 5:00 pm by | ||
| Voobly notes | Reverse Engineering | November 21, 2009, 1:46 am by RANCID |
| Editing Memory | Visual Basic | September 4, 2009, 4:09 pm by iPromise |

