Skip to content

feat: Add RAM, MAC, ports, SMBIOS collection and bug fixes - #52

Open
SIDIKICONDE wants to merge 1 commit into
lzhoang2801:mainfrom
SIDIKICONDE:feature/collecte-complete
Open

feat: Add RAM, MAC, ports, SMBIOS collection and bug fixes#52
SIDIKICONDE wants to merge 1 commit into
lzhoang2801:mainfrom
SIDIKICONDE:feature/collecte-complete

Conversation

@SIDIKICONDE

Copy link
Copy Markdown

Summary

This PR extends Hardware-Sniffer with more hardware data collection and fixes several bugs. It is aimed at improving Hackintosh/OpenCore workflows.

New features

RAM collection

  • Memory modules per slot (capacity, speed, manufacturer, type)
  • Part numbers
  • Total RAM

Network

  • MAC address for each adapter (Ethernet, Wi‑Fi)

BIOS / SMBIOS

  • Serial number
  • System UUID

Ports

  • USB Ports: All USB devices (controllers, hubs, peripherals) with PCI Path and ACPI Path for USB mapping
  • Serial Ports: COM ports
  • Parallel Ports: LPT ports

Bug fixes

  • motherboard(): computer_system could be undefined when the loop was empty → NameError fixed
  • get_latest_acpidump(): Dead code removed; now tries GitHub API first, then falls back to a hardcoded URL
  • Exception handling: Replaced bare except: with more specific exceptions (AttributeError, KeyError, etc.)

Platform support

  • Windows: WMI-based collection
  • Linux: /proc, dmidecode, /sys-based collection

Files changed

  • Scripts/platforms/windows.py – New collectors and fixes
  • Scripts/platforms/linux.py – Same features for Linux
  • HardwareSniffer.py – Summary view updates
  • Scripts/run.py, Scripts/github.py, Scripts/utils.py, Scripts/device_locator.py – Exception handling improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant