This shows you the differences between two versions of the page.
|
isc:lab-test [2026/10/01 17:57] florin.stancu |
isc:lab-test [2026/10/01 17:59] (current) florin.stancu |
||
|---|---|---|---|
| Line 96: | Line 96: | ||
| * you can [[https://docs.python.org/3/library/zipfile.html#zipfile.ZipFile.setpassword|set the zip password]] in code: ''z.setpassword(bytes(test_passwd, "ASCII"))'' (remember encodings? this function requires ''bytes''!); | * you can [[https://docs.python.org/3/library/zipfile.html#zipfile.ZipFile.setpassword|set the zip password]] in code: ''z.setpassword(bytes(test_passwd, "ASCII"))'' (remember encodings? this function requires ''bytes''!); | ||
| * then try to extract either | * then try to extract either | ||
| - | * As mentioned before, you can also use a classic cracking tool called ''john''! Simply call it using the ''--wordlist=..'' + zip file arguments ;) | + | * As mentioned before, you can also use a classic cracking tool called ''john''! You must first extract the password hash using ''ziptojohn ZIP_FILENAME > hash.txt'' then simply call it using the ''%%--%%wordlist=..'' + hash.txt command-line arguments ;) |
| </spoiler> | </spoiler> | ||