Reverse Engineering 101 ( Using IDA to break password protections )
This video is the second in the Reverse Engineering 101 series. I would encourage you to view the first video on finding hidden passwords in binaries using a hex editor. In this video we will use the IDA Pro tool to dissect a binary file and see how to crack a basic password protection.Please download an evaluation copy of IDA here. Also, please download binary of the program to be disassembled in this reverse engineering exercise from here.
We will use the code from the previous video in this example. Lets look at the program:
#define password "FindMeIfYouCan"
int main(int argc, char *argv)
printf("Please enter your password\n\n");
if ( strcmp(pass, password) == 0 )
printf("Congrats!! Correct Pass\n\n");
-------------------------------- Code Ends ---------------------
The user entered password is stored in the variable "pass", while the program password is held in "password". The entire protection mechanism in the above program depends on the "srtcmp" function(). If the passwords match, strcmp() returns a "0". The the "If" statement does a comparison to check if "0" was returned. If True, then the user is allowed access, else the user is denied access.
well how do we reverse engineer this program? well what if somehow we could have "0" placed in the output of the strcmp() operation, so that the If statement yields a "True"? In order to understand how we can accomplish this we need to dive into the assembly language equivalent of the code above. You can watch how its done in the video below. If you are noob to Assembly and would me to create an "Assembly Language Primer to begin Reverse Engineering", please raise a request using the "Feedback" button to the left of the page.
[Reverse] Reverse Engineering 101 ( Using IDA to break password protections )
Được đăng bởi Benina Lúc 5:47 AM