Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TCP connection, bash only
- exec 5<>"/dev/tcp/${SERVER}/${PORT}"
- Bash handles several filenames specially when they are used
- in redirections, as described in the following table:
- /dev/fd/fd
- If fd is a valid integer, file descriptor fd is
- duplicated.
- /dev/stdin
- File descriptor 0 is duplicated.
- /dev/stdout
- File descriptor 1 is duplicated.
- /dev/stderr
- File descriptor 2 is duplicated.
- /dev/tcp/host/port
- If host is a valid hostname or Internet address,
- and port is an integer port number or service
- name, bash attempts to open a TCP connection to
- the corresponding socket.
- /dev/udp/host/port
- If host is a valid hostname or Internet address,
- and port is an integer port number or service
- name, bash attempts to open a UDP connection to
- the corresponding socket.
Add Comment
Please, Sign In to add comment