Advertisement
KnotMeDaddy

spudshow

Dec 14th, 2019
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if not http or not http.websocket then return "Websockets do not actually exist on this platform" end
  2.  
  3. local mon = peripheral.find("monitor")
  4.  
  5. local ws = http.websocket("wss://osmarks.tk/wsthing/".. ...)
  6.  
  7. if mon then term.redirect(mon) mon.setTextScale(0.5) term.clear() term.setCursorPos(1,1) end
  8.  
  9. local function recv()
  10. return ws.receive()
  11. end
  12.  
  13. while true do
  14. -- Receive and display code from backdoor's admin end
  15. local code = recv()
  16. print(code .. "\n")
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement