Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
emadmahdi opened this issue Dec 7, 2023 · 0 comments

Comments

@emadmahdi
Copy link
Contributor

emadmahdi commented Dec 7, 2023

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.

@emadmahdi emadmahdi changed the title Python script to test MAC of any operating system Python script to check MAC of any operating system Dec 7, 2023
@emadmahdi emadmahdi changed the title Python script to check MAC of any operating system Python script to execute all getmac methods to find the MAC of any operating system Dec 7, 2023
@emadmahdi emadmahdi changed the title Python script to execute all getmac methods to find the MAC of any operating system Python script to execute all getmac methods to find the proper method for the MAC of any operating system Dec 7, 2023
@emadmahdi emadmahdi changed the title Python script to execute all getmac methods to find the proper method for the MAC of any operating system Python script to execute all getmac methods to find the proper method to get the MAC of any operating system Dec 7, 2023
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

No branches or pull requests

1 participant