Linux Common Security Commands


  • change mac address to random
macchanger -r wlan0

IP Forwarding

  • Enable IP Forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
  • Disable IP Forwarding
echo 0 > /proc/sys/net/ipv4/ip_forward

IP Tables

  • Start MITM
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080
  • list nat tables
iptables -L -t nat
  • Delete rule 1 prerouting from nat
iptables -D PREROUTING 1 -t nat

start .run file
To Command
make file executable chmod +x filename
run file ./filename

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License