This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Mumbai's profile picture

Rednet Wiretap

Started by Mumbai, 15 April 2016 - 10:19 AM
Mumbai #1
Posted 15 April 2016 - 12:19 PM
Here's a simple Wiretapping script. Hope this is not classified as "malicious"

for n,m in ipairs(rs.getSides()) do rednet.open(m) end -- Opens all rednet sides.
while true do
  event, id, text = os.pullEvent()
  if event == "rednet_message" then
    print(id .. "> " .. text)
  end
end
pastebin get tVUCPc7L wiretap

Any Questions?
Edited on 18 May 2016 - 01:20 PM
Goof #2
Posted 15 April 2016 - 12:38 PM
Please use the
[code] 
tags when posting code.

Neat, but what about "modem_message" events? Is that going to be added?
Edited on 15 April 2016 - 10:39 AM
Anonymous #3
Posted 15 April 2016 - 01:31 PM
Please use the
[code] 
tags when posting code.

Neat, but what about "modem_message" events? Is that going to be added?

Sure, I'll look into it. My friends and I are a bit new to CC lua, but yeah, we'll see if we can add it without any errors.

Thanks for the tip.
Edited on 15 April 2016 - 11:36 AM
Anavrins #4
Posted 15 April 2016 - 04:27 PM
All of this is common knowledge.

A modem_message wiretap requires a minimum of 103 computers each with 5 wireless modems and a wired one to communicate with a central comp.
Something similar as this http://www.computercraft.info/forums2/index.php?/topic/25918-
Edited on 15 April 2016 - 02:27 PM
Creator #5
Posted 15 April 2016 - 07:25 PM
Please use the
[code] 
tags when posting code.

Neat, but what about "modem_message" events? Is that going to be added?

Sure, I'll look into it. My friends and I are a bit new to CC lua, but yeah, we'll see if we can add it without any errors.

Thanks for the tip.

Lua is the same everywhere. There are just some differences in the methods available to you.
Lupus590 #6
Posted 15 April 2016 - 07:36 PM
Lua is the same everywhere.

Actually CC is very different to vanilla Lua in the way that it handles API's
Creator #7
Posted 15 April 2016 - 07:55 PM
Lua is the same everywhere.

Actually CC is very different to vanilla Lua in the way that it handles API's

Basically what I said. ==> "There are just some differences in the methods available to you."
Anonymous #8
Posted 16 April 2016 - 11:08 PM
Lua is the same everywhere.

Actually CC is different to vanilla Lua in the way that it handles API's
Yeahh, as games I go one that allow you to code in(ie Roblox) are similar by the language, but the APIS(as you said), or even by calling variables are not.
Anonymous #9
Posted 19 April 2016 - 01:11 PM
Crash note :

After deleting an App of your network, it crashes. I tried this 3 times, and each time it crashed, but on the fourth try it was gone. But hey, good app for having on code error.
Mumbai #10
Posted 19 May 2016 - 02:10 PM
Updated code.