Packet

    [Network programming] pcap library를 사용한 패킷 정보 출력

    https://github.com/usrbin-sim/pcap_test GitHub - usrbin-sim/pcap_test: pcap library test pcap library test. Contribute to usrbin-sim/pcap_test development by creating an account on GitHub. github.com pcap을 이용한 네트워크 프로그래밍을 처음 시작할 때 짰던 코드인데, 다시 수정해서 공부할 겸 코드리뷰 프로그램 목적 >> 라이브 패킷 캡처를 이용하여, IPv4와 TCP 패킷에 대한 source, destination IP/MAC/Port, 그리고 데이터가 존재하는 경우 데이터까지 출력해준다. packet.h - 패킷 구조체 및 출력용 함수 #pra..

    [iOS_Packet Capture] iOS Network traffic capture without Jailbreak

    iOS 관련 분석을 진행하다보면 네트워크 트래픽을 관찰해야 할 일이 생기곤 하는데, 모니터 모드 본인 컴퓨터에서 캡쳐하면 무선랜 패킷은 잡을 수 있지만 패킷 손실 우려도 있고... 아무튼 좀 귀찮다 iOS의 경우는 macOS와 연동하여 tcpdump를 통해 트래픽 캡쳐가 가능하다. https://developer.apple.com/documentation/network/recording_a_packet_trace Recording a Packet Trace | Apple Developer Documentation Article Recording a Packet Trace Learn how to record a low-level trace of network traffic. OverviewA packet ..