From c520d3006d02e7fe02a6fbee6294781ac6c9b2d0 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 12 Sep 2017 01:34:17 +0200 Subject: [PATCH] root-fix --- arpspoof.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arpspoof.sh b/arpspoof.sh index 89749c3..9518318 100755 --- a/arpspoof.sh +++ b/arpspoof.sh @@ -2,6 +2,11 @@ set -ex +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" 1>&2 + exit 1 +fi + read -p "Wie heisst die Schnittstelle? [enp30s0\eth0] : " modul read -p "Wie heisst die IP? : " ip