-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsmsbomber.py
More file actions
146 lines (124 loc) · 6.1 KB
/
smsbomber.py
File metadata and controls
146 lines (124 loc) · 6.1 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
import subprocess
import os
import re # Import regex module
import colorama
import time
from colorama import Fore, Style
colorama.init(autoreset=True)
# Function to create a gradient between two RGB colors
def rgb_gradient(start_color, end_color, steps):
gradient = []
for i in range(steps):
r = int(start_color[0] + (end_color[0] - start_color[0]) * (i / (steps - 1)))
g = int(start_color[1] + (end_color[1] - start_color[1]) * (i / (steps - 1)))
b = int(start_color[2] + (end_color[2] - start_color[2]) * (i / (steps - 1)))
gradient.append((r, g, b))
return gradient
# Function to print text with gradient colors
def print_gradient_text(text, start_color, end_color):
steps = len(text)
gradient = rgb_gradient(start_color, end_color, steps)
for i, char in enumerate(text):
r, g, b = gradient[i]
print(f'\033[38;2;{r};{g};{b}m{char}', end="")
print(Style.RESET_ALL)
# Function to center the text in the terminal
def center_text(text):
rows, columns = os.popen('stty size', 'r').read().split()
lines = text.split('\n')
centered_lines = []
for line in lines:
centered_line = line.center(int(columns))
centered_lines.append(centered_line)
return '\n'.join(centered_lines)
# Function to send SMS (using termux-sms-send for example)
def send_sms(phone_number, message):
try:
subprocess.run(['termux-sms-send', '-n', phone_number, message], check=True)
print(f"{Fore.GREEN}SMS sent successfully!")
except subprocess.CalledProcessError as e:
print(f"{Fore.RED}Failed to send SMS: {e}")
except Exception as e:
print(f"{Fore.RED}Unexpected error: {e}")
# Function to validate phone number
def validate_phone_number(phone_number):
pattern = r"^\d+$" # Ensures only digits are allowed
if re.match(pattern, phone_number):
return True
else:
print(f"\n{Fore.RED}Invalid phone number. Please enter digits only.")
return False
# Main function to display colored text and run the bomber
def main():
os.system('clear')
# ASCII Art texts to display
hco = """\n\n\
██╗ ██╗ ██████╗ ██████╗
██║ ██║██╔════╝██╔═══██╗
███████║██║ ██║ ██║
██╔══██║██║ ██║ ██║
██║ ██║╚██████╗╚██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝
"""
bomber = """\
██████╗ ██████╗ ███╗ ███╗██████╗ ███████╗██████╗
██╔══██╗██╔═══██╗████╗ ████║██╔══██╗██╔════╝██╔══██╗
██████╔╝██║ ██║██╔████╔██║██████╔╝█████╗ ██████╔╝
██╔══██╗██║ ██║██║╚██╔╝██║██╔══██╗██╔══╝ ██╔══██╗
██████╔╝╚██████╔╝██║ ╚═╝ ██║██████╔╝███████╗██║ ██║
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝
"""
by_hackers_colony = f"\033[1;94m \nScript By {Fore.GREEN}AZHAR\n\n"
# Start and end colors for the gradient (RGB)
start_color = (255, 0, 0) # Red
end_color = (0, 0, 255) # Blue
# Center the texts and print them with gradient colors
time.sleep(1.3)
print_gradient_text(center_text(hco), start_color, end_color)
time.sleep(0.5)
print_gradient_text(center_text(bomber), start_color, end_color)
print(center_text(by_hackers_colony))
time.sleep(1) # Pause for a moment to display the text before running the script
# Now, proceed with the SMS bomber logic
try:
cncode = input(f'\n{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}]{Fore.MAGENTA} Enter Country Code Without "+" eg.91 {Fore.GREEN}=> ')
num = input(f"\n{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}]{Fore.YELLOW} Enter the Victim's Phone number\n\n{Fore.GREEN}=> {cncode}")
if not validate_phone_number(num):
time.sleep(3)
return main() # Restart the program if the phone number is invalid
msg = input(f"\n{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}]{Fore.CYAN} Enter Your Message: ")
bomb = int(input(f"\n{Fore.BLUE}How Many Times You Want To Send Message: {Fore.GREEN}"))
combnum = f"+{cncode}{num}"
print()
final_call = input(f'\n{Fore.YELLOW}[?]{Fore.RED} Do You Want To Change NO.{Fore.WHITE}{combnum} {Fore.RED}(Y/N)\n\n{Fore.GREEN}=> ')
if final_call.lower() == 'y':
main()
elif final_call.lower() == 'n':
os.system('clear')
print(f"\n\n{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}]{Fore.MAGENTA} Bombing on No. : {Fore.YELLOW}{combnum}....\n")
time.sleep(2)
try:
i = 0
while i != bomb:
send_sms(combnum, msg)
i += 1
print(f"\n{Fore.GREEN}Completed sending {bomb} messages to {combnum}.\n")
time.sleep(2)
ask = input(f"{Fore.BLUE}Back To Menu {Fore.GREEN}[Y{Fore.CYAN}/{Fore.RED}N]{Fore.BLUE} : {Fore.GREEN}").lower()
if ask == 'y':
time.sleep(1)
return main()
else:
print("\n\033[1;37mDon't Forget To Subscribe Our YouTube Channel Hackers colony official")
time.sleep(1.5)
channel_url = 'https://youtube.com/@hackers_colony_tech?si=7FEalwT2t0khmivd'
os.system(f'termux-open {channel_url}')
time.sleep(2)
os.system("exit")
except:
time.sleep(1)
print(f"\n\n{Fore.MAGENTA} Bombing Stopped!!\n")
except:
print("\n\033[1;94mProgram Interpreted")
if __name__ == "__main__":
main()