Get information about a stripped rust executable.
This tool is mentioned in this and this blogposts.
> 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'
)
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 requieres git-lfs to retrive the test executable.
Then, execute the following command:
git lfs fetch
git lfs pull
pytest -s