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

Ports - A useful tool for managing modems

Started by LDDestroier, 11 October 2015 - 12:14 AM
LDDestroier #1
Posted 11 October 2015 - 02:14 AM
Ports


pastebin get XxkBiYJ6 ports
std pb XxkBiYJ6 ports

This program is designed to be able to turn on/off modem channels on a computer, as well as see all channels that are open. Over time, I've added new features. Here is the syntax:

ports --Displays computer ID and all open modem channels
ports <open/close> <modem side> --Opens rednet to a certain side
ports <open/close> <channel number> --Opens a modem channel
ports lock --Toggles modem communications
ports listen [channel] --Listens for modem traffic on that channel. Defaults to rednet.
ports send <message> [channel] [replyChannel] --Sends a message on that channel and reply channel. Defaults to rednet.

I think it would be useful for thwarting people who put a remote desktop applicaton (like nsh) on your computer.
Edited on 25 October 2015 - 11:13 PM
LDDestroier #2
Posted 26 October 2015 - 12:13 AM
New update! Added 'listen' and 'send' arguments. Guess what they do.
View OP for syntax
クデル #3
Posted 09 November 2015 - 10:09 AM
Thank you, this is really awesome, saves me having to write a small program everytime I want to scam through rednet traffic. :P/>
LDDestroier #4
Posted 09 November 2015 - 11:55 AM
Thank you, this is really awesome, saves me having to write a small program everytime I want to scam through rednet traffic. :P/>

Why thank you kind sir, I'm glad you found a use for my thingie, and for being the first to comment that wasn't me. Thingies are hard to come by…