Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
a utility that generates 12-digit mac addresses; either the NIC portion or full 12-digit MAC.
the optional -f
argument will return a random 12-digit MAC address that can be identified by the locally administrated address (LAA) format. This means you will always see x2
, x6
, xA
, or xE
at the beginning of a MAC address generated by randmac.
to install with pip:
pip install randmac
Python >3.2 required.
Supported MAC address formats:
where M
stands for the manufacturer or vendor, and S
stands for the NIC specific portion.
you can from randmac import RandMac
and use it like RandMac()
.
if you wish to change the mac address format. provide a sample mac so randmac
knows what the output format should be.
you can from randmac import RandMac
and use it like RandMac("0000.0000.0000")
.
from a terminal (if the the console scripts entry point randmac
is in your path and executable) you can use randmac
to get a generate a new 12-digit LAA address, or randmac 00:00:00:00:00:00 -p
to generate a MAC with the same OUI, but a different NIC portion.
>>> from randmac import RandMac
>>> RandMac()
'a6:9b:6b:8e:b3:42'
>>> RandMac("00:00:00:00:00:00", True)
'00:00:00:3f:8a:06'
>>> RandMac("0000:0000:0000", True)
'0000007ce662'
>>> RandMac("0000:0000:0000")
'06eb4584d1e3'
or
> randmac
fa:bf:7c:5d:65:3e
> randmac 00-00-00-00-00-00 -p
00-00-00-dd-5f-16
license can be found here.
FAQs
a random 12-digit mac address generator
We found that randmac demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.