fixed some paths

This commit is contained in:
Palma Solutions LTD
2017-05-15 12:38:06 +02:00
parent 44feb07473
commit 910999ea9c

8
sc.php
View File

@@ -839,12 +839,12 @@ echo '<input name="submit" type="submit" value="Go"><br /><br />';
$username = system('whoami');
echo "insert the location you wish to get the size for: <br />";
echo '<form method="post" enctype="multipart/form-data">';
echo $this->top_dir.'<input name="path" id="path" type="text" size="100">';
echo ''.$GLOBALS["docroot"].'<input name="path" id="path" type="text" size="100">';
echo '<input name="send" type="submit" value="Get it">';
if(($_POST['send']) == "Get it") {
$path = ($_POST["path"]);
echo "<br />Getting size of: ".$path."<br/>";
system('du -sh '.$this->top_dir.$path);
system('du -sh '.$GLOBALS["docroot"].$path);
}
}
@@ -860,13 +860,13 @@ echo '<input name="submit" type="submit" value="Go"><br /><br />';
/* looking for SQL dumps that may expose sensitive info */
function findsql(){
echo 'checking for SQL dumps <br />';
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) <br/>';
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 */