Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not _G["rednet"] then
- return
- end
- local o = os.pullEventRaw
- os.pullEventRaw = function()
- local a = table.pack(o())
- if a[1] == "modem_message" then
- if string.match(debug.traceback(), "/rom/apis/rednet.lua") then
- print("[!] Rednet called os.pullEventRaw")
- print("[+] Crashing rednet")
- error("nya")
- end
- end
- return table.unpack(a)
- end
- local p = _G.printError
- _G.printError = function()
- print("[!] Got printError call")
- _G.printError = p
- _G.os.pullEventRaw = o
- _G["rednet"] = nil
- print("[+] Starting MultiShell")
- os.run({}, "rom/programs/advanced/multishell.lua")
- end
- print("[+] Queueing bogus modem message")
- os.queueEvent("modem_message")
Add Comment
Please, Sign In to add comment