Skip to main content

Get information about stripped rust executables

Project description

Get information about a stripped rust executable.

This tool is mentioned in this and this blogposts.

Example

> rbi info ~/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] {info,guess_project_date,download} ...

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

options:
  -h, --help            show this help message and exit

mode:
  {info,guess_project_date,download}
                        Mode to use
    info                Get information about an executable
    guess_project_date  Tries to guess date latest depdnency got added to the project, based on dependencies version
    download            Download a crate. Exemple: rand_chacha-0.3.1

Usage examples:

 rbi info 'challenge.exe'
 rbi download hyper-0.14.27
 rbi guess_project_date '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.4.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

rustbininfo-0.4.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rustbininfo-0.4.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/6.2.0-39-generic

File hashes

Hashes for rustbininfo-0.4.1.tar.gz
Algorithm Hash digest
SHA256 2f4b3d0f306e94996e16e1b6a2deec6056016467b7b646e8077ce05607110cc1
MD5 2de6655627bb92fe4717b461e56dcd89
BLAKE2b-256 016ba46e3efb7aff331054ac7e00e0b0604f837f9b7180b716d29cfbc3c2dd99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustbininfo-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/6.2.0-39-generic

File hashes

Hashes for rustbininfo-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f76d18d292178b48a827a29903fc4da015cea7bd6a0438e6a2f5683c6b7e9ef
MD5 b428f06d02af51bead0b4db2dda8da55
BLAKE2b-256 2f62c88f5d5e7bb438ffd3f12182f3839d0a56ddedd3ce168a8bcca9f83f2248

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