Metadata-Version: 2.1
Name: ntp-amplification
Version: 1.6.0
Summary: NTP-Amplification Attack Tool
Home-page: https://github.com/cavoq/ntp-amplification
Author: cavoq
Author-email: cavoq@proton.me
License: BSD 2-Clause simplified License
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyfiglet (==0.8.post1)
Requires-Dist: scapy (==2.5.0)
Requires-Dist: termcolor (==2.3.0)

# NTP-Amplification

![license](https://img.shields.io/badge/license-MIT-brightgreen.svg)
![version](https://img.shields.io/badge/version-1.5.4-lightgrey.svg)
![build](https://img.shields.io/github/actions/workflow/status/cavoq/ntp-amplification/workflow.yml)
![Debian Compatible](https://img.shields.io/badge/Debian-Compatible-brightgreen.svg)

Tool for NTP-Amplification attack. It uses the pools specified in the *config.json* to scan for public ntp-servers, these servers will be used to attack the specified target. You can also pass in a list of ntp-servers yourself.

## Disclaimer
**This tool is designed for educational purposes only, i do not support the use for any illegal activities.
Only use this on networks you own or have permission for.**

## Note

**Since this script uses scapy, it needs to have root privileges, if
you install it with pip, you need to install it with sudo.**

## Requirements

**System**
```bash
sudo apt update &&
sudo apt install python3-scapy ntp -y
```

## Installation

**PyPi**

```bash
sudo pip install ntp-amplification
sudo ntp-amplification
```

**From source**
```bash
pip install -r requirements.txt
sudo python3 ntp_amplification.py
```

## Usage

```
 _   _ _____ ____         _    __  __ ____  _     ___ _____ ___ _____ ____
| \ | |_   _|  _ \       / \  |  \/  |  _ \| |   |_ _|  ___|_ _| ____|  _ \
|  \| | | | | |_) |____ / _ \ | |\/| | |_) | |    | || |_   | ||  _| | |_) |
| |\  | | | |  __/_____/ ___ \| |  | |  __/| |___ | ||  _|  | || |___|  _ <
|_| \_| |_| |_|       /_/   \_\_|  |_|_|   |_____|___|_|   |___|_____|_| \_\


NTP-Amplification Attack Tool v1.5.4

USAGE: ntp-amplification [options] <target ip>
OPTIONS:
 -h, --help: Show this help message and exit
 -s, --server: Specify ntp server list
 -c, --config: Specify config file
EXAMPLE: ntp-amplification -s example-servers.txt 192.168.2.1

```

## Developer notes

**lint**
```bash
pre-commit run --all-files
```

**test**
```bash
sudo coverage run -m unittest ntp_amplification_test.py
coverage report -m --include=ntp_amplification.py
```

**publish**
```bash
python3 setup.py sdist bdist_wheel
python3 -m twine upload --verbose dist/*
```
