Method to hashing/encrypt password for backup

Aar

Verified User
Joined
Feb 10, 2005
Messages
209
Location
Netherlands
Hi folks,

I use this bash-script in a cronjob to make a backup to an external server.
Now i have to switch to another server. Can somebody tell me how the ftp_password is hashed/encrypted?

I believe that the password that is actually in my script is not the same as the password for the FTP access.
So it must be encrypted I think.

Bash:
#!/bin/sh
datum=`date +%u`;
`echo "action=backup&ftp_ip=123.123.123.123&ftp_username=USERNAME_HERE&ftp_password=PASSWORD_HERE&ftp_path=/$datum/&owner=admin&type=admin&value=multiple&when=now&where=ftp&who=all" >> /usr/local/directadmin/data/task.queue`
 
just add new task in directadmin and use it, or copy encrypted password from it from /usr/local/directadmin/data/admin/backup_crons.list
 
Might be MD5. DA uploaded via ncftpput before. Maybe you can find something in the upload script.
/usr/local/directadmin/scripts/ftp_upload.php
I see in there:
MD5=${ftp_md5}
but I'm no scripter so I don't know, but maybe you find some reference.
 
Back
Top