Cryptatools-rs is a cryptanalysis tool for cybersecurity researcher, exploit developers and ctf players to exploit custom algorithms and wrongly implemented cryptographic algothms.
Cryptatools-rs could be used with rust
library and python3
api or bash
/powershell
api.
This tool aims to be professionnal. Not only a learning tool. It is for realistic exploitation and code breaking.
You can "plug-in" your script to any protocol. Man in the midle as well as blockchain core as well as intercepted communication or anything else. Example:
- You are able to use
pypcap
python library to read packets and thendpkt
python library to parse these and then you can usecryptatools
to break encryption on these packets. This is why this library is avaible in many bindings such as python. - You are able to use
rust-web3
to parse a vulnerable cryptocurrency (shitcoin) blockchain hash tree to steal money using collision attack to forge a signature. See this reference.
You can also work on programs obfuscated by encryption such as malware. In this case, you can decipher program data (eg: data contained in a dropper) as well as self-encrypyted code. In this way you can plug cryptatools with your favorite reverse engineering framwork. Eg:
- Install radare2. Then do
radare2 -AA -i <yourscriptname>.rs <yourmalwaretoreverse>
. If you work with python bindings,radare2 -AA -i <yourscriptname>.py <yourmalwaretoreverse>
- You can also work on extracted code from the malware:
radare2 <malwaretoreverse>;
=> s sym.encrypted;
pr 12345 > ciphertext.bin
Where 12345 is the size of the encrypted function or code of the malware.
The library is very very flexible. One of the main concept is to break custom cryptography. That is why you can meet classic cryptanalysis in cryptatools
. This flexibility also aim to break obfuscation/encrypted malware. These are often written in assembly language because they deal with the system and then need to reimplement a lot of things and so their encryption method are often poorly written.
You can automatize any task. There is a command line interface.
Cryptatools-rs is very well documented.
Full documentation is avaible at this address. The documentation includes Tutorials, How-Tos, the library reference and concepts explanations.
gogo - gogo246475@gmail.com
Project Link: https://github.com/gogo2464/cryptatools-rs
We currently use discord as official cryptatool-rs community meeting. We may add an elements server.
Discord - https://discord.gg/6YY7HFNA