Linux Bash /dev/tcp/HOST/PORT

bash中的特殊命令

1
2
3
4
exec 8<>/dev/tcp/192.168.106.213/9200
echo -e "GET _cat/indices HTTP/1.1\r\nhost: http://127.0.0.1\r\nConnection: close\r\n\r\n" >&8
cat <&8
exec 8<&-