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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rustbininfo-0.5.0.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.5.0.tar.gz
Algorithm Hash digest
SHA256 70d3bf7e2019477ba99d3d0aa2f8d2f0d1605c32df77ce8ee11dfee7e6817dcf
MD5 026c8323cb68a661c3881740e5ef4bcc
BLAKE2b-256 ad7cd3fdb92a926257ac6989e4d8717c3a5586b6bdc4d3864c77ae4bee2e89d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustbininfo-0.5.0-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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc337832a1f8466f2c764658db945eee983d5061816e203fe88c0ff42eccef52
MD5 58d7beac792d513070fa458d94848368
BLAKE2b-256 86eb2475efe653a269c475d14459d89a0771654f3314f6e7f7de58a1fa8f939f

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