Parser.add_argument("-f", "-file", metavar="", required=True, help="Location and the name of file.txt. Parser.add_argument("-z", "-zip", metavar="", required=True, help="Location and the name of the. zip", usage="Program.py -z zip.zip -f file.txt") Parser = argparse.ArgumentParser(description="Unzips a password protected. Now my code is as follows: import argparse Now if I run the code below by doing python Program.py -z zipv1.zip -f file.txt (Assuming all these files are in the same folder as Program.py) my program displays dominique as the correct password for the zipv1.zip among the other words/passwords in file.txt and extracts the zipv1.zip but the Congrats.txt is empty and has the size of 0kb. ![]() txt (Which we'll name it as file.txt for the sake of this question). That password is stored among other words and names within another. zip zipv1.zip) with the password dominique for the sake of this thread. zip (For the sake of the thread lets name this. Now Congrats.txt has text in it thus its not 0kb in size. txt document (Say Congrats.txt for this case). ![]() At this point, you can type in type name.pot (again, substitute your folder's name for 'name') and press Enter to view the password for the ZIP folder. ![]() I am trying to extract a password protected. Once the password has been determined, you'll see 'Session complete' appear at the bottom of Command Prompt.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |