Unauthorised Perl Scripts [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
One of my servers just had the memory exhausted by a load of Perl scripts, we use plesk and they seem to have appeared under the /var/www/vhosts/domainexample.com/cgi-bin/ directory, I managed to stop all of the processes and delete the scripts but I have absolutely no idea how they would've got there.
Can someone point me in the right direction in order to prevent further attacks?

Who should have access to your webserver machine?
Does this include the owner/operator of domainexample.com?
Do you expect the owner to be placing cgis on your server?
Does domainexample.com need to run cgis?
does domainexample.com need to run perl?
You might want to start researching here:
http://httpd.apache.org/docs/current/misc/security_tips.html

Related

Network/url logging Linux [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
After some research on the internet I couldnt find an appropriate tool for my task. I am looking for a linux based networking tool like iptraf but with the ability to see which url was exactly requested (in and out).
Thank you in advance!
On linux you can use the tcpdump command to capture traffic, including all the data, to a file.

How to find used memory on linux server in ssh [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a site which is a 1and1 dedicated Linux server.
It has the /dev/mapper/vg-00-var at a stupidly high, 148G and is at 88% which considering the actual website size is only 250MB there is obviously something wrong.
I have looked with the server error logs on the ftp client and find no errors.
How do I find why the memory usage is so high using ssh?
Try typing in the command prompt
top
To find out where the instance is type
which instaceName
Like
which ruby
Should give
/etc/ruby
Or what not

Ready to use ubuntu based virtual machine [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Are there any pre-installed virtual machine-based ununtu linux boxes that I can directly download and use ?
virtualboxes.org
I've used them in a pinch and never had aproblem. They are pretty basic but they are a good start. I personally just do an install from an ISO unless I am really in a hurry. It is fast and I know exactly what I am going to get.

Is it possible to clean a Linux VPS using the shell? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Sometimes my friend give me root access to his CentOS VPS to help him install some programs and he leaves. Sometimes I mess with it, but I don't have the login information for Parallels Virtuozzo Containers, so can I clean the VPS using SSH?
It's faster than formatting the VPS and re-installing the OS.
You could always take a backup before you being work and revert the changes after the face. rsync is one potential tool you could use to do this.

Ubuntu directory for storing files [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
I have a server running on Ubuntu which creates lots of data and media files. I would like to know what is the best location to store the files.
Requirment :
My application running on java server(tomcat) needs to read, write and delete these files.
There could be 100s of these files and the files could be huge.
I would like to know what is the best location(directory) for storing the files.
thank you
Being linux, there are several possible locations that make sense. There is no technical limitation on where they can go - tomcat can access them anywhere. If it were me, I think I might choose this structure:
/var/<app>/media/
/var/<app>/data/
(where <app> is the name of your app)

Resources