IppSec / parrot-build

Ansible Scripts to Build Out My Parrot
176 stars 93 forks source link

VPN IP don't show in prompt #6

Open XimoBaeza opened 1 year ago

XimoBaeza commented 1 year ago

Hello ipsec! In my vpn connection to hackthebox the ip of the vpn is not shown in the prompt.

This command does not return anything ps -ef | grep -i 'openvpn [eu|au|us|sg]'|tail -1| rev| awk '{print $1}'|rev |sed 's/\..*$//g'

If I change it to cat ~/htb/lab_ktulu.ovpn | grep "remote" | cut -d " " -f 2 | cut -d "." -f 1 | cut -d "-" -f 2- works fine for me but when I disconnect from the vpn it does not show me the ip of ens33.

Greetings and thanks.

Before image After image

image

IppSec commented 1 year ago

I'll figure out a way to improve it. I'm guessing the issue is the vpn file name, typically I name my VPN's <$server>.ovpn. I'm guessing if you renamed your vpn file to be: eu-vip-28.ovpn then it would work.

XimoBaeza commented 1 year ago

Renaming the vpn file works correctly.

Thank you so much!