项目作者: fosstp

项目描述 :
抓 MAC address 和電腦名稱 丟資料庫的小 script
高级语言: Python
项目地址: git://github.com/fosstp/getmac.git
创建时间: 2016-09-09T05:52:10Z
项目社区:https://github.com/fosstp/getmac

开源协议:

下载


getmac

抓 MAC address 和電腦名稱 丟資料庫的小 script

測試環境 windows 10 64bit enterprise with winpython 3.5

known issue

不支援多張網卡或是含有虛擬網卡

換句話說如果系統內有多張網卡就有可能抓錯

installation

  • Server

    • 準備一台 mysql server
    • 開一個資料庫 匯入 net_data.sql
    • 設定 getmac.py
    1. db_host = '' # mysql server hostname or IP
    2. db_name = '' # database name
    3. db_user = '' # database user name
    4. db_pwd = '' # database password
  • client

    • 安裝 python 3.x ( winpython )
    • 執行 WinPython Control Panel.exe 右上 Advanced / Register distribution…
    • 環境變數 path 加上 winpython安裝位置\scripts

usage

執行 getmac.py 搞定收工

License

WTFPL 2.0

  1. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  2. Version 2, December 2004
  3. Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
  4. Everyone is permitted to copy and distribute verbatim or modified
  5. copies of this license document, and changing it is allowed as long
  6. as the name is changed.
  7. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  8. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  9. 0. You just DO WHAT THE FUCK YOU WANT TO.