The parasites you love all up in your network:
$ git clone https://github.com/bninja/parasitology.git
$ cd parasitology
$ mkvirtualenv parasitology
(parasitology)$ pip install -r requirements.txt
(parasitology)$ sudo $VIRTUAL_ENV/bin/python py.test
where sudo
needed for:
- scapy and
- ip-table rules
What's going on:
$ sudo tshark -i lo -f "tcp port 8080"
Hosts:
(parasitology)$ ./hosts.py 8080
...
Parasite:
(parasitology)$ sudo iptables -I OUTPUT 1 -p tcp --tcp-flags RST RST -s 127.0.0.1 -d 127.0.0.1 --dport 8080 -j DROP
(parasitology)$ sudo $VIRTUAL_ENV/bin/python parasite.py nsat checksum-http --port 8080
(a or b) and (!b or c or !d) and (d or !e)
...
Appears to work on:
- Ubuntu 14.04
- ...