From d78bca234a4c7c7518fe16c24543ab208039e428 Mon Sep 17 00:00:00 2001 From: Lucas Parsy Date: Thu, 1 Feb 2024 10:56:49 +0000 Subject: [PATCH] copy vpn ip when clicking on its icon in xfce taskbar relies on xclip , updated tooltip to quickly give usage of the feature. I'm doing the OSCP and I need to copy my vpn ip every 5 minutes, I think it would be useful to other pentesters. --- share/kali-themes/xfce4-panel-genmon-vpnip.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/share/kali-themes/xfce4-panel-genmon-vpnip.sh b/share/kali-themes/xfce4-panel-genmon-vpnip.sh index e56c870a..198d4f84 100755 --- a/share/kali-themes/xfce4-panel-genmon-vpnip.sh +++ b/share/kali-themes/xfce4-panel-genmon-vpnip.sh @@ -6,8 +6,13 @@ ip="$(ip a s "${interface}" 2>/dev/null \ if [ "${ip}" != "" ]; then printf "network-vpn-symbolic" + printf "bash -c 'printf ${ip} | xclip -selection clipboard'" printf "${ip}" - printf "VPN IP" + if command -v xclip; then + printf "VPN IP (click icon to copy)" + else + printf "VPN IP (install xclip to copy to clipboard)" + fi else printf "" fi