This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
FuuuAInfiniteLoop(F.A.I.L)'s profile picture

Modem hacker!

Started by FuuuAInfiniteLoop(F.A.I.L), 11 February 2013 - 08:40 AM
FuuuAInfiniteLoop(F.A.I.L) #1
Posted 11 February 2013 - 09:40 AM
master computer with modem on back and monitor on top.


local modem1 = peripheral.wrap("back")
monitor = peripheral.wrap("top")
term.redirect(monitor)
while true do
local messageArguments = {os.pullEvent("modem_message")}
for i,v in pairs(messageArguments) do
  print(v)
end
end

computers that receive the messages (needs to be configured):

sides = {"top", "back", "left", "right"}
channelfrom1 = 2
channelto1 = 129
channelfrom4 = 130
channelto4 = 258
channelfrom3 = 259
channelto3 = 387
channelfrom2 = 388
channelto2 = 516
local modem1 = peripheral.wrap("top")
local modem2 = peripheral.wrap("back")
local modem3 = peripheral.wrap("left")
local modem4 = peripheral.wrap("right")
local modemsend = peripheral.wrap("bottom")
for i=channelfrom1, channelto1 do
modem1.open(i)
end
for i=channelfrom2, channelto2 do
modem2.open(i)
end
for i=channelfrom3, channelto3 do
modem3.open(i)
end
for i=channelfrom4, channelto4 do
modem4.open(i)
end
modemsend.open(1)
while true do
local messageArguments = {os.pullEvent("modem_message")}
for i,v in pairs(messageArguments) do
  modem.transmit(1, 1, v)
end
end
anonimo182 #2
Posted 11 February 2013 - 10:13 AM
Is this a hack? Is more kind of a repeater…
FuuuAInfiniteLoop(F.A.I.L) #3
Posted 11 February 2013 - 03:46 PM
Is this a hack? Is more kind of a repeater…
It search with multiples computers on every chanel and reply then to channel 1 so the master computer can display them, is more and interceptor
anonimo182 #4
Posted 11 February 2013 - 04:18 PM
Well, so many holes in it… The most important is in the main computer, you didn't open channel 1
1lann #5
Posted 11 February 2013 - 04:39 PM
Well, so many holes in it… The most important is in the main computer, you didn't open channel 1
He did open, near the end right before the while loop: modemsend.open(1)
also doesn't normal rednet commands work too in 1.5? Like rednet.send? Does this intercept rednet.send too?
Dlcruz129 #6
Posted 11 February 2013 - 05:06 PM
Well, so many holes in it… The most important is in the main computer, you didn't open channel 1
He did open, near the end right before the while loop: modemsend.open(1)
also doesn't normal rednet commands work too in 1.5? Like rednet.send? Does this intercept rednet.send too?

He's talking about the master computer (first code block)
1lann #7
Posted 11 February 2013 - 06:44 PM
Well, so many holes in it… The most important is in the main computer, you didn't open channel 1
He did open, near the end right before the while loop: modemsend.open(1)
also doesn't normal rednet commands work too in 1.5? Like rednet.send? Does this intercept rednet.send too?

He's talking about the master computer (first code block)
Ahhh right ok, I see.