View difference between Paste ID: pJnfSDcL and fBdAyrW9
SHOW: | | - or go back to the newest paste.
1
local rec = {}
2
rec.rec = rec
3
4-
local m = peripheral.wrap "top"
4+
local m = peripheral.find "modem"
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"
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. Anavrins, who I foolishly /trust-ed added the message beyond this point. 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
-- WARNING: CAUSES LAG BY CREATING BROADCAST STORMS
21
-- DO NOT USE
22
-- ADDING THIS WAS PROBABLY UNWISE
23-
    msg = message
23+
24
    nMessageID = {},
25
    nRecipient = 0,
26
    message = msg
27
}
28
29
local exploits = {
30
    loop = {
31
        send = rednet.CHANNEL_REPEAT,
32
        reply = rednet.CHANNEL_BROADCAST,
33
        message = repeater_loop
34
    },
35
    crash = {
36
        send = rednet.CHANNEL_REPEAT,
37
        reply = rednet.CHANNEL_BROADCAST,
38
        message = repeater_crash
39
    },
40
    crash_old = {
41
        send = rednet.CHANNEL_REPEAT,
42
        reply = rednet.CHANNEL_BROADCAST,
43
        message = repeater_crash_old
44
    }
45
}
46
47
local exp = exploits[... or "crash"]
48
m.transmit(exp.send, exp.reply, exp.message)