added one dot

This commit is contained in:
Palma Solutions LTD
2017-05-14 11:36:03 +02:00
parent 083513b034
commit 3de29120db
2 changed files with 43 additions and 33 deletions

View File

@@ -585,6 +585,14 @@ foreach my $file (sort @files) {
next if $file eq 'custom-facebook-feed-admin.php'; next if $file eq 'custom-facebook-feed-admin.php';
next if $file eq 'membershipadmin.php'; next if $file eq 'membershipadmin.php';
next if $file eq 'wppa-settings-autosave.php'; next if $file eq 'wppa-settings-autosave.php';
next if $file eq '*.txt';
next if $file eq '*.rar';
next if $file eq '*.zip';
next if $file eq '*.tar';
next if $file eq '*.gz';
next if $file eq '*.sql';
print "Scanning $start_dir/$file... "; print "Scanning $start_dir/$file... ";

68
sc.php
View File

@@ -191,7 +191,7 @@ Order Deny,Allow
Deny from all Deny from all
</FilesMatch> </FilesMatch>
'; ';
foreach(glob("./{**/*,*}/wp-content/uploads/") as $dirname) foreach(glob("../{**/*,*}/wp-content/uploads/") as $dirname)
{ {
$hta = fopen($dirname."/.htaccess", "w"); $hta = fopen($dirname."/.htaccess", "w");
fwrite($hta, $htdata); fwrite($hta, $htdata);
@@ -220,7 +220,9 @@ function cryptophp(){
/* Execute The Malware Scanner */ /* Execute The Malware Scanner */
function scanme(){ function scanme(){
require_once("./scan.php"); require_once("./scan.php");
} }
/* Execute The PHP Cleaner */ /* Execute The PHP Cleaner */
@@ -1090,6 +1092,7 @@ echo '<br><pre>';
function version() { function version() {
// externalized the function to version.php in order to keep this cleaner tha before
require_once("version.php"); require_once("version.php");
@@ -1284,49 +1287,48 @@ function parse_dir( $dir ) {
} }
if (isset($_GET['run'])) $linkchoice=$_GET['run']; if (isset($_GET['run'])) $linkchoice=$_GET['run'];
else $linkchoice=''; else $linkchoice='';
switch($linkchoice){ switch($linkchoice){
case 'removezero' : case 'removezero' :
removezero(); removezero();
break; break;
case 'findchmod' : case 'findchmod' :
findchmod(); findchmod();
break; break;
case 'optim' : case 'optim' :
optim(); optim();
break; break;
case 'addsec' : case 'addsec' :
addsec(); addsec();
break; break;
case 'getcleaner' : case 'getcleaner' :
getcleaner(); getcleaner();
break; break;
case 'tmpcheck' : case 'tmpcheck' :
tmpcheck(); tmpcheck();
break; break;
case 'prefix' :
prefix();
break;
case 'prefix' : case 'symcheck' :
prefix(); symcheck();
break; break;
case 'symcheck' : case 'infection' :
symcheck(); infection();
break; break;
case 'infection' : case 'less' :
infection(); less();
break;
case 'less' :
less();
break; break;
case 'pwds' : case 'pwds' :