#139 password from commanline is visible in processes list

v1.0 (example)
open
nobody
password (1)
5
2014-12-19
2014-04-13
Dimitri P.
No

I'sorry to inform you that I`m watching #43 bug now in p7zip 9.20 (archlinux, x86-64).
The command

ps ax |grep 7z

shows me all my passwords

Discussion

  • my p7zip
    my p7zip
    2014-04-30

    As a workaround :

    enter the password manually (don't use -pmy_password")

    you can try "expect" to automatically enter the password manually ...

    example of script :

    #!/usr/bin/expect -f

    spawn 7z x protected_archive.7z
    expect "Enter pasword (will not be echoed) :"
    send "my_password\r"

    expect {
    "*\$ "
    }

     
  • Pascal
    Pascal
    2014-09-18

    I attached a patch that allows to read the password from a file. This should solve the problem.

    The usage is as follows:

    7za x -fpsecret.txt protected_archive.7z
    

    the file secret.txt contains the password.