Info Security(Python or c++)

profileshahanil436

 Write a program that performs the brute-force attack to break the password. The following table shows encrypted passwords using the crypt() function. Your mission is to break the password for  = injY7hdQJTeu2 

 Crypt() is a function to check UNIX/LINUX passwords, and the encrypted passwords above are encoded by the standard crypt() function. Hence, you should use the crypt() function to break the password. The crypt() function takes two input parameters and returns the encrypted password, as follows: Input parameters: • Password (plaintext): string • Salt: string Output: • Encrypted password: string 2 


 The password length is six and the salt is set to ‘infosec’ (without using the quotation mark). For the brute-force attack, you should try 6-character lower case letters of alphabet from ‘aaaaaa’, ‘aaaaab’, ‘aaaaac’, …, to ‘zzzzzz’, with the salt. Report the original plaintext password by breaking the encrypted password (one based on your given encrypted code. Also report how many words you tested to find the original password.  

 Finally, submit the following: • Screenshot showing the program running, the key found, and the number of words tested: 30 pt. • Source code in the document: 10 pt. • Source programming file (must be compilable and executable):  

    • 5 years ago
    • 25
    Answer(0)