The Coders Zone Posted October 11, 2018 Share Posted October 11, 2018 I am making my own client area where users can manage their account and would really like to add in autologin links to Net2FTP and ideally Phpmyadmin as well. I know how to do this using PHP, as I can have the client's cPanel username, password and FTP host ready in variables, but unfortunately Net2FTP seems to login with encrypted passwords. It's not base64 as far as I can make out, so I was wondering if anyone has tried this and was willing to help me. I noticed some time ago @InfinityFree had a Net2FTP autologin link in your client area (although this seems to have been removed), might you be able help? Quote Link to comment Share on other sites More sharing options...
DarkW1ND Posted October 11, 2018 Share Posted October 11, 2018 I can help you Quote Link to comment Share on other sites More sharing options...
The Coders Zone Posted October 12, 2018 Author Share Posted October 12, 2018 @DarkW1ND Do you know how the passwords are encrypted? Quote Link to comment Share on other sites More sharing options...
AA22Dev Posted October 12, 2018 Share Posted October 12, 2018 (edited) 21 hours ago, The Coders Zone said: I am making my own client area where users can manage their account and would really like to add in autologin links to Net2FTP and ideally Phpmyadmin as well. I know how to do this using PHP, as I can have the client's cPanel username, password and FTP host ready in variables, but unfortunately Net2FTP seems to login with encrypted passwords. It's not base64 as far as I can make out, so I was wondering if anyone has tried this and was willing to help me. I noticed some time ago @InfinityFree had a Net2FTP autologin link in your client area (although this seems to have been removed), might you be able help? Install net2ftp on your own website Download it from here https://www.net2ftp.com/download/net2ftp_v1.1.zip Then add this use this form code as example <form id="LoginForm1" action="https://installed.net2ftp.url/index.php" method="post" onsubmit="return CheckInput(this);"> <fieldset> <input type="hidden" name="ftpserver" value="ftp.yourdomain.tld"> <input type="hidden" name="ftpserverport" value="21"> <input type="hidden" name="username" value="{username}"> <input type="hidden" name="password" value="{password}"> <input type="submit" id="LoginButton1" name="Login" value="Login to FTP" alt="Login to FTP"> </fieldset> <input type="hidden" name="protocol" value="FTP"> <input type="hidden" name="state" value="browse"> <input type="hidden" name="state2" value="main"> </form> Replace https://installer.net2ftp.url/ with your https://domain.tld and ftp.domain.tld with your ftp. Edited October 12, 2018 by Aqib Code Correction Quote Link to comment Share on other sites More sharing options...
The Coders Zone Posted October 12, 2018 Author Share Posted October 12, 2018 Thank you @aqib, this partially solves my problem but I would also like to provide an auto login link to PHPmyadmin. The password, I have noticed, is encrypted in exactly the same way so I still need to work out how to encrypt the plain text password in PHP before sending the encrypted version in the URL parameter to log the user in. Unfortunately, installing PHPmyadmin yourself doesn't work, as you can only access the databases through iFastNet's specially setup version. Quote Link to comment Share on other sites More sharing options...
AA22Dev Posted October 13, 2018 Share Posted October 13, 2018 On 10/12/2018 at 9:36 PM, The Coders Zone said: Thank you @aqib, this partially solves my problem but I would also like to provide an auto login link to PHPmyadmin. The password, I have noticed, is encrypted in exactly the same way so I still need to work out how to encrypt the plain text password in PHP before sending the encrypted version in the URL parameter to log the user in. Unfortunately, installing PHPmyadmin yourself doesn't work, as you can only access the databases through iFastNet's specially setup version. Your Welcome Don't know for phpMyAdmin. Haven't tried for it Quote Link to comment Share on other sites More sharing options...
DarkW1ND Posted October 16, 2018 Share Posted October 16, 2018 On 12-10-2018 at 7:03 AM, The Coders Zone said: @DarkW1ND Do you know how the passwords are encrypted? Yep Quote Link to comment Share on other sites More sharing options...
The Coders Zone Posted October 20, 2018 Author Share Posted October 20, 2018 @DarkW1ND If you understand how they are encrypted, could you put your code here? If you'd prefer to send it privately, please can you do so via Discord? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.