Skip to main content

Get information about stripped rust executables

Project description

pypi package GitHub

Get information about a stripped rust executable.

This tool is mentioned in this and this blogposts.

Example

> rbi ~/Downloads/crackme.exe
TargetRustInfo(
    rustc_version='1.65.0',
    rustc_commit_hash='9c20b2a8cc7588decb6de25ac6a7912dcef24d65',
    dependencies=[
        Crate(name='crc-any', version='2.4.3', features=[], repository=None),
        Crate(name='rand', version='0.8.5', features=[], repository=None),
        Crate(name='rand_chacha', version='0.3.1', features=[], repository=None),
        Crate(name='short-crypt', version='1.0.26', features=[], repository=None)
    ],
    rust_dependencies_imphash='cd7358d2cd75458edda70d567f1555fa',
    guessed_toolchain='windows-msvc'
)

Usage

rbi
usage: rbi [-h] [-f] [-d] target

Get information about stripped rust executable, and download its dependencies.

positional arguments:
  target

options:
  -h, --help          show this help message and exit
  -f, --full
  -d, --project-date  Tries to guess date latest depdnency got added to the project, based on dependencies version

Usage examples:

 rbi 'challenge.exe'
 rbi -f 'challenge.exe'
 rbi -d 'challenge.exe'

Tests

Tests requieres git-lfs to retrive the test executable.

Then, execute the following command:

git lfs fetch
git lfs pull
pytest -s

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

rustbininfo-0.5.5.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rustbininfo-0.5.5-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file rustbininfo-0.5.5.tar.gz.

File metadata

  • Download URL: rustbininfo-0.5.5.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-127-generic

File hashes

Hashes for rustbininfo-0.5.5.tar.gz
Algorithm Hash digest
SHA256 16bb1e945b31eab3ecff5f7d36f7fcc9d71a50b31ca62a4398d8b4d7558ecc8b
MD5 736034e305daf5c2b71d7c319fa23974
BLAKE2b-256 ce68fe427696644fc3d97033bf86d946681ac20ab782a0828c0fa447a9d79554

See more details on using hashes here.

File details

Details for the file rustbininfo-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: rustbininfo-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-127-generic

File hashes

Hashes for rustbininfo-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6086c39c14473e3e4b8d94ae716a02b07e5279edfeb3e9e07ebf1e916c533c80
MD5 0bb00f1240371ac595f757f7f15fa558
BLAKE2b-256 c1c619ccb28ee2021a043695bbcf3d6417559aa9c3ad16a0e4d191d211f18b32

See more details on using hashes here.

Supported by

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