Skip to content

Instantly share code, notes, and snippets.

@gekowa
gekowa / tcpproxy.js
Last active May 17, 2024 08:21 — forked from kfox/tcpproxy.js
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();
}