Skip to main content

NTP-Amplification

license CI/CD PyPI version Debian Compatible

This tool performs NTP-Amplification tests using the server pools specified in config.json to locate public NTP servers. These servers can reflect packets toward a specified target. You may also provide your own list of NTP servers. Only run this tool against systems you are authorized to test.

Disclaimer

LEGAL NOTICE: This tool is intended strictly for educational purposes and authorized defensive testing. Unauthorized use against systems you do not own or lack explicit written permission for may be illegal and subject to civil or criminal penalties. The author accepts no responsibility for misuse.

Note

Scapy needs root privileges to send packets, therefore this script requires root privileges.

Requirements

System

sudo apt update &&
sudo apt install python3-scapy ntp -y

Installation

PyPi

sudo pip install ntp-amplification
sudo ntp-amplification

From source

pip install -r requirements.txt
sudo python3 ntp_amplification.py

Usage

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


NTP-Amplification Attack Tool v1.7.2

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

pre-commit run --all-files

test

sudo coverage run -m unittest ntp_amplification_test.py
coverage report -m --include=ntp_amplification.py

publish

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

Metadata

Release files for ntp-amplification 1.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ntp-amplification 1.7.2
File Size Uploaded
ntp_amplification-1.7.2.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ntp-amplification 1.7.2
File Interpreter ABI Platform
ntp_amplification-1.7.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / ntp_amplification-1.7.2.tar.gz

Download URL ntp_amplification-1.7.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a189fa8963e43673a34ea4c8c380ace8471aa112445168e6c14209b3100f0e68
BLAKE2b-256 checksum
How to use checksums
dd51662111632c883f1ce9a8bf750afff28c057357c10cf2a8acec3b51c31d71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0rc2

Release files / ntp_amplification-1.7.2-py3-none-any.whl

Download URL ntp_amplification-1.7.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e439a1b6c88ebcfd828946f7cd5760c1ce16e1170d3d001975d448dbea8f4564
BLAKE2b-256 checksum
How to use checksums
0a56b2059113cdc562a97e1652c3af06c94d9c95319cab22eebfbc67afe50352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0rc2

Release history Release notifications | RSS feed

This release

1.7.2 This release

2 release files

1.7.1

2 release files

1.6.0

2 release files

1.5.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page