File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Python-generate_mac
22===================
33
4- Python library for Generating Ethernet MAC addresses. Can use the wireshark manuf
5- for specific vendors, and or a random, but assigned address. Will work with
6- any file formated the same as said file.
4+ Python library for working with Ethernet MAC addresses. Functions for generating
5+ transforming and testing MAC addresses.
6+
7+ Uses Wireshark's manuf, or s similarly formated file as input for specific
8+ Vendor ID(VID) bytes, for creating more
79
810Supported functions:
911
12+ Generate
13+ --------
1014** total_random()** - Procedurely generated MAC address, using random function.
1115
1216** vid_file_random(_ file_ )** - uses random line from wireshark's manuf file
@@ -18,11 +22,20 @@ specify desc, which searches description within the vendor field
1822** vid_provided(_ vid bytes_ )** - specify the VID bytes when calling the function.
1923Random device bytes will be generated.
2024
25+ Test
26+ -------
2127** list_vendors(_ file_ )** - return a python list [ ] with valid vendors
2228
2329** is_mac_address(_ mac_ )** - Takes a string, and checks if it is a valid Ethernet
2430MAC address. returns True or False(bool type)
2531
32+ Transform
33+ ---------
34+ ** get_vid_bytes(_ mac_ )** - Returns the vendor bytes(first three) from a MAC address.
35+
36+ ** another_same_vid(_ mac)** - Generates another MAC with diffrent device bytes
37+ with same vendor bytes as input
38+
2639Usage
2740-----
2841
You can’t perform that action at this time.
0 commit comments