Skip to content

Instantly share code, notes, and snippets.

View KptCheeseWhiz's full-sized avatar

Vincent Laferrière KptCheeseWhiz

View GitHub Profile
@KptCheeseWhiz
KptCheeseWhiz / dns-interceptor.sh
Created September 29, 2022 18:46
Intercept DNS requests with ARP spoofing and iptables using the package dsniff on Ubuntu
#!/bin/bash
if [ "$#" -lt 3 ]; then
echo "$0 [new_dns_ip] [gateway_ip] ...victim_ips" 1>&2
exit 0
fi
if [ "$UID" -ne 0 ]; then
echo "Running the script as root"
sudo "$0" "$@"

Keybase proof

I hereby claim:

  • I am kptcheesewhiz on github.
  • I am kptcheesewhiz (https://keybase.io/kptcheesewhiz) on keybase.
  • I have a public key ASClTZRnd5ClZOj8xm45CkpUTv-o66cJgrZQz9rZx0WNcAo

To claim this, I am signing this object: