Skip to content

Instantly share code, notes, and snippets.

View pgmann's full-sized avatar

pgmann pgmann

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pgmann on github.
  • I am pgmann (https://keybase.io/pgmann) on keybase.
  • I have a public key ASBrZ9H_LzNdQUDKTS4Ef3RzyMwQswxr1sycZzn7DzKwCgo

To claim this, I am signing this object:

@pgmann
pgmann / console.js
Last active November 11, 2017 16:48
A really basic remote shell, written in NodeJS.
var http = require('http');
var fs = require('fs');
var exec = require('child_process').exec;
var parse = require('url').parse;
function execute(command, callback){
exec(command, function(error, stdout, stderr){ callback(stdout); });
};
http.createServer(function (req, res) {