8 Actions

Validate AIX Password for root from scriptGilles thank you for your help. Your answers led me to what I was looking for. In some of the othe older nix they use either crypt or bigcrypt and I was able to find libraries via the man pages. With AIX could not find it even when I attempted the find command. The C code snippet showed me where the libraries were stored. With that I was abel to write this small C program: #include <stdio.h> #include <crypt.h> / 1st param is the desired password / / 2nd param is 2 char salt */ main(argc,argv) int argc; char *argv[]; { char *p; p=crypt(argv[1],argv[2]); printf("%s",p); }

Validate AIX Password for root from scriptI can not use expect as this is not normaly available or installed on AIX servers. I have extracted the password hash and salt. What I have not found on the AIX servers is the crypt library that would allow me to use the salt and plain text password to caculate the hash. AIX like a lot of older UNIX flavors still use crypt based on the normal DES hashing scheme.