25 posts
Posted 12 July 2012 - 11:26 AM
Is it possible to use one computer and interact with another computer's shell remotely over Rednet? So you use a specific computer normally but from another location?
286 posts
Location
Bonn Germany
Posted 12 July 2012 - 11:55 AM
Yes that is possible but it will require a connection via Wireless modems or a bundled redstone cable. And a programm running on both pcs
On the client (the PC to be controlled) you'll need something that keeps in a loop and pulls rednet events it would have to analyse the text and then call the according function with the correct parameters. If you also want to send back the console output you'll have to maybe rewrite the term functions to redirect everything over rednet. (
http://www.computercraft.info/forums2/index.php?/topic/2522-how-dose-terminal-redirect-work/page__fromsearch__1)
15 posts
Posted 13 July 2012 - 01:13 AM
Wouldn't the computer receiving the commands be the server? The user is using the box sending commands, and the server is processing them, so it would make more sense that way.
351 posts
Posted 13 July 2012 - 08:07 AM
Soon. My OS is still under construction though.
286 posts
Location
Bonn Germany
Posted 13 July 2012 - 08:43 AM
Wouldn't the computer receiving the commands be the server? The user is using the box sending commands, and the server is processing them, so it would make more sense that way.
Well maybe you're right but actually it doesn't matter how you call them
351 posts
Posted 13 July 2012 - 08:12 PM
Wouldn't the computer receiving the commands be the server? The user is using the box sending commands, and the server is processing them, so it would make more sense that way.
Well maybe you're right but actually it doesn't matter how you call them
Indeed, but this is the standard terminology used in telnet and SSH and remote desktop and such, to it helps people understand what your are talking about if you name it the same way, where the server receives and runs commands, and the client sends commands and receives results.
My problem is my attentions are currently split in four directions. One of my projects is this one: creating a "window" system that lets you have multiple terminals per screen, terminals mirrored across screens, swap between different terminal tabs, display terminals running on remote computers, etc. But I also am working on multiprocessing system, trying to figure out how to set up multiple users, and help with OCL. And I still don't have a good, secure networking system (but my place-holder system will do in a pinch.)
7 posts
Posted 15 August 2012 - 10:29 PM
You could use loadstring()
Sender:
Spoiler
rednet.open("right")– change to the appropriate side
command = "print("Hello, World!")"
rednet.broadcast(command)
Receiver:
Spoiler
rednet.open("right")
id, msg = rednet.receive()
a = loadstring(msg)
a()
62 posts
Posted 16 August 2012 - 05:02 AM
The key goal of remote administration tools is to be silent, if you're silent they will never suspect a thing. This is good for stealing software from rival companies in the game.
No, the key goal of remote administration tools is to allow legitimate users of a computer to control it without direct access. They shouldn't be used for malicious purposes. More on topic, a client-server system with a term redirect is good way to go. I'd also recommend an authentication system on the server if you're playing SMP.