1234567891011121314151617181920212223242526272829303132333435 |
- #!/bin/bash
- if [ "${EUID}" -ne 0 ]; then
- echo "You need to run this script as root"
- exit 1
- fi
- if [ "$(systemd-detect-virt)" == "openvz" ]; then
- echo "OpenVZ is not supported"
- exit 1
- fi
- red='\e[1;31m'
- green='\e[0;32m'
- NC='\e[0m'
- MYIP=$(wget -qO- ifconfig.me/ip);
- IZIN=$( curl https://www.ipang.me | grep $MYIP )
- if [ $MYIP = $IZIN ]; then
- echo -e "${green}Permission Accepted...${NC}"
- else
- echo -e "${red}Permission Denied!${NC}";
- echo "Please Contact Admin"
- echo "Telegram t.me/jessy009"
- #preparing to intstall ssh
- apt-get update
- apt-get upgrade -y
- update-grub
- rm -f setup-kadal.sh
- sysctl -w net.ipv6.conf.all.disable_ipv6=1
- sysctl -w net.ipv6.conf.default.disable_ipv6=1
- apt update
- wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/setup-kadal.sh
- chmod +x setup-kadal.sh
- bash setup-kadal.sh
- rm -f setup-kadal.sh
|