This commit is contained in:
2021-10-12 16:20:31 +02:00
commit d49adb8f22
2 changed files with 136 additions and 0 deletions

14
del-wg.sh Normal file
View File

@@ -0,0 +1,14 @@
#! /usr/bin/env bash
if [ $# -ne 1 ]; then
echo "[!!] I (just) need the base64 pubkey of the target client"
exit 1
fi
# Suppression du pair
wg set wg0 peer $1 remove
# Enregistrement de la modification
wg-quick save wg0
# Suppression de sa config
echo "[++] Peer has been removed (if it really existed)"
echo "[++] Key was : $1"