Skip to main content

Devkit for quickly creating client bots 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 various ways.

It currently features the following bots:

  • Protocol-bound: TCPBot, HTTPBot, JSONBot, IRCBot, EPassport
  • Application-specific:
    • CTF: RingZer0Bot, RootMeIRCBot, ZSISBot
    • Security: ShodanBot, VirusTotalBot
    • Miscellaneous: GitRecoveryBot

Installation

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

CTF Examples

Contribution

For contributions or suggestions, please open an Issue and clearly explain, using an example or a use case if appropriate.

If you want to get new bots added, please submit a Pull Request.

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

Uploaded Source

File details

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

File metadata

  • Download URL: pybots-2.0.6.tar.gz
  • Upload date:
  • Size: 55.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17

File hashes

Hashes for pybots-2.0.6.tar.gz
Algorithm Hash digest
SHA256 e3f5a0217319d88c217af549aeffbcf0d9dbdea670a0955a46698beffd8865a1
MD5 b83826496ad84ead519d8a3f5674de2c
BLAKE2b-256 5da2e1dd17a016f0afaa7e598c77a3d4aea15e3d56f9acf8d20a1c3ac0cbc8b5

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