13 posts
Posted 29 August 2012 - 12:19 AM
Hey guys,
Would it be possible to create some kind of rednet "sniffer" that allows a program to acess all rednet messages that are going between computers (within range) I would assume that this is possible through a rednet modification. Would this work with both wireless modems and bundled cables?
DISCLOSURE: I would LOVE it if someone would create an API for this :D/>/>
THX!
1243 posts
Location
Indiana, United States
Posted 29 August 2012 - 08:37 PM
This kind of program would only be able to sniff rednet broadcasts, as rednet.send is hard coded in
436 posts
Posted 29 August 2012 - 08:55 PM
With Bundled cables, you could conceivably figure out how to decode all messages. They still have to actually travel the cable. No such luck for the wireless communications, though. (Aside from the already stated Broadcasts)
1548 posts
Location
That dark shadow under your bed...
Posted 30 August 2012 - 01:02 PM
there is a way I think, it is quite complicated though
you place a computer, attach a modem and then use a blue-electricity motor to move the computer away, the modem remains floating in the air, I think you can then attach a bundled cable to it, I have accidentally made a floating modem before but never thought of attaching wires before, give it a try, would be a great hack (beware, do not move a computer that has an ID as your minecraft will force close and when you re-open it the computer will have a new ID)
2447 posts
Posted 30 August 2012 - 01:05 PM
What. No. That wouldn't work.
However watch this space.
1548 posts
Location
That dark shadow under your bed...
Posted 30 August 2012 - 02:57 PM
What. No. That wouldn't work.
However watch this space.
:)/>/> oh ok, I just remember taking a quick look at the rednet api and it uses bundled cable interface to get info from the modem, I know that if you link computers via a bundled cable rather than modems you cannot send a message to a specific PC… just an attempt
1548 posts
Location
That dark shadow under your bed...
Posted 30 August 2012 - 04:46 PM
I can't seem to get it to work again. when you even move a modem the game crashes but previously you could use this in certain circumstances to make a floating modem, it will not work now. I can copy any computercraft item with a glitch (haven't tried a floppy) but having trouble with the floating modem :)/>/>
13 posts
Posted 03 September 2012 - 11:30 AM
I was going to try that, but was pointless without cheating the mod, you could just loop for broadcasts, but the msgs you find prolly won't be very intersting
1548 posts
Location
That dark shadow under your bed...
Posted 03 September 2012 - 12:19 PM
yeah, I use it for a radar instead
13 posts
Posted 04 September 2012 - 05:48 AM
io.write("how many msgs do you want to log>>")
answer = io.read()
n = tonumber(answer)
h = fs.open("Log.txt", "w")
while n > 0 do
event, senderID, msg, dist = os.pullEvent("rednet_message")
print("senderID:"..senderID.." msg:"..msg.." distence:"..dist.." ")
h.writeLine("senderID:"..senderID.." msg:"..msg.." distence:"..dist.." ")
n = n - 1
end
h.close()
print("saved results in Log.txt")
this would do for rednet broadcasts.. naturally you would open whatever side you modem is on too :D/>/>
52 posts
Location
Void
Posted 05 September 2012 - 07:20 PM
you can mod rednet api on computer so it will send you a copy of rednet.send.