Skip to content

Instantly share code, notes, and snippets.

@infosecn1nja
Last active November 22, 2023 18:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infosecn1nja/97b4b2e5132ae9d3d18448b3f7f7aa93 to your computer and use it in GitHub Desktop.
Save infosecn1nja/97b4b2e5132ae9d3d18448b3f7f7aa93 to your computer and use it in GitHub Desktop.
Securing CS Teamserver
Make a rule that allows port 80/443 access only from redirector:
iptables -A INPUT -p tcp -s <REDIRECTOR_IP> --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j DROP
iptables -A INPUT -p tcp -s <REDIRECTOR_IP> --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP
Change default port teamserver :
sed -i 's/50050/<PORT>/g' /path/cobaltstrike/teamserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment