Changing Networks & Showing IP Changes Fixed To A Network
Page 1 of 1
Changing Networks & Showing IP Changes Fixed To A Network
Changing Networks & Showing IP Changes Fixed To A Network
Restart Terminal window
sudo apt-get install -y espeak
Some info i used came from
cyberciti.biz/faq/linux-list-network-interfaces-names-command
- Code:
sudo gedit .bashrc
- Code:
function show_ip(){
# ip link show
a=$(md5deep -q last_ip.txt)
echo -en "\e[92mYour IP's: \c"
echo ""
echo -n "Your Internal IP Is "
ifconfig eth1 | grep "inet addr"| sed 's/addr:/ /' | awk '{print $2}'
echo -n "Your External IP Is "
dig +short myip.opendns.com @resolver1.opendns.com
log_last_ip > last_ip.txt
#md5sum last_ip.txt > last_ip_hash.txt
b=$(md5deep -q last_ip.txt)
[ "$a" = "$b" ] && echo "IP Not Changed" > out.txt || echo "IP Has Changed Since Last Checked!" > out.txt
# cat out.txt
cat out.txt
espeak -v en -f out.txt -g 01ms -a 110 -p 58 -s 175
}
function log_last_ip(){
echo -en "\e[92mYour IP's: \c"
echo ""
echo -n "Your Internal IP Is "
ifconfig eth1 | grep "inet addr"| sed 's/addr:/ /' | awk '{print $2}'
echo -n "Your External IP Is "
dig +short myip.opendns.com @resolver1.opendns.com
}
Restart Terminal window
- Code:
show_ip
- Code:
Also you may need to install espeak
sudo apt-get install -y espeak
Some info i used came from
cyberciti.biz/faq/linux-list-network-interfaces-names-command
Similar topics
» Changing your linux mint hostname
» Unable to resolve host fixed and solved
» cannot perform operation as proper authorization was not provided error fixed!
» Test Your Networks Vulnarbilities from outside in
» Network Monitoring!
» Unable to resolve host fixed and solved
» cannot perform operation as proper authorization was not provided error fixed!
» Test Your Networks Vulnarbilities from outside in
» Network Monitoring!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum