Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ generate a random MAC?
#5
Bios Serial Spoofer

File: ./indra/newview/llmachineid.cpp
Code:
Code:
S32 LLMachineID::init()

{

    size_t len = sizeof(static_unique_id);

    memset(static_unique_id, 0, len);

    S32 ret_code = 0;



    unsigned char * staticPtr = (unsigned char *)(&static_unique_id[0]);

    ret_code = LLUUID::getNodeID(staticPtr);

    has_static_unique_id = true;



    LL_INFOS("AppInit") << "UniqueID: 0x";



    // Code between here and LL_ENDL is not executed unless the LL_DEBUGS

    // actually produces output

    for (size_t i = 0; i < len; ++i)

    {

        // Copy each char to unsigned int to hexify. Sending an unsigned

        // char to a std::ostream tries to represent it as a char, not

        // what we want here.

        unsigned byte = static_unique_id[i];

        LL_CONT << std::hex << std::setw(2) << std::setfill('0') << byte;

    }

    // Reset default output formatting to avoid nasty surprises!

    LL_CONT << std::dec << std::setw(0) << std::setfill(' ') << LL_ENDL;



    return ret_code;

}

It seems the Windows viewer uses BIOS Serial number instead of the MAC Address, replace S32 LLMachineID::init() with this code, to eliminate the BIOS checking functionality. So I'm adding this code besides the Mac Address Spoofer and Volume Serial Spoofer.
Reply


Messages In This Thread
C++ generate a random MAC? - by .Flagg. - 10-24-2015, 02:47 PM
RE: C++ generate a random MAC? - by Gina_43 - 10-25-2015, 01:18 AM
RE: C++ generate a random MAC? - by .Flagg. - 10-25-2015, 09:40 PM
RE: C++ generate a random MAC? - by jagiwig920 - 09-28-2020, 06:50 AM
RE: C++ generate a random MAC? - by jagiwig920 - 10-10-2020, 04:47 PM



Users browsing this thread: 1 Guest(s)