-
First upon analyzing the program we can find that there are three main functions used
- xor
- Hex convertor
- shift
-
As we try to deconstruct the program by commenting all the functions except xor function, and try to see what the xor function does to the input given a single character, we get an output of xor of the char. lets see if the fucntion is a reversible function. So lets use the output which we have got as the input to see if we get the charater which we used in the first step. Yes! we get the same character. Hece this function is a reversible function.
-
Now Lets see what the shift function does. It converts the text to a ascii value and shifts it. We know that modulo has no invertable operator. Thus, we need not worry to reverse the operator. Lets inverse the (+) operator to (-) and vice-versa. Now we have made the function to deshift the input.
-
The Finaly function encode, converts the string to a hex format. We can use binascii python module to unhexify
-
Logically we reconstruct the function to our advantage. And give the cipher text as input, Hurray we have solved this challenge.
forked from 0xtejas/secret_project
-
Notifications
You must be signed in to change notification settings - Fork 0
ags4436/secret_project
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Python Automation Program - To make your life easy
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%