Skip to main content

Posts

Showing posts from October, 2020

THM — RUST — [task 13] challenge - writeup

Before starting this you must get familiar with all the previous tasks and run some code in the tasks and get familiar with error handling and using crates. If you have difficulty completing the previous tasks here is a walkthrough video of them. TryHackMe — learn Rust — [Task 13] : So as given the string is already encrypted and all you have to do is to decrypt in the order of rot13 -> base64 -> ROT13 -> plaintext and find the flag. To do that you can head to https://crates.io/ to find external packages which will decrypt the text for you out of the box, so search for packages such as base64 and rot13 to make use of them to use them in our code. So here are some packages which I used cipher-crypt = “0.17.0” base64 = “0.12.3” will use cipher-crypt for rot13 and base64 for base 64 decryption. So now you can add them to your dependencies in Cargo.toml file(as below) Now you are all set to use the packages it in your code. Then you can import these packages in your code as be...