Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not http or not http.websocket then return "Websockets do not actually exist on this platform" end
- local mon = peripheral.find("monitor")
- local ws = http.websocket("wss://osmarks.tk/wsthing/".. ...)
- if mon then term.redirect(mon) mon.setTextScale(0.5) term.clear() term.setCursorPos(1,1) end
- local function recv()
- return ws.receive()
- end
- while true do
- -- Receive and display code from backdoor's admin end
- local code = recv()
- print(code .. "\n")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement