Advertisement
Guest User

Untitled

a guest
May 25th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. # Strace
  2. ` strace -e trace=open,read ls /`
  3.  
  4. # File descriptos
  5.  
  6. - which files and libs process PID uses
  7. `lsof -p PID`
  8.  
  9. - which ports and protocols are listening
  10. `lsof -s -p PID`
  11.  
  12. # UDP publish
  13. echo "Never gonna give you up" > nc -4u host 1212
  14.  
  15. # Network watches
  16.  
  17. tcpdump -A -s0 -ilo tcp port 6379
  18.  
  19. tcpdump [-Asi] COMMAND
  20.  
  21. -A for ASCII
  22. -s for size of packets. If 0, no size
  23. -i for the network interface
  24.  
  25. COMANND listen a port, a socker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement