fixed some paths
This commit is contained in:
8
sc.php
8
sc.php
@@ -839,12 +839,12 @@ echo '<input name="submit" type="submit" value="Go"><br /><br />';
|
|||||||
$username = system('whoami');
|
$username = system('whoami');
|
||||||
echo "insert the location you wish to get the size for: <br />";
|
echo "insert the location you wish to get the size for: <br />";
|
||||||
echo '<form method="post" enctype="multipart/form-data">';
|
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">';
|
echo '<input name="send" type="submit" value="Get it">';
|
||||||
if(($_POST['send']) == "Get it") {
|
if(($_POST['send']) == "Get it") {
|
||||||
$path = ($_POST["path"]);
|
$path = ($_POST["path"]);
|
||||||
echo "<br />Getting size of: ".$path."<br/>";
|
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 */
|
/* looking for SQL dumps that may expose sensitive info */
|
||||||
function findsql(){
|
function findsql(){
|
||||||
echo 'checking for SQL dumps <br />';
|
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*/
|
/* looking for large files that may crash the scans*/
|
||||||
function findlarge(){
|
function findlarge(){
|
||||||
echo 'checking for large files (over 10MB) <br/>';
|
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 */
|
/* looking for symlinks that may expose sensitive data and will crash the scans */
|
||||||
|
|||||||
Reference in New Issue
Block a user