vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

access scripted remotely #283

Closed paidon closed 11 years ago

paidon commented 11 years ago

I tried to search the web without any results:

Is there a possiblity to use scripted remotely via URL/IP? I am having a vServer and would love to work in it using scripted.

Thanks,

David

kdvolder commented 11 years ago

At the moment scripted explicitly limits access from localhost. This restriction is easy to remove by editing the source code and then it should be possible to access it remotely if you paste in the right url on your remote web browser.

Edit here: https://github.com/scripted-editor/scripted/blob/master/server/server.js#L80

Be warned however you are exposing yourself to some serious attack vectors. Scripted server exposes API that allows clients connecting to read/delete all data on your server's hard-drive or execute shell commands. This is precisely why if only accepts local host connections.

I certainly wouldn't want to do this on a mission critical server.

If its a toy server acceslble only on a LAN you might chance it. It's your call.

kdvolder commented 11 years ago

I closed the issue because the question has been answered (I think :-).

Nothing left to do.