为arpwatch获取和生成ethercodes数据
项目描述
摘要
为arpwatch获取和生成ethercodes数据。
描述
从IEEE.org获取当前IEEE MA-L分配文件(oui.csv),并为arpwatch生成ethercodes.dat。
仅获取oui.csv,如果时间戳较新(除非指定了--force)。类似地,如果时间戳不匹配,则仅生成ethercodes.dat(再次,除非指定了--force)。使用选项--keep从现有的oui.csv(重新)生成ethercodes.dat。
注意
oui.csv的时间戳在2秒范围内波动(!). 因此,通过考虑时间差容差因子来补偿波动。
用法
Usage: fetch-ethercodes.py [-hVvfkt][-T sec][-O ouifile][-o outfile][-p spec]
       -h, --help           this message
       -V, --version        print version and exit
       -v, --verbose        verbose mode (cumulative)
       -f, --force          force operation
       -k, --keep           keep existing http://standards-oui.ieee.org/oui/oui.csv
       -t, --timestamp      print timestamp
       -T, --deltat sec     tolerance in timestamp comparison
                            (default: 2.5 sec.)
       -O, --ouifile file   IEEE.org host
                            (default: http://standards-oui.ieee.org/oui/oui.csv)
       -o, --outfile file   arpwatch ethercodes
                            (default: ethercodes.dat)
       -p, --patch spec     patch specfile with updated timestamp
示例运行
$ fetch-ethercodes.py -v
check http://standards-oui.ieee.org/oui/oui.csv
oui file size: 2264884
oui file date: Wed, 26 Sep 2018 08:06:13 GMT
no local file oui.csv found
fetch http://standards-oui.ieee.org/oui/oui.csv
no local file ethercodes.dat found
parse oui.csv
value 0:1:c8 exists already: "THOMAS CONRAD CORP.", "CONRAD CORP."
value 8:0:30 exists already: "NETWORK RESEARCH CORPORATION", "ROYAL MELBOURNE INST OF TECH"
value 8:0:30 exists already: "NETWORK RESEARCH CORPORATION", "CERN"
generate ethercodes.dat with 25433 entries
successful
timestamp: 20180926_080613
提供了一个额外的工具 query-ethercodes.py,允许查询ethercodes.dat数据库。
项目详情
    
       关闭
    
      
        
    
    
  
fetch-ethercodes-0.5.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 7107b94d80991b2940bd904d8f33c8419c222c7f08b1b1748be11b60e807d051 | |
| MD5 | 7835930575518af427c8423fed951754 | |
| BLAKE2b-256 | 546d0b8076a49aa3f4187264c76f9c9237823e1fcbc87a6b8ee683193edc96a5 | 
    
       关闭
    
      
        
    
    
  
fetch_ethercodes-0.5-py2.py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 0e69d429da37047f1e420befb1a89209e9b9a7ceb21f5e4fd6e4742fce42a160 | |
| MD5 | 91e8d4d85b7d210c34df5de0617c5acd | |
| BLAKE2b-256 | 73a551403c06ae98b3410532b6a8a1b2add5b6d30f809fd9e8642cb1e7051d99 |