-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rafay Ghafoor
committed
Aug 8, 2017
1 parent
3153472
commit d8cc64b
Showing
5 changed files
with
105 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,74 @@ | ||
# PTCL-Router-Configure: | ||
# PTCL-Router: | ||
|
||
A PTCL-Router API. | ||
|
||
# Current-Features: | ||
|
||
- Obtain station information, showing their hostnames alongside for better readability (devices currently connected to the router). | ||
- Obtain DHCP information. | ||
- Block and unblock devices using their mac addresses. | ||
- Block and unblock devices using their predefined aliases. | ||
- Reboot router. | ||
- Over-ride hostnames associated to the mac address with custom hostnames. | ||
- Display blocked devices. | ||
- Added two modes for blocking users ( CLI-MODE and SILENT-MODE (Default) ). | ||
|
||
# Usage: | ||
|
||
**Shows devices connected to the router.** | ||
|
||
```python | ||
>>> python ptcl.py | ||
``` | ||
|
||
**Shows currently active devices and provides an option to block device from the display.** | ||
|
||
```python | ||
>>> python ptcl.py -b | ||
``` | ||
|
||
**Shows DHCP info for all devices connected in a day.** | ||
|
||
```python | ||
>>> python ptcl.py -sd | ||
``` | ||
|
||
**Reboots the router.** | ||
|
||
```python | ||
>>> python ptcl.py -r | ||
``` | ||
|
||
# TODO: | ||
|
||
- [ ] Writing documentation for API usage. | ||
- [ ] Organizing TODO in sections. | ||
- [ ] Port-Forwarding from command line. | ||
- [ ] Parsing router logs. | ||
- [ ] Obtaining Pin-Code of the router and changing it. | ||
- [ ] Displaying current password of the SSID. | ||
- [ ] Changin router username and password from the command-line. | ||
- [ ] Changing SSID-Name. | ||
- [ ] Adding a method to change router password. | ||
- [ ] Option to change frequency 2.4 Ghz or 5 Ghz. | ||
- [ ] Option to change router transmission power. | ||
- [ ] Improving display for blocked devices. | ||
- [ ] Exclude android devices from station info and dhcp info. | ||
- [ ] Time restriction for user (by specifying or choosing from station info) device mac address or hostname. | ||
- [ ] Adding URL to block unnecessary use for a website, also time limit for a site usage. | ||
- [ ] Monitor devices connection info i.e., when they connect to the router and disconnect. Also devices uptime of the day. | ||
- [ ] Block devices who remain connected to the router for x time (6 hours). Unblock them after 6 hours. | ||
- [ ] Searching suspected users in the station info (Currently Active Devices) when speed is slow. | ||
- [ ] Getting device connection info in a nice CSV file. | ||
- [ ] Uploading CSV on a cloud everyday. | ||
- [ ] Add CLI MODE for unblocking devices | ||
- [X] Setting up custom hostname for specific device (mac address). | ||
- [X] Optimize Regular Expressions. | ||
- [X] CLI MODE and SILENT MODE for blocking devices. | ||
- [X] Testing on other routers from the same vendor. | ||
- [X] Reboot router from script. | ||
- [X] Display number of active devices. | ||
|
||
Allows to configure and access options of PTCL router from commandline. Currently allows to get station info, dhcp info, block devices by mac addresses and unblock them. | ||
|
||
|
||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters