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

Uploaded Source

Built Distribution

rustbininfo-0.5.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rustbininfo-0.5.1.tar.gz
Algorithm Hash digest
SHA256 7ba8a1be9f961705da4f15ee0e0b210336fd36e5b731d5abeba55cd18c477afe
MD5 3e589197ea29f767a4bfa436b0b02e73
BLAKE2b-256 1fa6ba747d728e3401de943c12ccff588aca41f9b72971ece7cb400c86f4c8b0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rustbininfo-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6ce0dfb194ebf7b2c33f88bbacb7db213f9b6b4806564b0f0605d4256fe9779
MD5 033dcdc5a26f8e2b408dd3980c5200e3
BLAKE2b-256 c9b5407e74b20f604d70711d6522057035b2ed824ebd006f061965fdcd11e110

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page