Skip to main content

Devkit for quickly creating client robots for remote communications

Project description

PyBots Tweet

Create your robot clients with Python.

PyPi Read The Docs Build Status Requirements Status Known Vulnerabilities Python Versions License

This library aims to quickly write client bots for communicating with remote hosts in a standardized way using context managers. It implements a few bots for some common protocols (HTTP, JSON, IRC, ...) and for communicating with specific applications (Shodan, Censys, HaveIBeenPwned?, RootMe, RingZer0, ...).

pip install pybots

:sunglasses: Usage

Each bot class is implemented as a context manager and has a logger attached. It can thus be instantiated in a clear and straightforward way. Here is an example:

from pybots import TCPBot

with TCPBot("remote_host", 1234) as bot:
    data = bot.send_receive("Hello!")
    # do something with data

Note that, if a bot is used behind a proxy, it will use system's proxy settings. This can be bypassed by using no_proxy=True while instantiating the bot.

with TCPBot("LAN_host", 1234, no_proxy=True) as bot:
    # ...

:mag: Examples

Real-Life Projects

CTF

:clap: Supporters

Stargazers repo roster for @dhondta/python-pybots

Forkers repo roster for @dhondta/python-pybots

Back to top

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

pybots-2.1.1.tar.gz (64.7 kB view details)

Uploaded Source

Built Distribution

pybots-2.1.1-py3-none-any.whl (100.0 kB view details)

Uploaded Python 3

File details

Details for the file pybots-2.1.1.tar.gz.

File metadata

  • Download URL: pybots-2.1.1.tar.gz
  • Upload date:
  • Size: 64.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for pybots-2.1.1.tar.gz
Algorithm Hash digest
SHA256 7f4b291abbdd4ebb58cc1d5f023a431eb3046b1981c7d04e33864013006ecc93
MD5 0e929f29d706c6ba4170d4bfed1ba824
BLAKE2b-256 0dfd7b487221761316f08fb5942a1d397f70523e761b62cccbb9a19930083ee4

See more details on using hashes here.

File details

Details for the file pybots-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: pybots-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 100.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for pybots-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 958aa10a823bdce03de836278896130ff864d6e8d9fe6440bf99f9a3f8d31941
MD5 d16c50339215baab90be315be6fefee9
BLAKE2b-256 3413eee3f99904125175101da1e6c7a82858a0fd089e787f03e291344bdde827

See more details on using hashes here.

Supported by

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