WireShark는 네트워크 패킷 캡처 프로그램으로 yum 명령을 통해 간단하게 설치하여 활용할 수 있다.
[root@localhost ~]# yum -y install wireshark wireshark-gnome Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile -- 중략 -- Running transaction Installing : libsmi-0.4.8-13.el7.x86_64 1/3 Installing : wireshark-1.10.14-25.el7.x86_64 2/3 Installing : wireshark-gnome-1.10.14-25.el7.x86_64 3/3 Verifying : wireshark-gnome-1.10.14-25.el7.x86_64 1/3 Verifying : libsmi-0.4.8-13.el7.x86_64 2/3 Verifying : wireshark-1.10.14-25.el7.x86_64 3/3 Installed: wireshark.x86_64 0:1.10.14-25.el7 wireshark-gnome.x86_64 0:1.10.14-25.el7 Dependency Installed: libsmi.x86_64 0:0.4.8-13.el7 Complete! [root@localhost ~]#
권한 수정전 [root@localhost ~]# ls -al /sbin/dumpcap -rwxr-x---. 1 root wireshark 82376 10월 1 02:54 /sbin/dumpcap 권한 수정 [root@localhost ~]# chmod +s /sbin/dumpcap ; chmod +x /sbin/dumpcap 권한 수정 후 [root@localhost ~]# ls -al /sbin/dumpcap -rwsr-s--x. 1 root wireshark 82376 10월 1 02:54 /sbin/dumpcap
wireshark는 dumpacp 툴을 사용하여 패킷을 캡처하기 때문에 root 권한이 아닌 사용자로 wireshark를 사용하기 위해선 해당 툴의 사용 권한을 부여해야 한다.
wireshark는 프로그램-> 인터넷에 위치해 있다.
좌측의 이미지는 정상 동작하는 이미지며 우측의 이미지는 dumpacp 툴의 권한이 없어 인터페이스를 불러오지 못하는 이미지다.
- 끝 -
* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.