Skip to content

Instantly share code, notes, and snippets.

@JFox-sk
JFox-sk / tcpproxy.js
Created August 18, 2020 18:35 — 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();
}