Skip to content

Instantly share code, notes, and snippets.

@PacodiazDG
Created April 26, 2019 16:32
Show Gist options
  • Save PacodiazDG/223bc37318d12cbc76bbd84e92b5a22a to your computer and use it in GitHub Desktop.
Save PacodiazDG/223bc37318d12cbc76bbd84e92b5a22a to your computer and use it in GitHub Desktop.
./configure --sysconfdir=/etc/
make
make install
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 1:21 -j REDIRECT --to-ports 4444
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 23:79 -j REDIRECT --to-ports 4444
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 81:65535 -j REDIRECT --to-ports 4444
portspoof -c /etc/portspoof.conf -s /etc/portspoof_signatures -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment