And we follow that with the action of redirect (REDIRECT). –destination-port we specify port 80 as the destination port. –p specifies a protocol, in this case we said tcp. It is for altering packets as soon as they come in. PREROUTING is one of the built-ins of the NAT table option. –A is an instruction to append one or more rules to the accepted chain. –t=tables, nat=this table is consulted when a packet that creates a new connection is encounted. Iptables -t nat -A PREROUTING -p tcp –destination-port 80 -j REDIRECT –to-port 10000 Remember to do any MITM we need our box to act like a router and be able to forward packets that does not have its ip address in it as the destination.Ĥ Now we need to set up iptables, so that it will redirect traffic from port 80 to port 10000. This command enables ip forwarding by writing the value 1 in the file specified path. Write down them for later reference.Ģ Find your WinXP’s IP address (it is the victim) in Window XP: ipconfig /allģ Start a new terminal in Kali, type the following command: In this lab, it should be 192.168.0.1 and the interface is eth0. Please set the network of them to bridged adapter mode, turn off the firewall of Win XP, and give the WinXP 1024M memory.ġ Find you default gateway and interface connected with the victim in Kali: netstat -r This lab can steal all the passwords in a subnet. User name of kali: root PWD: SCIA472 (They are Shift+S Shift+S Shift+I Shift+A 472). What you need: Kali101 Linux and Windows XP VMs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |