roccomuso / nc

Porting Netcat in Node.js. CLI util. :computer:
MIT License
21 stars 4 forks source link

Netcat as a proxy #2

Open roccomuso opened 7 years ago

roccomuso commented 7 years ago

Netcat as a Proxy

$ mkfifo /tmp/fifo
$ nc -l -k -p 8080 </tmp/fifo | nc website.com 80 >/tmp/fifo

Raise:

events.js:472
function arrayClone(arr, i) {
                   ^

RangeError: Maximum call stack size exceeded
    at arrayClone (events.js:472:20)
    at emitOne (events.js:99:21)
    at Socket.emit (events.js:188:7)
    at onwriteError (_stream_writable.js:319:10)
    at onwrite (_stream_writable.js:337:5)
    at WritableState.onwrite (_stream_writable.js:89:5)
    at fireErrorCallbacks (net.js:462:13)
    at Socket._destroy (net.js:471:5)
    at Socket._writeGeneric (net.js:672:10)
    at Socket._write (net.js:724:8)