Giter Site home page Giter Site logo

tpcli's Introduction

TPCLI

This repo is trying to build a cli for certain models of TP-LINK router.

WARNING

I'm new for bash script. And bash script is toooo tricky to learn and write. It has sooo many many tricky rules. And my cli must have some bugs with an unfriendly interaction.

So I just want to have a try for it, and so this poject was born.

You can find that it's very easy to writing these scripts using programming language, e.g., Python. I just want to learn something by writing these scripts. So I try to use only POSIX commands to implement it, instead of some programming language script such as python3 -c "xxxx".

Functions

  • Login
  • Redirect
    • Query
    • Add
    • Delete
    • Set/Edit
  • MAC-IP Bind

TODO

Redirect - Set/Edit

The POST data format of set or edit funtion is like:

{
  "firewall": {
    "redirect_8": {
      "proto": "all",
      "src_dport_start": 9022,
      "src_dport_end": 9022,
      "dest_ip": "192.168.1.100",
      "dest_port": 22
    }
  },
  "method": "set"
}

tpcli's People

Contributors

mirageturtle avatar

Watchers

 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.