Skip to content

Instantly share code, notes, and snippets.

View shamsdev's full-sized avatar
🎇
Focusing

Mohammad Shams shamsdev

🎇
Focusing
View GitHub Profile
@kfox
kfox / tcpproxy.js
Created April 5, 2012 20:03
A basic TCP proxy written in node.js
var net = require("net");
process.on("uncaughtException", function(error) {
console.error(error);
});
if (process.argv.length != 5) {
console.log("usage: %s <localport> <remotehost> <remoteport>", process.argv[1]);
process.exit();
}