Haven't done much w/ networking, but at the moment I have two virtual machines (the attacker is kali and victim is ubuntu) with a host Windows 10 machine. Now, I'm trying to test SSLStrip. Normally, it looks like I would use arpspoof to get the 'attacking' VM in the middle of the connection between the 'victim' VM and the rest of the network, but this would subvert the entire network I'm on. Instead, I'd like to specifically tell my machine to route all packets to the attacking VM. The attacking VM would then do it's normal stuff like forward the traffic on port 80 to 8080 or whatever SSLStrip is set up on. Could someone point me in the right direction for the above?
Edit: What I've tried so far:
First I have my kali vm using a NAT adapter and bridged adapter. My ubuntu vm is just using bridged.
Enabled port forwarding on the kali machine:
echo "1" > /proc/sys/net/ipv4/ip_forward
Set up the routing:
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080
Run sslstrip using:
./sslstrip.py -a -l 8080
Now on my Ubuntu machine, I opened up firefox, go to advanced settings, then network, and changed proxy to "manaul proxy configuration. I changed the HTTP Proxy: to my kali machine's ip address which is:
inet addr: 192.168.0.102
and the port to
8080
which is the port stuff is getting redirected to for sslstrip. After doing this, I tried a few websites on ubuntu, and it just gets stuck on "connecting". Nothing shows up in the sslstrip log either.