tag:blogger.com,1999:blog-37642571.post1290707301729853868..comments2024-03-20T02:30:44.457-07:00Comments on Thinking In Software: A nodejs server to run shell commandsNestor Urquizahttp://www.blogger.com/profile/12351754666722274569noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-37642571.post-90306684104379172182015-01-19T10:27:49.924-08:002015-01-19T10:27:49.924-08:00Instead of exec, you could also exec the commands ...Instead of exec, you could also exec the commands over the same background process(es) for stateful behavior; see https://github.com/bitsofinfo/stateful-process-command-proxybitfinfohttps://www.blogger.com/profile/12365353106139273531noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-83709015726861010612013-05-08T19:22:45.875-07:002013-05-08T19:22:45.875-07:00Great!! simple && powerful && cont...Great!! simple && powerful && controlrable!!Anonymoushttps://www.blogger.com/profile/00879023973588893619noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-30497699244774463202013-05-08T19:19:59.502-07:002013-05-08T19:19:59.502-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/00879023973588893619noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-68422491320203698792013-02-12T17:19:48.334-08:002013-02-12T17:19:48.334-08:00@Ross the main motivation for this solution was to...@Ross the main motivation for this solution was to locally execute commands. Definitely support for SSL is never a bad idea even if running local commands so I would definitely vote for using crypto to support HTTPS instead of plain HTTP.<br />Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-51855775719295489392013-02-12T15:49:02.253-08:002013-02-12T15:49:02.253-08:00Very good, could you use crypto to encrypt and dec...Very good, could you use crypto to encrypt and decrypt the commands? Anonymoushttps://www.blogger.com/profile/16585071637743878120noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-17147415780273652342012-03-15T10:08:47.785-07:002012-03-15T10:08:47.785-07:00@Kenan it will happen the same as if you write e t...@Kenan it will happen the same as if you write e thise commands from Runtime.exec(). Security should be handled of course but that is out of tge scope of this post which is just about running commamds from Java without paying a high toll in memory consumption.Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-27239019480231301872012-03-15T08:19:27.932-07:002012-03-15T08:19:27.932-07:00?cmd=cat /etc/passwd
?cmd=passwd //what happens?
?...?cmd=cat /etc/passwd<br />?cmd=passwd //what happens?<br />?cmd=curl |sh<br />?cmd=rm -rf * ../ ../../Kenanhttps://www.blogger.com/profile/14997998605962412342noreply@blogger.com