I'm trying to read files with bash tcp socket,
So on one host I do,
nc -l 8888 < /etc/passwd
And on another machine,
But it didn't read the file as expected, I got an empty line.
cat < /dev/tcp/xxx/xxxx works, but can I do that without external binaries?
So I tried
# echo $(</dev/tcp/127.0.0.1/8888) > file bash: /dev/tcp/127.0.0.1/8888: No such file or directory