Код: Выделить всё
$strCommandLine = "7z e '$zippath' -p'password' file.name";
system($strCommandLine);
< /code>
Система выводит следующее при неправильном пароле: < /p>
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,32 CPUs AMD EPYC 7351P 16-Core Processor (800F12),ASM,AES-NI)
Scanning the drive for archives:
1 file, 15072 bytes (15 KiB)
Extracting archive: /filepath/name.zip
ERROR: Wrong password--
Path =/filepath/name.zip
: Type = zip
Physical Size = 15072
File.name
< /code>
Я оглянулся и ничего не вижу. По сути, ищу: < /p>
if(badpassword)
{
send email to admin for PW change
}
Подробнее здесь: https://stackoverflow.com/questions/755 ... g-password
Мобильная версия