• Welcome to Valhalla Legends Archive.
 

A Python script that adds/removes entries to the D-Link DI-614+ MAC filter list

Started by Yoni, June 04, 2005, 10:41 AM

Previous topic - Next topic

Yoni

I wrote this to ensure LS (little sister) does not have Internet access between 23:00 and 10:00.
It talks to the router via the user-friendly HTTP configuration interface.
This script may be useful on other D-Link routers, but I have only this one so I can't tell.
Enjoy!

http://yoni.valhallalegends.com/stuff/LSKiller.py

To use, make a file in the working directory called "router.txt".
The first line of the file should contain the router admin username (by default, "admin").
The second line should contain the password, in plaintext.

Sample usage:

[18:30:09] C:\Projects\LSKiller>LSKiller.py add LSComp 00-11-2f-03-17-d8
Request sent. Router returned:
"Settings Saved"

[18:30:14] C:\Projects\LSKiller>LSKiller.py remove LSComp 00-11-2f-03-17-d8
Request sent. Router returned:
"The entry has been deleted."

[18:30:18] C:\Projects\LSKiller>LSKiller.py remove LSComp 00-11-2f-03-17-d8
The filter to remove was not found in the filter list!


Edit: Screenshot:

*evil grin*

Yegg


ColT



Yegg


Newby

That's a very good idea. Teaches her when she should be online and whatnot.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.