Setting zshrc file
Making Temp directory
# Making a temp directory for working
alias usetemp='[ ! -d "/tmp/temp_workspace" ] && mkdir -p "/tmp/temp_workspace"; cd /tmp/temp_workspace'
Setting IPs
# ip Setting.
# export VM1=172.16.244.10
# Check if tun0 interface exists before setting IP_KALI
if ifconfig tun0 &>/dev/null; then
export IP_KALI=$(ifconfig tun0 | grep 'inet ' | awk '{print $2}')
else
export IP_KALI="Not connected to VPN"
fi
# If vpn is connected then it will grep and ip in IP_KALI variable.
# For all the IPs, You have to set the value of 'x' first and then export all the variables.
x=184
export web02=192.168.$x.247
export external=192.168.$x.248
export legacy=192.168.$x.249
export mail=192.168.$x.189Making temp environment
Making Help_me function
Setting up the server.

Getting shell command

Last updated