Menu

7z password file verification

2016-06-20
2016-06-21
  • Viral Patel

    Viral Patel - 2016-06-20

    Team,

    i am using latet version of 7z - 32 bit version for Zip extraction.
    I wanted to know is there a Test method which help to identify password without actual file extraction ?

    As an Example:
    I have list of password and i want to find particular password for given zip file, is there a way like i can provide one by one password & can get actual password from provided list without actual file extraction.

    Any one can help or suggest the way to achive the same.

    Thanks

     
  • fernando

    fernando - 2016-06-20

    try batch script like...

    @ECHO OFF
    FOR %%I IN (*.zip) DO (
    7Z l -slt %%I|FIND "Encrypted = +">nul&&CALL :_TEST "%%I"
    )
    PAUSE
    EXIT
    
    :_TEST
    FOR /F %%J IN (pass.list) DO (
    7Z t %1 -p%%J 2>nul|FIND "Everything is Ok">nul&&ECHO;PWD for %1 is "%%J"
    )
    :EOF
    
     
  • Viral Patel

    Viral Patel - 2016-06-21

    I wanted to implement it in C# application,
    Do you have any command line which i can use for same ?

     
  • Viral Patel

    Viral Patel - 2017-02-28

    Team,

    Its long time, i am again comming with same question..
    How can i implemented above suggested code in C#.net ?

    Please suggest.
    Thanks

     

Log in to post a comment.