joshschmelzle/manuf2 — reverse-engineered prompt

Reverse engineered prompt

Build me a small Python package and terminal tool that can take a MAC address and tell me the vendor name from Wireshark's OUI manuf database. I want to be able to use it in code and from the terminal. In code, I should be able to create a parser object and ask for the short vendor name, the long vendor name, any comment, or all of it together. From the terminal, I want to pass a MAC address and get the same result back, with options to use a custom manuf file or refresh the bundled database from Wireshark.

Please make the parser accurate for the weird cases in the manuf file, especially entries with netmasks and unusual ranges, not just simple first three byte matches. It should load the file into memory for fast lookups after startup. Include a few tests for the tricky examples and basic packaging so it can be installed and run easily. Look up current Wireshark data docs online if you need to.

Want more depth? Deep Reverse