Why can't I catch Baidu's data packets
AD |
1414baidu.compingIP$ ping baidu

1414
baidu.com
pingIP
$ ping baidu.comPING baidu.com (39.156.66.10) 56(84) bytes of data.64 bytes from 39.156.66.10 (39.156.66.10): icmp_seq=1 ttl=49 time=30.6 ms64 bytes from 39.156.66.10 (39.156.66.10): icmp_seq=2 ttl=49 time=30.6 ms64 bytes from 39.156.66.10 (39.156.66.10): icmp_seq=3 ttl=49 time=30.6 ms
baidu.com39.156.66.10
tcpdumpeth0ip39.156.66.10baidu.pcap
$ tcpdump -i eth0 host 39.156.66.10 -w baidu.pcap
baidu.comcurl
$ curl 'https://baidu.com'
baidu.com
wiresharkbaidu.pcaphttp.host == "baidu.com"

HTTPSbaidu.comHTTPHostrequest body
http.host
HTTPSClient Helloserver_name
tls.handshake.extensions_server_name == "baidu.com"

Follow-TCP Stream

TCP

TCPTLSTCP
18205602844344356028
56028
443HTTPS
HTTP8080
1820baidu.com
URLbody
tcpdump
$ tcpdump -i eth0 host 39.156.66.10 -w baidu.pcap
key
/Users/xiaobaidebug/ssl.key
$ export SSLKEYLOGFILE=/Users/xiaobaidebug/ssl.key
curlchromecurlchrome
$ curl 'https://baidu.com'$ open -a Google Chrome #macchrome
/Users/xiaobaidebug/ssl.key
wireshark

ProtocolsTLS

ssl.key

1820

http.host == "baidu.com"

ssl.key
HTTPS
HTTPS
HTTPS
TCPHTTPTCP
TCPHTTPS
HTTPSTLSSSLTLS1.2
TLS""
""

