Skip to content

Instantly share code, notes, and snippets.

@rufflabs
Created November 17, 2021 14:43
Show Gist options
  • Save rufflabs/886c588921928f2f08f0d5cdefa8536a to your computer and use it in GitHub Desktop.
Save rufflabs/886c588921928f2f08f0d5cdefa8536a to your computer and use it in GitHub Desktop.
Add tun0 IP to top panel in Kali
1. Right click top panel and choose Add
2. Add a Generic Monitor
3. Right click the new monitor in the panel and choose Properties
4. Label as "tun0: " and enter the following for the command to run:
bash -c 'base64 -d <<< aXAgYSBzIHR1bjAgfCBncmVwICJpbmV0ICIgfCBhd2sgJ3twcmludCAkMn0nIHwgc2VkICdzL1wvLiovL2cn | bash'
This is piping the below base64 encoded command to bash. Without the base64 encoding, the pipes and parameters caused errors for me in the panel:
ip a s tun0 | grep "inet " | awk '{print $2}' | sed 's/\/.*//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment