Guest User

Untitled

a guest
Aug 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. TCP connection, bash only
  2. exec 5<>"/dev/tcp/${SERVER}/${PORT}"
  3.  
  4. Bash handles several filenames specially when they are used
  5. in redirections, as described in the following table:
  6.  
  7. /dev/fd/fd
  8. If fd is a valid integer, file descriptor fd is
  9. duplicated.
  10. /dev/stdin
  11. File descriptor 0 is duplicated.
  12. /dev/stdout
  13. File descriptor 1 is duplicated.
  14. /dev/stderr
  15. File descriptor 2 is duplicated.
  16. /dev/tcp/host/port
  17. If host is a valid hostname or Internet address,
  18. and port is an integer port number or service
  19. name, bash attempts to open a TCP connection to
  20. the corresponding socket.
  21. /dev/udp/host/port
  22. If host is a valid hostname or Internet address,
  23. and port is an integer port number or service
  24. name, bash attempts to open a UDP connection to
  25. the corresponding socket.
Add Comment
Please, Sign In to add comment