Current time: 12-23-2024, 08:52 AM Hello There, Guest! (LoginRegister)


Post Reply 
Decrypting FTP Passwords
Author Message
rsmithgs Offline
Junior Member
*

Posts: 176
Joined: Apr 2007
Reputation: 1
Post: #1
Decrypting FTP Passwords
Hi Guys,

Sorry about this, I'm sure this has been posted before but I cannot find it.

How do I decrypt the FTP passwords stored in the database?

Cheers

Rich
07-04-2009 05:32 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Decrypting FTP Passwords
Will be difficult because the password is crypted with random salt:

$cryptpw = crypt($clearpw, generate_rand_salt())

The mailpasswords (and user sql passwords) are crypted in a different way so that ispcp can decrypt and use the cleartext password.

/J
07-04-2009 08:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rsmithgs Offline
Junior Member
*

Posts: 176
Joined: Apr 2007
Reputation: 1
Post: #3
RE: Decrypting FTP Passwords
(07-04-2009 08:49 AM)joximu Wrote:  Will be difficult because the password is crypted with random salt:

$cryptpw = crypt($clearpw, generate_rand_salt())

The mailpasswords (and user sql passwords) are crypted in a different way so that ispcp can decrypt and use the cleartext password.

/J

Thanks Joximu, so I assume if I want to recover the passwords I will have to do a brute force attack?

Many Thanks

Richard
OK think I have found a way to help me.

I wanted to migrate 2 ISPCP servers into one. One of the servers only has a few FTP accounts on it, I have found I can just copy the data with encrypted password from one database to another which allows login.

Smile
(This post was last modified: 07-04-2009 05:52 PM by rsmithgs.)
07-04-2009 05:43 PM
Find all posts by this user Quote this message in a reply
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #4
RE: Decrypting FTP Passwords
You can use dsniff.
Code:
screen dsniff port 21 -w ftplogin.txt
and wait

Knut
07-04-2009 07:16 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: Decrypting FTP Passwords
also tcpdump will do it... just log to a file with a long sniflen...

/J
07-05-2009 08:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rsmithgs Offline
Junior Member
*

Posts: 176
Joined: Apr 2007
Reputation: 1
Post: #6
RE: Decrypting FTP Passwords
Sniffing is another idea but it may be a month or so until everyone has logged in :-)
07-06-2009 03:40 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)