Android tcpdump 使用

來源:互聯網
上載者:User

標籤:dmp   listen   ping   device   web   length   net   article   資料包   

/************************************************************************** *                       Android tcpdump 使用 * 說明: *     調試網卡問題,富林提醒我在主板上使用tcpdmp抓包,PC機上用Wireshark抓包, * 結果發現下行資料是可以的,上行資料有問題。 * *                                  2017-4-12 深圳 龍華民治樟坑村 曾劍鋒 *************************************************************************/一、參考文檔:    1. Android常用抓包工具之TcpDump        http://blog.tingyun.com/web/article/detail/480    2. android使用tcpdump抓包        http://codingnow.cn/android/1633.html二、操作方法:    1. android tcpdump shell命令:tcpdump -vv -i eth0 host 10.10.10.10 &    2. PC機cmd命令:ping 10.10.10.10        C:\Users\zengjf>ping 10.10.10.10        正在 Ping 10.10.10.10 具有 32 位元組的資料:        來自 10.10.10.15 的回複: 無法訪問目標主機。        請求逾時。        請求逾時。        請求逾時。        10.10.10.10 的 Ping 統計資訊:            資料包: 已發送 = 4,已接收 = 1,丟失 = 3 (75% 丟失),    3. 操作輸出:        [email protected]_6dq:/ # ifconfig eth0 10.10.10.10 netmask 255.255.255.0        [email protected]_6dq:/ # busybox ifconfig                                                  eth0      Link encap:Ethernet  HWaddr 7C:CB:E2:E0:28:07                    inet addr:10.10.10.10  Bcast:10.10.10.255  Mask:255.255.255.0                  inet6 addr: fe80::7ecb:e2ff:fee0:2807/64 Scope:Link                  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                  RX packets:245 errors:0 dropped:0 overruns:0 frame:0                  TX packets:35 errors:0 dropped:0 overruns:0 carrier:0                  collisions:0 txqueuelen:1000                   RX bytes:23604 (23.0 KiB)  TX bytes:7482 (7.3 KiB)                lo        Link encap:Local Loopback                    inet addr:127.0.0.1  Mask:255.0.0.0                  inet6 addr: ::1/128 Scope:Host                  UP LOOPBACK RUNNING  MTU:65536  Metric:1                  RX packets:16 errors:0 dropped:0 overruns:0 frame:0                  TX packets:16 errors:0 dropped:0 overruns:0 carrier:0                  collisions:0 txqueuelen:0                   RX bytes:1344 (1.3 KiB)  TX bytes:1344 (1.3 KiB)                [email protected]_6dq:/ # tcpdump -vv -i eth0 host 10.10.10.10 &                            [1] 1145        [email protected]_6dq:/ # device eth0 entered promiscuous mode        tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes        00:05:32.544047 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.10 tell 10.10.10.15, length 46        00:05:32.544131 ARP, Ethernet (len 6), IPv4 (len 4), Reply 10.10.10.10 is-at 7c:cb:e2:e0:28:07 (oui Unknown), length 28        00:05:33.365689 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.10 tell 10.10.10.15, length 46        00:05:33.365747 ARP, Ethernet (len 6), IPv4 (len 4), Reply 10.10.10.10 is-at 7c:cb:e2:e0:28:07 (oui Unknown), length 28        00:05:34.365755 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.10 tell 10.10.10.15, length 46        00:05:34.365836 ARP, Ethernet (len 6), IPv4 (len 4), Reply 10.10.10.10 is-at 7c:cb:e2:e0:28:07 (oui Unknown), length 28        00:06:35.364318 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.10 tell 10.10.10.15, length 46        00:06:35.364401 ARP, Ethernet (len 6), IPv4 (len 4), Reply 10.10.10.10 is-at 7c:cb:e2:e0:28:07 (oui Unknown), length 28        

 

Android tcpdump 使用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.