Skip to content

Instantly share code, notes, and snippets.

View jcsgasche's full-sized avatar
Busy focusing on fun code

Joshua Gasche jcsgasche

Busy focusing on fun code
  • Lucerne, Switzerland
  • 11:16 (UTC +02:00)
View GitHub Profile
@jcsgasche
jcsgasche / kill-pulse-vpn.sh
Created April 26, 2024 13:24 — forked from vaughany/kill-pulse-vpn.sh
Small script to kill the Pulse VPN service and UI, 'cos they seem to hang sometimes, for no reason.
#!/bin/bash
# Finds and kills the Pulse Secure VPN background service and UI.
if [[ $EUID -ne 0 ]]; then
echo -e "\e[1;41mThis script must be run as root.\e[0m"
exit 1
fi
IDS=$(ps -ax | grep -i 'pulse[ui|svc]' | tr -s ' ' | sed 's/^ *//g' | cut -d ' ' -f 1)