Documente Academic
Documente Profesional
Documente Cultură
Tutorial 9
Host: Kali
Target: Ubuntu/ another Kali/ BackTrack machine
Windows 7 is not suitable in this exercise, because Microsoft has made the TCP handshake timeout
too short and no longer allows the user to adjust it.
1. Starting a netcat listener on Ubuntu by executing this command in their Terminal Window
nc -l 5555 or nc -lvvp 5555
2. To make sure the netcat listener is listening, open another Terminal window and execute this
command:
sudo iptables -L
6. You should see one rule in the OUTPUT section dropping RST packets.
7. As usual, use this command to start Scapy in Kali:
sudo scapy
15. Use send command to send the packet onto the network.
16. On the Linux target machine, in a Terminal window, execute this command:
netstat -an | grep 5555
17. You should see a connection from local port 5555 with a status of ESTABLISHED. If you
don't see the session, it may have timed out. Repeat the steps more quickly--try to get the ACK
sent within 30 seconds of the SYN. A trick that sometimes helps is to send some layer 7 data
along with the ack. That will keep the session open longer, while the target waits for more layer
7 data.
18. Show me your result. [5%]