It is a python module which can help you to change the current mac address of a certain interface, generate a mac address, get the current mac address and also reset the current mac address to the original one.
Project description
macops
It is a python module which can help you to change the current mac address of a certain interface, generate a mac address, get the current mac address and also reset the current mac address to the original one. Developed by Shounak Kulkarni (c) 2021
Not supported in Python 2.x
Installation
pip install macops
Functions
Get Current Mac
get_current_mac
: As it's name describes itself, this function will get the current mac address.
How this function should be used:-
import MacOps
current_mac = MacOps.get_current_mac()
print(current_mac)
Generate Mac
generate_mac
: This function generates a random mac address.
How this function should be used:-
import MacOps
new_mac = MacOps.generate_mac()
print(new_mac)
Change Mac
change_mac
: This will change the mac address to the generated mac address.
Note: This function can only be performed in unix/linux systems.
How this function should be used:-
import MacOps
MacOps.change_mac()
No parameter is required as it takes input fom the user and the new mac address is automatically generated.
Reset to Original Mac
reset_original_mac
: This function will reset the permanent mac address.
Note: This function can only be performed in unix/linux systems.
How this function should be used:-
import MacOps
MacOps.reset_original_mac()
License
Github repository: macops:Github
You can find the license here: License:macops
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file macops-3.2.5.tar.gz
.
File metadata
- Download URL: macops-3.2.5.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6267dd579bf703d42a63a4009d0ea37d004845e245aaebf263e24b2d8011df8e |
|
MD5 | bf6a1871bc6787675b457a7ea0b6d901 |
|
BLAKE2b-256 | dfb9d236cf6fbbddd956d44df941bd90458b76e82ee972f490a12bb9d2eba9d4 |
File details
Details for the file macops-3.2.5-py3-none-any.whl
.
File metadata
- Download URL: macops-3.2.5-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 665c5e10c6dfcf90358929f5340874e7dafd0705603779838b604480a00abc1f |
|
MD5 | ad0e5ccacb4a969686e90231515b1d72 |
|
BLAKE2b-256 | 54118f90bb715c2dd69adb70e0e2937a3b3b0f7bddd0703830611ab98443de84 |