I am doing a port scanner using only Python and using raw sockets to create the packets. One of the types of scan I want to perform is sending a TCP SYN packet and analyzing the response, without completing the handshake. However, the kernel ends up responding with an RST packet. I searched but couldn't find a way to prevent the OS from sending the RST packet. I also want to use only Python, without external libraries, without altering system files, and without using commands with subprocess. Note: my code is intended to work only on Linux. I searched in forums and websites. I tried using AIs, but it wasn't possible either. Continue reading...