-
Notifications
You must be signed in to change notification settings - Fork 87
Home
On Debian based systems (raspberry pi, ubuntu) make sure you've got python-netaddr
, python-scapy
and tcpdump
installed.
By default you won't see anything on the screen and it will drop things into a file called probemon.log
.
If you want to you can use logrotate
on this (and get compression). It's not very hard, I swear.
Go to /etc/logrotate.d
and make a file probemon
with something like the following:
/var/log/probemon.log {
rotate 60
daily
dateext
compress
missingok
notifempty
}
Now to start it on boot, don't worry about writing your own init.d, that's a pain. Use this tool which makes life easy.
In my case I go to the source directory and added this script, which I call startup.sh
#!/bin/sh
cd /var/log
exec /home/pi/probemon/probemon.py -i wlan1
Now I run the new-service.sh
:
Service name : probemon
Description : probemon
Command : /home/pi/probemon/startup.sh
User : root
It will error out a bunch of things and make things look terrible ... don't worry ... this is the easiest way. I know I know, the world is terrible.
# cd /etc/init.d
# ls -ltr
...
-rwx--x--x 1 root root 1875 Dec 7 08:58 filean4mZB
# mv filean4mZB probemon
# update-rc.d probemon defaults
Now we have a minimal thing going for us. Really? really.