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 */