Re:Hack your way through Stripe's Capture the Flag
by xdissent on Friday February 24, 2012 @03:15AM
(#3628426)
Wow, I read in this very thread that NX was for sure disabled on level03 so I've been barking up the wrong tree completely. Your direction is brilliant! I never would have come up with that. Here's my attempt: http://pastebin.com/XVkfLaiB
Wait. wtf how is yours working with NX on?
Edit: OH! Yours doesn't actually manipulate the stack so it doesn't get caught? That makes sense. I should have noticed the __stack_chk_fail calls.
Re:Hack your way through Stripe's Capture the Flag
by mpetrov on Friday February 24, 2012 @03:40AM
(#3628481)
For level 06, I came up with a completely different solution. After hitting my head against the wall all day trying to fight with blocking/non-blocking IO, I resorted to a timing attack on the system call which worked really well. Check it out:
https://gist.github.com/1899389 (SPOILERS!)
Re:Hack your way through Stripe's Capture the Flag
by zx2c4 on Saturday February 25, 2012 @03:32AM
(#3632538)
That's neat. Timing. Awesome.
I made mine a bit more reliable and made a movie.
Source: http://pastebin.com/6M4cq8gB Video: http://www.youtube.com/watch?v=_q2wTd1jgUQ
Re:Hack your way through Stripe's Capture the Flag
by benmmurphy on Saturday February 25, 2012 @09:57AM
(#3633044)
i did it a different way to both of you but similar to zx2c4 's :) i found a way to block the child process from writing to stderr. i thought the way they were writing to stderr/ stdout was too much of a coincidence. all stdout writes end with \n
Re:Hack your way through Stripe's Capture the Flag
by zx2c4 on Saturday February 25, 2012 @04:12PM
(#3633870)
Wadja end up doin'? Source?
Re:Hack your way through Stripe's Capture the Flag
by benmmurphy on Sunday February 26, 2012 @02:52AM
(#3635108)
Re:Hack your way through Stripe's Capture the Flag
by vd83 on Sunday February 26, 2012 @06:07PM
(#3637112)
I had the same solution, just different heuristics..
Re:Hack your way through Stripe's Capture the Flag
by zx2c4 on Saturday February 25, 2012 @07:46PM
(#3634382)
All cleaned up now: http://git.zx2c4.com/Stripe-CTF/tree/
Don't look at this if you actually want to enjoy the contest.
http://pastebin.com/VJ4xpawq