Skip to content

op2gs2/Denial-of-Service-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Denial of Service in c

What code is?

Source code for DoS(Denial of Service) Attack in Linux Environment.

Feature of this code

  • Ping of Death Attack (Developed)
    : Sending a Big size ICMP packet to target and make it busy. Big size ICMP packet will be fragmented, Delivered to a target system. Target will take fragment many packets. It makes overload to the target system.
  • SYN Flooding Attack (Developed)
    : This is an attack using the vulnerability of TCP 3-way handshaking. When the Client sends an SYN packet, the server will send the SYN and ACK Packet and wait for the Client's answer. At that time, the Attacker sends a lot of SYN packets. The server will overload due to a lot of waiting for the Client's answer.

Usage

Requirements

This code can run in a Unix system.
If you want to run this code in Windows System, You should use WSL or Cygwin or Virtual Machine.

Way to Compile

You can complie this code like this:
Before compile code, make sure that ALL source code file is in same directory.

$ gcc -o DoS DoS.c

Way to Execute

After compile and made object file, You can run this code like this:
This code require super-user privileges.

$ sudo ./DoS [Options] [SourceIP] [DestinationIP]

Here is list of options:

  • "-i" : Ping of Death Attack
  • "-s" : SYN_Flooding Attack

Contribution

We are welcome to your contribution!
There is no restrictions for contribution.