Error: write after end
at writeAfterEnd (/home/rocco/Desktop/REPOS/netrat/lib/seed/node_modules/readable-stream/lib/_stream_writable.js:276:12)
at DestroyableTransform.Writable.write (/home/rocco/Desktop/REPOS/netrat/lib/seed/node_modules/readable-stream/lib/_stream_writable.js:320:20)
at Socket.ondata
On both client and server. Bug introduced in v1.3.0 pheraps.
Client:
new NetcatClient()
.addr(RHOST)
.port(RPORT)
.retry(RETRY)
.filter(filterShxCmd)
.connect()
.exec(cmd)
function filterShxCmd(chunk, enc, cb) {
if (chunk.toString().indexOf('shx') === 0){
// TODO ..
cb(null)
} else cb(null, chunk)
}
Server:
var NetcatServer = netcat.server
var nc = new NetcatServer()
nc.k().port(6666).listen().serve(process.stdin).pipe(process.stdout)
[x] almost fixed with v1.3.1. See issue below
Duplicate stream on client reconnection (probably a self._filter issue).
server up.
client connect ... client disconnect.
another client connect ... client disconnect.
server: ls --> results is piped twice!
[x] Fix issue.
[x] Add TCP tests for this!
Another issue related pheraps:
[ ] Transfer file test failing on macOS (see travis builds).
In a reverse shell scenario:
On both client and server. Bug introduced in v1.3.0 pheraps.
Client:
Server:
Duplicate stream on client reconnection (probably a
self._filter
issue).Another issue related pheraps: