Question: Task 1 . 1 : Brute - force Weak AES Thanks to the small key space, a brute - force attack on Subst - Rijndael.crypt
Task : Bruteforce Weak AES Thanks to the small key space, a bruteforce attack on SubstRijndael.crypt becomes a reasonable technique to break the outer AES encryption layer. Write a short prototype script to automate the attack. To this end, you must find a criterion that allows you to automatically distinguish the right key from wrong ones. The decryption shall be computed and stored in Subst.txt in plaintext format for further processing in the next step. Furthermore, you should save the discovered AES key in aes.key as a hexadecimal text string.
Hints: Notice that there are already many implementations libraries available to apply AES encryption and decryption, eg PyCryptodome to interface with Python. Take a look at Shannon entropy. How can it help to find out the correct key among all possible combinations?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
