update ass5a
[sws1-1415.git] / ass5a / sws1-assignment5-s4109503-s4202015 / exercise1b
diff --git a/ass5a/sws1-assignment5-s4109503-s4202015/exercise1b b/ass5a/sws1-assignment5-s4109503-s4202015/exercise1b
new file mode 100644 (file)
index 0000000..82f6259
--- /dev/null
@@ -0,0 +1,13 @@
+You will get root by entiring a password of which the sha256 hash is:
+       7597f68c1c45b11ade48a8d0b3e1db1cecbe2d
+
+However. There are several variables declared
+buf: array of 20 characters for holding our input
+ok: integer that stores to which function we jump
+i: integer used to loop through the buffer to clear it initially
+
+ok is allocated 28 bytes after buffer. When okay is non-falsey we will gain
+'root access' so putting any non-null byte there will make us gain root. So an
+input of 29 characters where the last characters is not null will give you
+root. For example:
+       11111111111111111111111111111