Skip to main content

NTP-Amplification Attack Tool

Project description

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/*

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

ntp_amplification-1.7.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ntp_amplification-1.7.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file ntp_amplification-1.7.2.tar.gz.

File metadata

  • Download URL: ntp_amplification-1.7.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0rc2

File hashes

Hashes for ntp_amplification-1.7.2.tar.gz
Algorithm Hash digest
SHA256 a189fa8963e43673a34ea4c8c380ace8471aa112445168e6c14209b3100f0e68
MD5 822db36f869e4759d6da1154e78d5bb1
BLAKE2b-256 dd51662111632c883f1ce9a8bf750afff28c057357c10cf2a8acec3b51c31d71

See more details on using hashes here.

File details

Details for the file ntp_amplification-1.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ntp_amplification-1.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e439a1b6c88ebcfd828946f7cd5760c1ce16e1170d3d001975d448dbea8f4564
MD5 6d4d18c8c2bc9120226f745460cf82a6
BLAKE2b-256 0a56b2059113cdc562a97e1652c3af06c94d9c95319cab22eebfbc67afe50352

See more details on using hashes here.

Supported by

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