Indeed. Every time I see posts asking for this and that autoscripts, napapakamot nalang ako ng ulo. Tulad ng isang na-encounter ko na "autoscript" para sa nginx, VPN, proxy etc. People are wondering why that script is no longer working. Obviously, none of them have any idea what that script does, or if it pulls some rootkits down into their machines
.
Tulad nito: wget
You do not have permission to view the full content of this post.
Log in or register now.
Nung binasa ko yung script, eto yung isang flawed logic. Sa isang line, use wget to find out your external IP. Tapos sa succeeding line, install daw wget at curl. WTF, eh ginamit na nga sa unang line. Dapat prior to that may dependency check na for wget at curl, kung iyun talaga intention.
user@debian:~/garbage$ grep wget VPScrptZ.sh
MYIP=$(wget -qO- ipv4.icanhazip.com);
wget -q -O daftarip
You do not have permission to view the full content of this post.
Log in or register now.
MYIP=$(wget -qO- ipv4.icanhazip.com);
# install wget and curl
apt-get update;apt-get -y install wget curl;
Tapos check yung "registered IP' by downloading some list at some random site. If your IP is not found, abort.
# check registered ip
wget -q -O daftarip
You do not have permission to view the full content of this post.
Log in or register now.
if ! grep -w -q $MYIP daftarip; then
echo "Sorry, only registered IPs can use this script!"
if [[ $vps = "vps" ]]; then
echo "Powered by Clrkz"
else
echo "Powered by Clrkz"
fi
rm -f /root/daftarip
exit
fi
'