나는이 숙제를하려고하고있다. https://www.root-me.org/en/Challenges/Cryptanalysis/File-PKZIP 나는 그것을 해독 할 함수를 쓸 때.왜 pkzip이 두 개의 암호를 허용합니까?
import subprocess from time import sleep
file = open('/home/begood/Downloads/SecLists-master/Passwords/'
'rockyou-75.txt', 'r') lines = file.readlines() file.close() for line in lines:
command = 'unzip -P ' + line.strip() + ' /home/begood/Downloads/ch5.zip'
print command
p = subprocess.Popen(
command,
stdout=subprocess.PIPE, shell=True).communicate()[0]
if 'replace' in p:
print 'y\n'
sleep(1)
그것은 암호를 중지 = scooter
: 나는 압축 해제를 사용할 때
unzip -P scooter /home/begood/Downloads/ch5.zip replace readme.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename:
하지만 그것은 말했다 :
inflating: /home/begood/readme.txt
error: invalid compressed data to inflate
그리고 실제 암호입니다 : 14535
. pkzip이 두 개의 암호를 허용하는 이유는 무엇입니까?
RSA에서 패딩 오라클 공격처럼 보입니다! – Mr2uang