-
Notifications
You must be signed in to change notification settings - Fork 4
/
whatsapp_bomber.py
99 lines (80 loc) · 4.56 KB
/
whatsapp_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
def wpbombingwin():
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 simple_chalk import chalk
import time
import os
options = Options()
options.add_argument("--log-level=3")
wcr_dict = os.getcwd() + '\chromedriver.exe'
browser = webdriver.Chrome(executable_path=wcr_dict, chrome_options=options)
browser.get('https://web.whatsapp.com/')
os.system('cls')
eascii = """
$$\ $$\$$\ $$\ $$$$$$$\ $$\
$$ | $\ $$ $$ | $$ | $$ __$$\ $$ |
$$ |$$$\ $$ $$$$$$$\ $$$$$$\$$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$ | $$ |$$$$$$\ $$$$$$\$$$$\ $$$$$$$\ $$$$$$\ $$$$$$\
$$ $$ $$\$$ $$ __$$\ \____$$\_$$ _| $$ _____|\____$$\$$ __$$\$$ __$$\ $$$$$$$\ $$ __$$\$$ _$$ _$$\$$ __$$\$$ __$$\$$ __$$\
$$$$ _$$$$ $$ | $$ |$$$$$$$ |$$ | \$$$$$$\ $$$$$$$ $$ / $$ $$ / $$ | $$ __$$\$$ / $$ $$ / $$ / $$ $$ | $$ $$$$$$$$ $$ | \__|
$$$ / \$$$ $$ | $$ $$ __$$ |$$ |$$\ \____$$\$$ __$$ $$ | $$ $$ | $$ | $$ | $$ $$ | $$ $$ | $$ | $$ $$ | $$ $$ ____$$ |
$$ / \$$ $$ | $$ \$$$$$$$ |\$$$$ $$$$$$$ \$$$$$$$ $$$$$$$ $$$$$$$ | $$$$$$$ \$$$$$$ $$ | $$ | $$ $$$$$$$ \$$$$$$$\$$ |
\__/ \__\__| \__|\_______| \____/\_______/ \_______$$ ____/$$ ____/ \_______/ \______/\__| \__| \__\_______/ \_______\__|
$$ | $$ |
$$ | $$ |
\__| \__|
"""
print(chalk.green(eascii))
try:
confirm = WebDriverWait(browser, 600).until(EC.presence_of_element_located(
(By.CLASS_NAME, "_3BDr5")))
browser.find_element_by_class_name("_3BDr5").click()
finally:
pass
browser.set_window_position(-10000,0)
wp_victim = input(chalk.green("[1] ----> Victim's Phone Number (with country code) > "))
bad_chars = ['+', ' ', '-']
for i in bad_chars :
wp_victim = wp_victim.replace(i, '')
mode = input(''' |
|-TYPE-------------------|
| 1] Repetitive Mode |
| 2] Script/Lyrical Mode |
| Facing Problem ? |
| Check out README.MD |
|------------------------|
|-> Enter the mode number : ''')
if mode.lower() == '1' or mode.lower() == 'repetitive mode':
reptxt = input(chalk.blue(' |-> [2] Word/Sentence that you want to send Multiple Times > '))
repcount = int(input(chalk.green(' |-> [3] How many times ? : ')))
elif mode.lower() == '2' or mode.lower() == 'script/lyrical mode':
lyrics = open("lyrics.txt","r+")
splitedlyrics = (lyrics.read().split())
else:
print(chalk.red(' |-> [-] invalid input !'))
return
browser.get(f'https://web.whatsapp.com/send?phone={wp_victim}&text&source&data&app_absent')
try:
confirm = WebDriverWait(browser, 60).until(EC.presence_of_element_located(
(By.CLASS_NAME, "_2O84H")))
finally:
pass
try:
confirm = WebDriverWait(browser, 80).until(EC.presence_of_element_located(
(By.CLASS_NAME, "DuUXI")))
except:
print(chalk.red(" |-> [-] please recheck victim's mobile no. "))
finally:
pass
if mode.lower() == '1' or mode.lower() == 'repetitive mode':
for i in range(repcount):
browser.find_elements_by_css_selector('.DuUXI div')[2].send_keys(reptxt + Keys.ENTER)
elif mode.lower() == '2' or mode.lower() == 'script/lyrical mode':
for words in splitedlyrics:
browser.find_elements_by_css_selector('.DuUXI div')[2].send_keys(words + Keys.ENTER)
time.sleep(5)
print(chalk.green(' |-> [+] Message(s) sent successfully !'))
browser.quit()