# Parrot OS customisation

## VPNpanel.sh&#x20;

```
#!/bin/bash
htbip=$(ip addr | grep tun0 | grep inet | grep 10. | tr -s " " | cut -d " " -f 3 | cut -d "/" -f 1)
lab=$(cat /etc/openvpn/*.conf | grep "remote " | cut -d " " -f 2 | cut -d "." -f 1 | cut -d "-" -f 2-)

if [[ $htbip == *"10."* ]]
then
   gwip=$(ip route | grep tun0 | grep via | cut -d " " -f 3)
   ping=$(ping -c 1 $gwip -W 1 | sed '$!d;s|.*/\([0-9.]*\)/.*|\1|' | cut -c1-4)
   echo "VPN: $lab ($htbip) [$ping ms]"
else
   echo "VPN: Disconnected"
fi

```

![](https://3300028074-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXru0ZdN4BARn8f_tN0%2F-MeRLiTgdliCmYBTJ3M6%2F-MeRZSlML2MRYeK3-rAL%2Fimage.png?alt=media\&token=0e25f90e-775b-454a-853c-1af3dec4248a)
