mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-20 01:13:58 +00:00
feature: pcapConverter more MACs decoded
This commit is contained in:
parent
d017ca65e5
commit
a23e54d2f5
1 changed files with 6 additions and 2 deletions
|
@ -30,14 +30,14 @@ from helpers import combineValueAndMultiplier
|
||||||
import json
|
import json
|
||||||
|
|
||||||
# The path where the script will search for pcap files:
|
# The path where the script will search for pcap files:
|
||||||
directory = '../temp'
|
directory = '../temp/to_decode'
|
||||||
|
|
||||||
# stop the evaluation after this number of packets. Set to zero to have no limit.
|
# stop the evaluation after this number of packets. Set to zero to have no limit.
|
||||||
nLimitNumberOfPackets = 1000
|
nLimitNumberOfPackets = 1000
|
||||||
|
|
||||||
|
|
||||||
def getManufacturerFromMAC(strMAC):
|
def getManufacturerFromMAC(strMAC):
|
||||||
# Examples based on https://macvendors.com/, and own experience
|
# Examples based on https://macvendors.com/, and https://www.ipchecktool.com/tool/macfinder and own experience
|
||||||
if (strMAC[0:5]=="ec:a2"):
|
if (strMAC[0:5]=="ec:a2"):
|
||||||
return "Kempower"
|
return "Kempower"
|
||||||
if (strMAC[0:8]=="dc:44:27"):
|
if (strMAC[0:8]=="dc:44:27"):
|
||||||
|
@ -48,6 +48,10 @@ def getManufacturerFromMAC(strMAC):
|
||||||
return "Alpitronic"
|
return "Alpitronic"
|
||||||
if (strMAC[0:8]=="e8:eb:1b"):
|
if (strMAC[0:8]=="e8:eb:1b"):
|
||||||
return "Microchip (maybe ABB)"
|
return "Microchip (maybe ABB)"
|
||||||
|
if (strMAC[0:8]=="68:27:19"):
|
||||||
|
return "Microchip (maybe ABB)"
|
||||||
|
if (strMAC[0:8]=="80:1f:12"):
|
||||||
|
return "Microchip (maybe Compleo)"
|
||||||
if (strMAC[0:5]=="18:d7"):
|
if (strMAC[0:5]=="18:d7"):
|
||||||
return "(maybe Siemens)"
|
return "(maybe Siemens)"
|
||||||
return "(unknown vendor)"
|
return "(unknown vendor)"
|
||||||
|
|
Loading…
Reference in a new issue