Most Common Cyber-Attacks
1. Denial-of-service (DoS) and Distributed Denial-of-Service (DDoS) Attacks : Attacks flood a server or network with traffic to make it inoperative. Botnets are often used to launch various types of attacks, including TCP SYN Flood, Teardrop, Smurf, and Ping-of-Death. 1.1. TCP SYN Flood : Attacks overwhelm servers by sending a large number of SYN packets without completing the three-way handshake. This keeps connections open and consumes server resources, making it hard for legitimate clients to connect. Attackers can use a single or multiple computers, IP spoofing, and botnets to launch the attack. The following can be used to defend: Increase the size of the connection queue and decrease the timeout on open connections, such as this Python code: import socket # Increase the size of the connection queue backlog = 100 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('localhost', 8080)) sock.listen(backlog) # Decrease the timeout on open connections timeo...