Skip to content

Instantly share code, notes, and snippets.

@exzhawk
exzhawk / bios.lua
Created February 12, 2017 14:55 — forked from fnuecke/bios.lua
Primitive remote code execution via OC network
local m=component.proxy(component.list("modem")())
m.open(2412)
local function respond(...)
local args=table.pack(...)
pcall(function() m.broadcast(2412, table.unpack(args)) end)
end
local function receive()
while true do
local evt,_,_,_,_,cmd=computer.pullSignal()
if evt=="modem_message" then return load(cmd) end