Category: Misc

Mounting cloned disk

If you try to mount a cloned disk then you may get an error about duplicate UUID values. You can override with the “nouuid” option:

If the disk is using LVM then additional steps will be required:

Now you can list the partitions with lsblk and mount the desired logical volume with the “nouuid” option.    

Read More »

Great Article – Why Do Websites Get Hacked

Great article from the team at Sucuri about why websites get hacked: https://blog.sucuri.net/2015/02/why-websites-get-hacked.html Covering automation, targeted vs attacks of opportunity and the motivation behind hacking, this article is a great introduction for the non technical user.

Read More »

GoAccess Web Log Analyzer

Here’s a great webserver log analysis tool. It’s lightweight, fast and runs from the command line on Linux: http://goaccess.prosoftcorp.com/ Just download, build and run with something like:

I also like generating an HTML report with something like:

Read More »

Prepend Text To Start Of Every Line

Prepend the text “foo” to the start of every line in file. With sed:

With perl:

Taken from: Prepend ## to every line in a text file

Read More »

Malware Scanner

Here’s a good tool for finding malware in a site: http://www.rfxn.com/projects/linux-malware-detect/ It’s easy to install as follows: Download and unpack.

Install

Configure email alerts. Edit /usr/local/maldetect/conf.maldet and change the following parameters:

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.