Coder Social home page Coder Social logo

daps's Introduction

D-link DPH-150SE Auto Provisioning

環境需求

  • python 3
  • selenium (如果有需要用機器人)

建立資料庫

請先依照 daps.sqlite.schema 建立資料庫 daps.db

sqlite3 daps.db < daps.sqlite.schema

這個資料庫裡面只有一個 voip 資料表,包含以下欄位

欄位名稱 意義 範例
mac 話機的網卡卡號,連續大寫 AABBCCDDEEFF
ip 話機的固定 IP 192.168.123.123
sip01 第一個 sip 伺服器 sip.kerker.edu.tw
usr01 第一個 sip 帳號 99101
pwd01 第一個 sip 密碼 99101
sip02 第二個 sip 伺服器 192.168.8.8
usr02 第二個 sip 帳號 101
pwd02 第二個 sip 密碼 101pwd

如需使用 csv 匯入可依照 daps.sample.csv 範例另存為 daps.csv 然後執行

sqlite3 daps.db < daps.import.sql

建立話機 profile

修改 daps.py

APS = '設定為你 aps server 位置'
NETMASK = '設定話機的網路遮罩'
GATEWAY = '設定話機的網路閘道'
DNS = '設定話機的 DNS server'
# 話機 IP 則抓取資料庫的對應

使用方式

python daps.py

然後就會生出一大堆 .txt

把這堆丟去 APS server ( 其實就是一台 web server ) 上讓話機上來可以抓到自己的 profile 就好

大量修改話機 APS

dbot.py 為一個 python 機器人

作用就是依照 daps.db 內的 IP 位置,開瀏覽器幫你一台一台修改 APS 然後重開機

使用方法

python dbot.py

daps's People

Contributors

alexw867 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.