12.09.2016 Views

ESCAPING THE LUA 5.2 SANDBOX WITH UNTRUSTED BYTECODE

2cp3MRc

2cp3MRc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

What you probably want to do<br />

You probably want to call<br />

os.execute or another<br />

os.execute("/bin/sh")<br />

interesting function with some<br />

Text<br />

<br />

Would be nice if we could craft<br />

arbitrary TValues, because we<br />

can point one anywhere in the<br />

Lua stack<br />

(lua_CFunction *)<br />

0x16<br />

0xdeadbeef<br />

binary if we can defeat ASLR,<br />

and then call it

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

Saved successfully!

Ooh no, something went wrong!