Skip to content

Python script to execute all getmac methods to find the proper method to get the MAC of any operating system #94

@emadmahdi

Description

@emadmahdi

Hi,
I recently got access to an android 12 device that was not identified by your "getmac.py" package .. so i created a python script "macproblem.py" using all your METHODS.get .. the script will execute all your 27 methods using a list of "args" like 'eth0', 'Ethernet', 'Wi-Fi' .. The script will log the full output of each executed command .. The script will also logs all the errors.

I only added one return line "return text" to your function "_search()"

You can use this script with any device that you want to add support for it in your getmac package .. The full script and the modified getmac.py is available in this link:

script: . . . https://muslimruler.netlify.app/public/macproblem
output sample: . . . https://nopaste.net/output_sample.txt

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions