We can use below code to remove repeated malicious scripts #!/bin/bash pattern_1=”<FilesMatch \”.(py|exe|php)$\”>” pattern_2=”[ ]*Order allow\,deny\n” pattern_3=”[ ]*Deny from all\n” pattern_4=”[ ]*<\/FilesMatch>\n” pattern_5=”[ ]*<FilesMatch \”\^(about.php|radio.php|index.php|content.php|lock360.php)$\”>\n” pattern_6=”[ ]*Order allow\,deny\n” pattern_7=”[ ]*Allow from all\n” pattern_8=”[ ]*<\/FilesMatch>\n” complete_pattern=”$pattern_1\n$pattern_2$pattern_3$pattern_4$pattern_5$pattern_6$pattern_7$pattern_8″ replacement_1=”” replacement_2=”” replacement_3=”” replacement_4=”” replacement_5=”” replacement_6=”” replacement_7=”” replacement_8=”” complete_replacement=”$replacement_1$replacement_2$replacement_3$replacement_4$replacement_5$replacement_6$replacement_7$replacement_8″ filename=”.htaccess” echo “” echo “Replacing the lines..” sed -i “/$pattern_1/{ ...
0484 244 1461
[email protected]