Decrypt ssha1 password


 
Thread Tools Search this Thread
Operating Systems AIX Decrypt ssha1 password
# 8  
Old 12-17-2014
A vague idea - can you tcpdump the users' session and find out this way what they enter?
# 9  
Old 12-17-2014
hmm are you sure that i can do that through
Code:
tcpdump

?
cause i tried it and i just see the packets between the computer and server. no user's input is displayed
# 10  
Old 12-17-2014
This depends on the permissions you have on the server, on which you have to run the command. While I did this successfully several years ago, I now reckon that it might be pointless nowadays when e.g. ssh is used...
# 11  
Old 12-17-2014
i can connect as root on the server.
the users are connected via ssh so even if i get the users session (by logging session output) i still cannot see what they enter as password
# 12  
Old 12-17-2014
The other way to try is
cp -p /etc/security/passwd /etc/security/passwd.orig

Now change the password of the user
passwd <user>

Reset the unsuccessful login count
chuser unsuccessful_login_count=0 <user>

Now open a putty session or any other emulator you use and login using new credentials for that user.

And anytime you can replace the old passwd file.

Also, is ssh logging enabled in /etc/syslog.conf file? It can also help you sometimes.

Last edited by ibmtech; 12-17-2014 at 12:53 PM.. Reason: Added ssh logging
# 13  
Old 12-17-2014
Quote:
Originally Posted by omonoiatis9
the idea of password decryption is that i could decrypt the password from /etc/security/passwd file and use it in order to connect myself and see if its working or not.
From a software perspective, you are an "attacker". The system is designed to prevent everyone from doing what you are trying to do. Passwords are not generally stored in a reversible way, to prevent people from doing exactly what you want to do -- crack their password. They're hashed instead, which is irreversible. When they enter a password it's also hashed, and the hashes compared to see if they're identical. (More or less. There's salting done -- again, to make it harder to do exactly what you are trying to do.)
# 14  
Old 12-17-2014
In a nutshell, you cannot decrypt a one-way hash function like SHA-1 (unless the hash function has serious security problems in the implementation).

End of story.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Encrypt and Decrypt a File with Password

Hello, I have few files on unix which are payroll related and I need them to encrypt with password so others wouldn't see the data. I use ETL tool and would like to know the unix command that does encryption/decryption to use in the ETL. Thank you, Sri (3 Replies)
Discussion started by: eskay
3 Replies

2. Shell Programming and Scripting

Encrypt and decrypt the password in a Shell Script

Hello, I have the following UNIX shell script which connects to the teradata database and executes the SQL Queries. For this, I am passing database name, username and password. I don't want to reveal my password to anyone. So, is there any way that I can encrypt my password and read the... (2 Replies)
Discussion started by: ronitreddy
2 Replies

3. Shell Programming and Scripting

Encrypt and decrypt a password in shell script

Hi All, very good morning all. I am trying to connect to informatica repository by using shell script. I have written pmrep connect command in the script file. But i need to provide repository, domain ,username and password to connect. Username and password are hard coded in the script... (8 Replies)
Discussion started by: SekhaReddy
8 Replies

4. Shell Programming and Scripting

Encrypt Password file and decrypt in a shell script

Hi All, I have stored Oracle database passwords in a hidden file - .pass_file. My shell script reads the hidden file, gets the password and then logs in to the Oracle database and runs some SQL script. My requirement is: I need to provide the shell script to be executed by someone else. So,... (1 Reply)
Discussion started by: sunpraveen
1 Replies

5. AIX

Problem with password algorithm ssha1

Hello, I have an AIX 6.1 machine and a few months ago i changed the default password algorithm to ssha1 after suggestions of our security department that it is a more secure algorithm to encrypt passwords rather than standard AIX algorithm. I noticed that i am having some problems every now and... (0 Replies)
Discussion started by: omonoiatis9
0 Replies

6. Shell Programming and Scripting

Encrypt and Decrypt

I have script for all oracle prod db. I have hard coded the username / password. I need a mechanism to encode and decode the username / password in a shell script. Another challenge is I use the username and password in a Select command for oracle DB. How can call the decrypted... (2 Replies)
Discussion started by: ilugopal
2 Replies

7. Solaris

Very slow decrypt

Hi Folks, Currently restoring some data that has been encrypted using the naitive Solaris encrypt/decrypt commands. Taking ages, anyone used these before and are they usually really slow? Thanks Rgrds Martin (3 Replies)
Discussion started by: callmebob
3 Replies

8. Shell Programming and Scripting

To decrypt encrypted password

Hi folks, What will be the easy way to decrypt encrypted passwords on MySQL table. Googling brought me many suggestions on crypt/decrypt running scripts. Please advise. TIA Remark: I think the encrypt function of MySQL uses the Unix crypt command to encrypt B.R. satimis (1 Reply)
Discussion started by: satimis
1 Replies

9. UNIX for Dummies Questions & Answers

vi -x <filename>.x "script to decrypt w/out asking password"

I'm a newbee in unix. Could anyone help me how to decrypt this using a script w/out asking me for a key. I want the key to be included in the script so everytime I will run the script it will automatically open without aksing me to insert the key. vi -x <myfile>.x (0 Replies)
Discussion started by: Boyet
0 Replies

10. Shell Programming and Scripting

encrypt and decrypt password

how do i encrypt and decrypt a password (2 Replies)
Discussion started by: sanwish
2 Replies
Login or Register to Ask a Question