Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find "modem"
- local function send_raw(text)
- modem.transmit(124, 124, text)
- end
- local function stupid_encode(text)
- local first_byte = string.byte(text, 1)
- local second_byte = string.byte(text, 2)
- local checksum = string.char(first_byte + 2, second_byte - 1)
- local to_send = checksum .. text
- return to_send
- end
- local function send(text)
- send_raw(stupid_encode(text))
- end
- local function randbytes(len)
- local out = ""
- for i = 1, len do
- out = out .. string.char(math.random(1, 253))
- end
- return out
- end
- local things = {"PotatOS", "YomatOS", "ChorOS", "ShutdownOS", "TomatOS", "BurritOS"}
- while true do
- for _, t in pairs(things) do
- send(t)
- sleep(0.2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement