Icanbreathecode, on 17 May 2013 - 06:24 PM, said:
Can you PM people within channels?
Also, I'm trying to sniff on channel 0, which is the channel for private rednet messages right?
I can't seem to see it. (No, I'm not sniffing other people's messages, just testing the security of my own)
The Old rednet was a java level system that was secure. The new rednet (api) is a protocol built on peripheral calls to modem peripherals and is not secure. This is basically how it all works now.
Broadcast messages are all on CH: 65535
First rednet Opens out receive channel witch is out ID example our computer is 5
local modem = peripheral.wrap("left")
modem.open(os.getComputerID()) -- this will get Out ID
when I rednet.send(7,"hello world!") the api dose this modem.transmit(7,5,"Hello world!")
remembering modem.transmit(<CH>,<CH to reply on>,<payload / message>)
The receiving computer is 7 and has opened its ID as well. That means it will now get that message on channel 7 this computer will output the event "rednet_message",5,"hello world!",8 <8 is the distance in meters> that is how we know what computer sent to us . Now this is where it gets interesting. We can directly control the modem and spoof fake ID's or use one channel for sending and receiving.
broadcasts are always on CH: 65535 so the api also opens this channel for receiving. When we do rednet.broadcast("Hello World") the api dose modem.transmit(65535,5,"Hello world!") so we still see a sender ID.
If people are using the old rednet protocols to listen in all you need to do it open the channel that is there ID and you can monitor all traffic. you will have to peripheral.wrap() it your self and open the channels manually also you will be looking at "modem_message" not "rednet_messages" they are slightly different in that they tell is the channel that was sen on as well as the channel the sender wants us to reply to
<"modem_message">, <side message received on eg "back">, <CH send on eg: 7>,
<CH preferred reply channel eg:5>, <payload/message eg: "hello world!">, <distance in meaters eg:8>