Skip to content

erezto/lua-sandbox-escape

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
x86
 
 
 
 
 
 

Lua 5.2 sandbox escape

Note: docker file assume x86_64 hostx

x86 environment

Create docker image

docker build --tag lua-escape/x86:latest x86

x86_64 environment

Create docker image

docker build --tag lua-escape/x86_64:latest x86_64

Run exploit

First, run container

#From host shell, run either x86 version or x86_64 version
docker run -ti lua-escape/x86:latest /bin/bash  # x86 version
#OR
docker run -ti lua-escape/x86_64:latest /bin/bash  # x86_64 version 

Find relative address of target function, system

#On container
#!/bin/bash
#Setup
/opt/setup.sh

Exploit

#!/bin/bash
#Exploit!
lua /opt/exploit.lua

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published