Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/defgsus/fritztrack
Owning the Fritz!Box with Django
https://github.com/defgsus/fritztrack
fritzbox logfile surveillance traffic-monitoring
Last synced: 23 days ago
JSON representation
Owning the Fritz!Box with Django
- Host: GitHub
- URL: https://github.com/defgsus/fritztrack
- Owner: defgsus
- License: mit
- Created: 2017-11-28T13:46:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-31T06:57:40.000Z (about 7 years ago)
- Last Synced: 2024-10-10T15:55:44.215Z (3 months ago)
- Topics: fritzbox, logfile, surveillance, traffic-monitoring
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Owning the Fritz!Box with Django
Simple Django project to frequently collect data
from the FritzBox router and store to DBUses selenium with PhantomJS for the web interface,
fritzconnection for the AVM tr-064 soap interface
and django-kronos for the cron-job integrationDjango Admin is used to browse the data.
## Dependencies
- Python 2.7, Django 1.11, fritzconnection 0.6.5
- [phantomjs webdriver binary](http://phantomjs.org/download)
- tshark and pyshark (for basic analysis of captured packets)
- `gcc libxml2-dev libxslt-dev libpython-dev tshark`
- tested with Fritz!Box 7412, 7490, Fritz!OS 6.90 (**german**)
- The scraping of the web interface depends on german language at some places## How to run
```bash
./manage.py installtasks
```
to install the `fritz_worker` cronjob,or manually
```bash
./manage.py runtask fritz_worker # to run all
./manage.py fritz_get_logs # get log files
./manage.py fritz_get_connected # get connected devices
./manage.py fritz_capture [seconds] # capture packets
```### What it does
At defined intervals (see `fritzlog/cron.py`),
- It captures the log entries from the web interface
- Stores the currently connected WLAN devices (with signal strength)
- Captures a few seconds of the IP-traffic and dumps it to diskYes, this is evil. Please make sure you have the right mindset before use.