hello
i'm pretty stuck here, don't get what i'm doing wrong...
i'm running a PHP script on the shell, and I want it to run a binary called 'mkpasswd'. this binary has the habit that you can't feed it the text you want to encrypt directly somehow.
when you run it, it prompts for 'plaintext:', then you have to enter the password you want to encrypt.
eg:
[emanuel@devel ~]./mkpasswd
plaintext: <pass goes here>
encryptedpasswordhere
what i'm trying to achieve is that it sends the plaintext password I supply to mkpasswd, and get what it returns afterwards... is there no way in achieving this? I've tried it with system, exec, passthrough, backticks (``). nothing worked for me...
anyone has an idea?
thanks in advance!
Emanuel
emanuel@xconnect.ch