diff --git a/.user.ini b/.user.ini index fe3eb46..4e65230 100644 --- a/.user.ini +++ b/.user.ini @@ -4,3 +4,4 @@ set_time_limit = 0 display_errors = 0 max_input_time = 50000 default_socket_timeout = 50000 +exif.encode_unicode = UTF-8 \ No newline at end of file diff --git a/README.md b/README.md index 4608e8e..786a662 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ May 2017 - v4.0.3 TODO: + - beautify the code + - move fingerprints to database + - ditch as much bash code as possible + - add more CMS fingerprints - clear error logs & garbage files - add chown - add suspicious plugins - done for WP diff --git a/sc.php b/sc.php index 1c8f132..417a521 100644 --- a/sc.php +++ b/sc.php @@ -14,28 +14,7 @@ $error = "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried t ..:: Global Account Maintenance Tool ::.. <?php print_r($version); ?> released <?php print_r($released); ?> - by <?php print_r($author); ?> [ <?php print_r($mail); ?> ] - + @@ -217,8 +196,8 @@ Order Deny,Allow Deny from all '; - system("for i in `find ../ -type d -path '*/wp-content/uploads' -print;`; do echo -e '".$htdata."' >> \$i/.htaccess; done"); - system("for i in `find ../ -type d -path '*/tmp' -print;`; do echo -e '".$htdata."' >> \$i/.htaccess; done"); + system("for i in `find ../ -type d -path '*/wp-content/uploads';`; do echo $i && echo -e '".$htdata."' >> \$i/.htaccess; done"); + system("for i in `find ../ -type d -path '*/tmp'`; do echo $i && echo -e '".$htdata."' >> \$i/.htaccess; done"); /* Joomla /images may cause a ton of false positive patches so we'll research this further */ // system("for i in `find ./ -type d -path '*/images' -print;`; do echo -e '".$htdata."' >> \$i/.htaccess; done"); echo "all patched\n"; @@ -252,11 +231,6 @@ function cleanPL(){ system("./malware.pl"); } -/* Site Transfer Script */ -function transfer(){ -system("./transfer.pl"); - -} /* EXIF scanner */ function checkexif(){ ini_set('exif.encode_unicode', 'UTF-8');