From 910999ea9c6da60c2644ef39ed37825d1a0dbee3 Mon Sep 17 00:00:00 2001 From: Palma Solutions LTD Date: Mon, 15 May 2017 12:38:06 +0200 Subject: [PATCH] fixed some paths --- sc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sc.php b/sc.php index 44dc881..f3fac50 100644 --- a/sc.php +++ b/sc.php @@ -839,12 +839,12 @@ echo '

'; $username = system('whoami'); echo "insert the location you wish to get the size for:
"; echo '
'; - echo $this->top_dir.''; + echo ''.$GLOBALS["docroot"].''; echo ''; if(($_POST['send']) == "Get it") { $path = ($_POST["path"]); echo "
Getting size of: ".$path."
"; - system('du -sh '.$this->top_dir.$path); + system('du -sh '.$GLOBALS["docroot"].$path); } } @@ -860,13 +860,13 @@ echo '

'; /* looking for SQL dumps that may expose sensitive info */ function findsql(){ echo 'checking for SQL dumps
'; - system('find '.$GLOBALS[doc_root].' -name "*.sql" -exec du -sh {} \;'); + system('find '.$GLOBALS["docroot"].' -name "*.sql" -exec du -sh {} \;'); } /* looking for large files that may crash the scans*/ function findlarge(){ echo 'checking for large files (over 10MB)
'; - system('find '.$GLOBALS[doc_root].' -size +10000k -exec du -sh {} \;'); + system('find '.$GLOBALS["docroot"].' -size +10000k -exec du -sh {} \;'); } /* looking for symlinks that may expose sensitive data and will crash the scans */