#cloud-config users: - name: archiveteam gecos: archiveteam primary_group: archiveteam groups: users manage_resolv_conf: true resolv_conf: nameservers: - '9.9.9.10' - '149.112.112.10' - '8.8.8.8' - '8.8.4.4' options: rotate: true timeout: 20 final_message: "The system is finally up, after $UPTIME seconds" package_update: true package_upgrade: true packages: - curl - apt-transport-https - ca-certificates - gnupg2 - software-properties-common - pkg-config - rsync - htop - unzip - git-core - dnsmasq - time - nload - wget - htop - dnsutils - byobu - tmux runcmd: - 'set +x' - 'rm -rf /etc/apt/sources.list.d/hetzner-*' - 'apt clean && apt update && apt -y upgrade' - 'echo "88.99.210.22 yanovich.net" >> /etc/hosts' - 'wget -qO /etc/sysctl.conf https://yanovich.net/sysctl_Fusl_e6d033bf835fa41b6b848240e60dd61cf842c6f37a4b1113318352c7.txt' - 'sleep 1' - 'sysctl -p' - 'sleep 3' - 'wget -qO /root/setup_ipv6.sh https://yanovich.net/ipv6_94778373009722d9c9bc57441f1ec5c691d11d8e91d309013c913fa5.txt' - 'chmod +x /root/setup_ipv6.sh' - '/root/setup_ipv6.sh' - 'sleep 1' - 'rm -f /etc/dnsmasq.conf' - 'wget -qO /etc/dnsmasq.d/dnsmasq.conf https://yanovich.net/dnsmasq_bd609a8a21c18363d32d53c60c1e45283197f0796a845d55071b7d4c.txt' - 'sleep 1' - 'mkdir /etc/docker/' - 'wget -qO /etc/docker/daemon.json https://yanovich.net/docker_daemon_f47c846e053166f5a2357415eba331c1011b2b6ed7c8f3f721c41cba.txt' - 'echo nameserver 127.0.0.1 > /etc/resolv.conf' - 'chattr +i /etc/resolv.conf' - 'sleep 1' - 'systemctl restart dnsmasq' - 'sleep 1' - 'systemctl restart dnsmasq' - 'sleep 5' - 'systemctl restart dnsmasq' - 'sleep 5' - 'iptables -A INPUT -p tcp --destination-port 25 -j DROP' - 'iptables -A INPUT -p tcp --destination-port 110 -j DROP' - 'iptables -A INPUT -p tcp --destination-port 143 -j DROP' - 'iptables -A INPUT -p tcp --destination-port 465 -j DROP' - 'iptables -A INPUT -p tcp --destination-port 993 -j DROP' - 'iptables -A INPUT -p tcp --destination-port 995 -j DROP' - 'sleep 2' - 'curl -sSL https://test.docker.com/ | bash' - [ usermod, -a, -G, docker, archiveteam ] - [ wget, "https://kiska.b-cdn.net/hPqbY/tencent-weibo-grab.tar.gz", -O, /home/archiveteam/tencent-weibo-grab.tar.gz ] - [ tar, xafv, /home/archiveteam/tencent-weibo-grab.tar.gz, --directory, /home/archiveteam/ ] - 'docker build --network=host -t ateam/grab:latest /home/archiveteam/tencent-weibo-grab/' - 'docker image prune --force' - 'seq 256 | xargs -n1 -P10 -I% docker container run --restart=unless-stopped --network=host -d --name=grab_% ateam/grab:latest --concurrent 6 kiska'