Jump to content




Rednet Sniffer


10 replies to this topic

#1 TheHappyBukkit

  • New Members
  • 13 posts

Posted 28 August 2012 - 11:19 PM

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!

#2 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 29 August 2012 - 07:37 PM

This kind of program would only be able to sniff rednet broadcasts, as rednet.send is hard coded in

#3 OmegaVest

  • Members
  • 436 posts

Posted 29 August 2012 - 07: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)

#4 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 30 August 2012 - 12: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)

#5 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 30 August 2012 - 12:05 PM

What. No. That wouldn't work.

However watch this space.

#6 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 30 August 2012 - 01:57 PM

 Cloudy, on 30 August 2012 - 12:05 PM, said:

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

#7 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 30 August 2012 - 03: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 :)/>

#8 DisFunqTional

  • New Members
  • 13 posts

Posted 03 September 2012 - 10: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

#9 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 03 September 2012 - 11:19 AM

yeah, I use it for a radar instead

#10 DisFunqTional

  • New Members
  • 13 posts

Posted 04 September 2012 - 04: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/>

#11 CoLDarkness

  • Members
  • 53 posts
  • LocationVoid

Posted 05 September 2012 - 06:20 PM

you can mod rednet api on computer so it will send you a copy of rednet.send.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users