Skip to main content

Devkit for quickly creating client robots for remote communications

Project description

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

PyBots

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, ...).

Setup

pip install pybots

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:
    # ...

Examples

Real-Life Projects:

CTF:

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.0.11.tar.gz (55.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pybots-2.0.11.tar.gz
  • Upload date:
  • Size: 55.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for pybots-2.0.11.tar.gz
Algorithm Hash digest
SHA256 fa240e315d6566312ca5f9d51dd6977a803e2bcfe731c5c44785555fde9b4aaf
MD5 8aeb582d91624062067515c8fb2c9fc5
BLAKE2b-256 42b5bca32b2dcb4c97f351b348d3948822bc03fb59c8bede2e5278500baca67c

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