ioDaniel
Verified User
Hi Everyone
I am thinking of upgrading the default install version of PROFTP to the latest stable proftpd-1.3.2rc4 version.
I have read http://www.directadmin.com/forum/showthread.php?t=16449
and also
http://www.directadmin.com/forum/archive/index.php/t-16449.html
plus threads: ProFTP how-to UPDATE and ProFTPD 1.3.2 released!
Before I do anything, I just wanted to ask if anyone has any advice to offer. The steps look complicated and if something goes wrong - not that easy to go backwards (sorry, don't forget I am a newbie with DirectAdmin - have been running the server now for just 5 or 6 weeks).
We are running the following OS and Versions:
Compiled on Redhat CentOS 5.0
Server Version 1.33.1
Apache 2.2.6
Exim 4.67
MySQL 5.0.37
Named 9.3.3rc2
ProFTPd 1.3.1
sshd
vm-Pop3d 1.1.7f-DA-2
Some background
I have been dealing with a malicious hacker who has been using our server to send SPAM (subject of a previous thread).
I found the hacker had hacked into CGI Bins of most of the web sites we host (just 42 on this server at the moment). None of our sites use CGI Bin so I didn't check them at first until last week. Using the logs to see where the SPAM was coming from, I narrowed the search down to 4 sites and discovered a stack of .pl files in one root directory (which I knew were not installed by us). More checking and I found a stack more .pl files in the CGI Bin and so spent the rest of the day cleaning out and deleting the CGO Bin.
While this was going on, the hacker had started running his script and I could see SPAM going out as well as a mountain of email queued by the mail server. I deleted these but more kept arriving.
I then decided to STOP the services for POP3, Proftp and Exim, and this stopped the SPAm being sent / queued.
I then tried to change the password for the 4 affected sites and my own Admin login...and was unable to because some services were stopped .. so I restarted the three services, changed the passwords for the 4 sites as well as my own Master Passwords.
No one told me that DirectAdmin master passwords can't use symbols like ,# and so on. So I got locked out because I used symbols with Alphanumerics.....thank heaven for this Forum because I found how to change my password and this worked.
When I got back in, the Mail Queue was rapidly filling up again, so I deleted the 50 or so pages of queued emails...found which servers the $##@@$!!!
was coming from...tried to blacklist that IP and he immediately changed IP...but was still getting in and running his send mail script. I could see the logs showing me a list of STOR and DELE for the 4 main sites he was using...
I then went through all the hosted sites searching for .pl files and removed all of them I found in a couple of other sites.
But he was still sending SPAM...so I decided the only way was to change passwords again (this time no symbols in my Master Password), and then stop
PROFTP, EXIM and POP3.
This all happened yesterday afternoon (Sunday local time). First thing this morning, I checked the server and the MAIL QUEUE was empty. I then restarted services and no more SPAM was being sent. Its now 6 hours later and so far so good..
One last comment. I found all our sites had .shadow files and deleted 4 before thinking I should check this forum for that..and discovered I shouldn't have deleted them.
I can see there is a line of code inside the file which I assume is a meaningfull string related to DA passwords.
Is this a problem?
Which brings me back to my main question (at the top of my story).
I am thinking of upgrading the default install version of PROFTP to the latest stable proftpd-1.3.2rc4 version.
Before I do anything, I just wanted to ask if anyone has any advice to offer. The steps look complicated and if something goes wrong - not that easy to go backwards (sorry, don't forget I am a newbie with DirectAdmin - have been running the server now for just 5 or 6 weeks).
Hope to hear from you
Daniel
Admin
I am thinking of upgrading the default install version of PROFTP to the latest stable proftpd-1.3.2rc4 version.
I have read http://www.directadmin.com/forum/showthread.php?t=16449
and also
http://www.directadmin.com/forum/archive/index.php/t-16449.html
plus threads: ProFTP how-to UPDATE and ProFTPD 1.3.2 released!
Before I do anything, I just wanted to ask if anyone has any advice to offer. The steps look complicated and if something goes wrong - not that easy to go backwards (sorry, don't forget I am a newbie with DirectAdmin - have been running the server now for just 5 or 6 weeks).
We are running the following OS and Versions:
Compiled on Redhat CentOS 5.0
Server Version 1.33.1
Apache 2.2.6
Exim 4.67
MySQL 5.0.37
Named 9.3.3rc2
ProFTPd 1.3.1
sshd
vm-Pop3d 1.1.7f-DA-2
Some background
I have been dealing with a malicious hacker who has been using our server to send SPAM (subject of a previous thread).
I found the hacker had hacked into CGI Bins of most of the web sites we host (just 42 on this server at the moment). None of our sites use CGI Bin so I didn't check them at first until last week. Using the logs to see where the SPAM was coming from, I narrowed the search down to 4 sites and discovered a stack of .pl files in one root directory (which I knew were not installed by us). More checking and I found a stack more .pl files in the CGI Bin and so spent the rest of the day cleaning out and deleting the CGO Bin.
While this was going on, the hacker had started running his script and I could see SPAM going out as well as a mountain of email queued by the mail server. I deleted these but more kept arriving.
I then decided to STOP the services for POP3, Proftp and Exim, and this stopped the SPAm being sent / queued.
I then tried to change the password for the 4 affected sites and my own Admin login...and was unable to because some services were stopped .. so I restarted the three services, changed the passwords for the 4 sites as well as my own Master Passwords.
No one told me that DirectAdmin master passwords can't use symbols like ,# and so on. So I got locked out because I used symbols with Alphanumerics.....thank heaven for this Forum because I found how to change my password and this worked.
When I got back in, the Mail Queue was rapidly filling up again, so I deleted the 50 or so pages of queued emails...found which servers the $##@@$!!!
was coming from...tried to blacklist that IP and he immediately changed IP...but was still getting in and running his send mail script. I could see the logs showing me a list of STOR and DELE for the 4 main sites he was using...
I then went through all the hosted sites searching for .pl files and removed all of them I found in a couple of other sites.
But he was still sending SPAM...so I decided the only way was to change passwords again (this time no symbols in my Master Password), and then stop
PROFTP, EXIM and POP3.
This all happened yesterday afternoon (Sunday local time). First thing this morning, I checked the server and the MAIL QUEUE was empty. I then restarted services and no more SPAM was being sent. Its now 6 hours later and so far so good..
One last comment. I found all our sites had .shadow files and deleted 4 before thinking I should check this forum for that..and discovered I shouldn't have deleted them.
I can see there is a line of code inside the file which I assume is a meaningfull string related to DA passwords.
Is this a problem?
Which brings me back to my main question (at the top of my story).
I am thinking of upgrading the default install version of PROFTP to the latest stable proftpd-1.3.2rc4 version.
Before I do anything, I just wanted to ask if anyone has any advice to offer. The steps look complicated and if something goes wrong - not that easy to go backwards (sorry, don't forget I am a newbie with DirectAdmin - have been running the server now for just 5 or 6 weeks).
Hope to hear from you
Daniel
Admin
Last edited: