Monthly Archives: August 2014

php file infection

this will strip a text section out of all files when run the the directory

find . -name “*.php” -exec sed -i ‘s/<?php $irmsykfenq.*$soyyhllyjf-1; ?>//’ ‘{}’ \;

the blue text is your from and to, in that you should have an example of the inserted text to copy the start and the end section, kinda like

$irmsykfenq. lots of clever code here $soyyhllyjf-1;

so you run that and it removes your definers and everything in between.

 

cPanel insatll imagick ImageMagick

“configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.”

You get this if you have only installed the “ImageMagick” package.

You need to also install “ImageMagick-devel”.

yum install ImageMagick-devel

Go to WHM -> Software -> Module Installers -> PHP Pecl (manage).

On the box below ‘Install a PHP Pecl’ enter ‘imagick’ and click ‘Install Now’

Restart Apache.