Skip to content

MagmaMCNet/LibSerials

Repository files navigation

LibSerials

Open Source Library Used For Getting System Information From SMBIOS Table

Current Supported Serials:

  • HDD Serial Numbers
  • BIOS Information
  • System Information
  • Baseboard Information
  • Chassis Information
  • CPU Serial Number
  • MAC Addresses
  • HWID String
  • HWID Validation

Example Serials Using The Built in Debug UI

image

Example Usage

void main() {
    LibSerials::InitializeSerials();
    std::cout << " [!] Motherboard" << std::endl;
    std::cout << "[Manufacturer] " << LibSerials::Baseboard_Manufacturer() << std::endl;
    std::cout << "[Product]      " << LibSerials::Baseboard_Product() << std::endl;
    std::cout << "[Serial]       " << LibSerials::Baseboard_Serial() << std::endl;
    LibSerials::FreeSerials();
    std::cin.ignore();
}

Functions

Hardware Information Functions

HDD Information

  • const const char* HDD_Serials();
    • Retrieves a list of serial numbers for all detected hard disk drives.

Baseboard Information

  • const char* Baseboard_Manufacturer();
    • Returns the manufacturer of the system's baseboard.
  • const char* Baseboard_Product();
    • Returns the product name of the baseboard.
  • const char* Baseboard_Serial();
    • Returns the serial number of the baseboard.

BIOS Information

  • const char* BIOS_Vendor();
    • Returns the vendor name of the system BIOS.
  • const char* BIOS_Version();
    • Returns the version of the system BIOS.
  • const char* BIOS_Date();
    • Returns the release date of the system BIOS.

Chassis Information

  • const char* Chassis_Manufacturer();
    • Returns the manufacturer of the chassis.
  • const char* Chassis_Version();
    • Returns the version of the chassis.
  • const char* Chassis_Serial();
    • Returns the serial number of the chassis.

System Information

  • const char* System_Manufacturer();
    • Returns the manufacturer of the system.
  • const schar* System_Product();
    • Returns the product name of the system.
  • const char* System_Version();
    • Returns the version of the system.
  • const char* System_Serial();
    • Returns the serial number of the system.
  • const char* System_SKU();
    • Returns the SKU (Stock Keeping Unit) identifier of the system.
  • const char* System_Family();
    • Returns the family type of the system.
  • const char* System_UUID();
    • Returns the UUID (Universally Unique Identifier) of the system.

CPU Information

  • const const char*CPU_Product();
    • Returns the product name of the CPU.
  • const const char* CPU_Serial();
    • Returns the serial number of the CPU.

Network Information

  • const const char* const* MACAddress_List();
    • Returns a list of all detected MAC addresses.
  • const const char* MACAddress_Main();
    • Returns the primary MAC address of the system.

Contribution

Feel free to contribute to the project by submitting pull requests, reporting issues, or suggesting new features.

About

Small C++ Library For Gathering Serial Information About the System

Topics

Resources

Stars

Watchers

Forks

Languages