tusc => lsof
작성자 관리자 작성시간 2017-07-04 15:51:14
 

출처: target=_blank>http://forusone.tistory.com/entry/HP-tusc-and-lsof-example


** 와이어샤크를 활용한 실전 패킷 분석
tcp.port == 53322

** strace -fF -t -p PID

1. tusc -w all -r all -p PID

[25396] read(104, "905 82\0f288d2\.....
[25396] send (104, "905 82\0f288d2\.....

=> fd값이 104에 데이터를 보내고 있음

2. lsof -p 25396

.....
java 25396 jeus 104u IPv4 0xe0000007a88f3c40  TCP localhost:53320 -> localhost:19950 (ESTABLISHED)
.....

3. lsof |grep 104u
java 25396 jeus 10u IPv4 0xe0000007a88f3c40  TCP localhost:53320 -> localhost:19950 (ESTABLISHED)


목록 | 입력 | 수정 | 답변 | 삭제