Jump to content




Remote shell control


  • You cannot reply to this topic
No replies to this topic

#1 PwnCC

  • Members
  • 32 posts

Posted 18 August 2017 - 08:47 PM

This code is able to fetch rednet messages and execute them as shell commands. You can edit this in any way. For example add a protocol to make sure your remote execution is secure. This program is invented by PwnCC.

local function update()
while true do
local event, senderId, msg, protocol = os.pullEvent("rednet_receive")
shell.run(msg)
rednet.broadcast()
end
end
end
parallel.waitForAny(update, function() shell.run("shell") end)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users