Guest User

Untitled

a guest
Feb 16th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. $ cd /tmp
  2. $ nc -dUl ./././///sock &
  3. [3] 6324
  4. $ ls sock /tmp/sock ./sock
  5. ./sock /tmp/sock sock
  6. $ lsof sock /tmp/sock ./sock
  7. [nothing]
  8. $ lsof ./././///sock
  9. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
  10. nc 6324 XXX 3u unix 0xffff9f9faab76000 0t0 175260 ./././///sock type=STREAM
  11.  
  12. $ cd /tmp
  13. $ nc -dUl ./././///sock &
  14. $ mv sock SOCK
  15. $ nc -U ./././///sock
  16. nc: unix connect failed: No such file or directory
  17. $ nc -U SOCK
  18. [connected OK]
  19. $ lsof ./././///sock
  20. lsof: status error on ./././///sock: No such file or directory
  21. [stupid junk snipped]
  22. $ lsof -aUp $!
  23. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
  24. nc 6315 XXX 3u unix 0xffff9f9e9b165800 0t0 173768 ./././sock type=STREAM
  25. $ lsof SOCK
Add Comment
Please, Sign In to add comment