SHOW:
|
|
- or go back to the newest paste.
1 | if not _G["rednet"] then | |
2 | return | |
3 | end | |
4 | local o = os.pullEventRaw | |
5 | ||
6 | os.pullEventRaw = function() | |
7 | local a = table.pack(o()) | |
8 | if a[1] == "modem_message" then | |
9 | if string.match(debug.traceback(), "/rom/apis/rednet.lua") then | |
10 | print("[!] Rednet called os.pullEventRaw") | |
11 | print("[+] Crashing rednet") | |
12 | error("nya") | |
13 | end | |
14 | end | |
15 | return table.unpack(a) | |
16 | end | |
17 | ||
18 | local p = _G.printError | |
19 | _G.printError = function() | |
20 | print("[!] Got printError call") | |
21 | _G.printError = p | |
22 | _G.os.pullEventRaw = o | |
23 | _G["rednet"] = nil | |
24 | print("[+] Starting MultiShell") | |
25 | os.run({}, "rom/programs/advanced/multishell.lua") | |
26 | end | |
27 | ||
28 | print("[+] Queueing bogus modem message") | |
29 | os.queueEvent("modem_message") | |
30 |