HWID decoding in C++

Issues related to VMProtect
seriousblank
Posts: 1
Joined: Wed Jul 20, 2016 9:46 am

HWID decoding in C++

Postby seriousblank » Wed Jul 20, 2016 10:00 am

Hi,

I'm trying to decode the HWID in C++ but with no luck. Is there an example for that in C++? Should it be decoded as UTF-8 or ISO-8859-1? Are there any modifications after decoding?

I have read all the topics and replies I could find on this forum. I also tried this website https://helloacm.com/decode-hardware-id/


My HWIDs :
aDBUvGX+SZeXe0ZRtjUGQTpD2jk=;
aDBUvGX+SZeXe0ZRkrOD2g==;

Thanks

Admin
Site Admin
Posts: 1473
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: HWID decoding in C++

Postby Admin » Thu Jul 21, 2016 5:40 am

Code: Select all

      std::string hwid_str = "aDBUvGX+SZeXe0ZRtjUGQTpD2jk=";
      size_t len = hwid_str.size();
      uint8_t *hwid = new uint8_t[len];
      Base64Decodehwid_str.c_str(), hwid_str.size(), hwid, len);
      for (size_t i = 0; i < len; i += 4) {
         uint32_t value = *reinterpret_cast<uint32_t *>(&hwid[i]);
         uint32_t id = value & ~3;
         switch (value & 3) {
         case 0:
            printf("CPU: %X\n", id);
            break;
         case 1:
            printf("Host: %X\n", id);
            break;
         case 2:
            printf("Ethernet: %X\n", id);
            break;
         case 3:
            printf("HDD: %X\n", id);
            break;
         }
      }
      delete [] hwid;

drlai
Posts: 63
Joined: Tue Sep 27, 2011 2:29 pm

Re: HWID decoding in C++

Postby drlai » Sat Aug 06, 2016 4:43 pm

Thanks for this.
Website API Fixed.

seriousblank wrote:Hi,

I'm trying to decode the HWID in C++ but with no luck. Is there an example for that in C++? Should it be decoded as UTF-8 or ISO-8859-1? Are there any modifications after decoding?

I have read all the topics and replies I could find on this forum. I also tried this website https://helloacm.com/decode-hardware-id/


My HWIDs :
aDBUvGX+SZeXe0ZRtjUGQTpD2jk=;
aDBUvGX+SZeXe0ZRkrOD2g==;

Thanks

google000
Posts: 5
Joined: Sat Jan 10, 2015 9:38 am

Re: HWID decoding in C++

Postby google000 » Tue Aug 23, 2016 9:25 am

could you post hwid decoding in Delphi (im using delphi 7) .. thanks..