TLS
- Client Hello TLS1.2RSA
- Server Hello + + TLS1.2
- Client Key Exchange: pre_master_key pre_master_key
- Change Cipher Spec: pre_master_key""
- Encrypted Handshake Message""Finished
- Change Cipher Spec pre_master_key""""
- Encrypted Handshake Message""Finished
client random
server random
pre_master_key
""

HTTPS
client random server random pre_master_key
pre_master_key
pre_master_key
pre_master_key
HTTPSTCPHTTPTLSOpenSSLNSSTLS
SSLKEYLOGFILETLSpre_master_key
/Users/xiaobaidebug/ssl.key

TLSkeyTLSSSLKEYLOGFILETLSSSLKEYLOGFILEcurlchrome
SSLKEYLOGFILE
ssl.key
# SSL/TLS secrets log file, generated by NSSCLIENT_RANDOM 5709aef8ba36a8eeac72bd6f970a74f7533172c52be41b200ca9b91354bd662b 09d156a5e6c0d246549f6265e73bda72f0d6ee81032eaaa0bac9bea362090800174e0effc93b93c2ffa50cd8a715b0f0CLIENT_RANDOM 57d269386549a4cec7f91158d85ca1376a060ef5a6c2ace04658fe88aec48776 48c16429d362bea157719da5641e2f3f13b0b3fee2695ef2b7cdc71c61958d22414e599c676ca96bbdb30eca49eb488aCLIENT_RANDOM 5fca0f2835cbb5e248d7b3e75180b2b3aff000929e33e5bacf5f5a4bff63bbe5 424e1fcfff35e76d5bf88f21d6c361ee7a9d32cb8f2c60649135fd9b66d569d8c4add6c9d521e148c63977b7a95e8fe8CLIENT_RANDOM be610cb1053e6f3a01aa3b88bc9e8c77a708ae4b0f953b2063ca5f925d673140 c26e3cf83513a830af3d3401241e1bc4fdda187f98ad5ef9e14cae71b0ddec85812a81d793d6ec934b9dcdefa84bdcf3
CLIENT_RANDOMpre_master_key
wiresharkpre_master_key
wiresharkclient random

"bff63bbe5"
server random

client randomssl.key

"bff63bbe5"client random
pre_master_key
wireshark
ssl.keypre_master_keyTLSclient helloHTTPSTLS
- baiduwireshark
- HTTPSHTTPURLRequest Bodyfilterhttp.host == "baidu.com"
- HTTPS3HTTPS
- client randomserver randompre_master_keySSLKEYLOGFILE
- SSLKEYLOGFILEcurlchromeHTTPSTLSsslkeyclient randompre_master_keyclient randompre_master_key

wireshark

wireshark


No
time
source
destination
protocol
info
http



macmacwiresharkmacmac8/01

ipipv4DS FieldipTTL

seq NumberpayloadTCP80httptcp53bytesACKackseqACK

http200wireshark
03
Wireshark
ip.addr ipip.srcip.dstIPIPeth.addrmaceth.srceth.dstmacmac
tcp.portudp.portospfospf
andornoteqequal
ip192.168.10.243macf8:48:fd:fc:2e:00

dnsdns



ospf

lsa

LSULSA
wireshark
Disclaimer: The content of this article is sourced from the internet. The copyright of the text, images, and other materials belongs to the original author. The platform reprints the materials for the purpose of conveying more information. The content of the article is for reference and learning only, and should not be used for commercial purposes. If it infringes on your legitimate rights and interests, please contact us promptly and we will handle it as soon as possible! We respect copyright and are committed to protecting it. Thank you for sharing.(Email:[email protected])
Mobile advertising space rental |
Tag: Why can catch Baidu data packets
Why do some people only focus on the 2-yuan work meal for civil servants and not on the free meal offered by internet giants
NextBrazil starts comprehensive cooperation with Huawei 5G
Guess you like
-
Pinduoduo's "Trillion-Yuan Support" Plan: A Three-Year, 100 Billion Yuan Investment to Build a Multi-Win Business EcosystemDetail
2025-04-03 14:41:29 11
-
Huyu Xianxiang and AVIC Optoelectronics Institute Forge Strategic Partnership to Shape China's eVTOL Avionics LandscapeDetail
2025-04-02 18:39:02 1
-
Haier Smart Home's 8th Global R&D Innovation Awards: Illuminating Better Lives with Technology, Achieving User SatisfactionDetail
2025-04-02 15:57:33 21
-
Huawei's 2025 China Digital Power Partner Conference: Carbon-Neutral Path for China, Shared Value CreationDetail
2025-03-31 18:57:09 11
-
OPPO Think Tank: A New Paradigm for Chinese Enterprises' Globalization From Wusha Village to the Global High-End MarketDetail
2025-03-31 18:48:21 1
-
ICLR 2025: Chinese Universities and Companies Showcase AI Prowess with Numerous Accepted Papers; Stanford-HKUST Collaboration Achieves Perfect ScoreDetail
2025-03-31 14:54:45 11
-
Huawei HarmonyOS Smart Home Partner Summit: Deep Dive into Spatial Intelligence Transformation and Ecosystem Development StrategyDetail
2025-03-31 13:01:45 1
-
AI Large Models Drive Innovation in Humanoid Robots and Autonomous Driving: 2025 as a Key MilestoneDetail
2025-03-31 13:00:04 1
-
Eight Cities Pilot Credit Supervision Data Openness, Empowering Micro and Small Enterprises with Mobile Payment PlatformsDetail
2025-03-26 09:32:47 1
-
Xiaomi's "Just a Little Profit": The Deep Logic and Sustainability Behind its Low-Margin StrategyDetail
2025-03-25 15:07:32 21
- Detail
-
The Ninth Huawei ICT Competition China Challenge Finals Conclude Successfully: Kunpeng and Ascend Tracks Crown Their ChampionsDetail
2025-03-24 16:26:03 11
-
Ronshen Sugar Cube Refrigerator: The Official Product of the 2025 FIFA Club World Cup, Ushering in a New Era of Healthy Food PreservationDetail
2025-03-24 15:40:35 1
-
Zhihu Launches New Version of Zhihu Straight Answer: Deep Integration of AI and Community to Enhance Professionalism and CredibilityDetail
2025-03-24 14:04:38 1
-
China Construction Ninth Harmony (Zhongjian Jiuhe) and Huawei HarmonyOS Smart Home Deepen Strategic Partnership at AWE2025, Building a Green and Intelligent Future HomeDetail
2025-03-23 15:21:15 41
-
ZuoYeBang Books Leads the New Trend in Intelligent Education Publishing at Changsha Book FairDetail
2025-03-21 15:15:33 1
-
Tianyancha: Shielding Consumer Safety and Reshaping Business Trust with DataDetail
2025-03-21 08:47:58 1
-
Hisense at AWE2025: AI Empowerment, Leading the Transformation of Future Smart LivingDetail
2025-03-20 18:24:11 1
-
Haier TV Makes a Stunning Debut at AWE 2024: Zhiyuan AI Large Model and PureScene Care Screen Usher in a New Era of Smart HomesDetail
2025-03-20 15:17:20 1
-
China Power's Xin Yuan Zhi Chu (New Source Smart Storage): Open Energy Intelligence Computing Center Leads Intelligent Transformation of the Energy IndustryDetail
2025-03-20 15:15:39 1