Nexus 7に最初からインストールされているコマンドのtoolboxと追加インストールしたBusyBoxには同じコマンドでも得られる情報や機能が違うものがありました
例えばifconfig
Terminalからifconfigと入力します。結果は何も表示されません。
1 2 |
root@android:/ # <strong>ifconfig</strong> root@android:/ # |
これは
1 |
lrwxr-xr-x root shell 2012-11-20 01:27 ifconfig -> toolbox |
となっているのでtoolboxに含まれているifconfigです。では明示的にBusyBoxのifconfigを実行してみます
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
root@android:/ # <strong>busybox ifconfig</strong> 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:16436 Metric:1 RX packets:263 errors:0 dropped:0 overruns:0 frame:0 TX packets:263 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:19051 (18.6 KiB) TX bytes:19051 (18.6 KiB) p2p0 Link encap:Ethernet HWaddr 0A:60:6E:AB:52:07 inet6 addr: fe80::860:6eff:feab:5207/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan0 Link encap:Ethernet HWaddr 08:60:6E:A7:04:0A inet addr:192.168.1.234 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a60:6eff:feab:5207/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:115210 errors:0 dropped:5181 overruns:0 frame:0 TX packets:51744 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:147144842 (140.3 MiB) TX bytes:4105820 (3.9 MiB) |
一般的なifconfigと同じ情報が得られました。やはりBusyBoxはインストールしていて損はないですね
無線LANのChipは
Search results for “08606e”
MAC Vendor
08606E ASUSTek COMPUTER INC.
でそのまんまでした。
ちなみにnetstatは
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
root@android:/ # <strong>netstat</strong> Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 1 1 192.168.1.234:44040 74.125.235.89:80 LAST_ACK tcp 1 1 192.168.1.234:44039 74.125.235.89:80 LAST_ACK tcp 220 0 192.168.1.234:22 192.168.20.199:55840 ESTABLISHED tcp 1 1 192.168.1.234:54717 74.125.232.143:80 LAST_ACK tcp6 0 1 ::ffff:192.168.1.234:47039 ::ffff:74.125.235.89:80 CLOSE_WAIT tcp6 0 0 ::ffff:192.168.1.234:41539 ::ffff:74.125.31.188:5228 ESTABLISHED tcp6 0 0 ::ffff:192.168.1.234:38748 ::ffff:65.55.206.226:80 TIME_WAIT tcp6 0 24 ::ffff:192.168.1.234:39030 ::ffff:207.171.163.134:443 CLOSE_WAIT tcp6 0 24 ::ffff:192.168.1.234:45499 ::ffff:205.251.242.2:443 CLOSE_WAIT tcp6 0 28 ::ffff:192.168.1.234:49035 ::ffff:69.171.237.20:443 CLOSE_WAIT tcp6 0 28 ::ffff:192.168.1.234:53885 ::ffff:69.171.237.20:443 CLOSE_WAIT tcp6 0 1 ::ffff:192.168.1.234:45836 ::ffff:74.125.235.66:80 CLOSE_WAIT |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
root@android:/ # <strong>busybox netstat</strong> Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 1 1 192.168.1.234:44040 74.125.235.89:80 LAST_ACK tcp 1 1 192.168.1.234:44039 74.125.235.89:80 LAST_ACK tcp 0 408 192.168.1.234:22 192.168.20.199:55840 ESTABLISHED tcp 1 1 192.168.1.234:54717 74.125.232.143:80 LAST_ACK tcp 1 0 ::ffff:192.168.1.234:47039 ::ffff:74.125.235.89:80 CLOSE_WAIT tcp 0 0 ::ffff:192.168.1.234:41539 ::ffff:74.125.31.188:5228 ESTABLISHED tcp 0 0 ::ffff:192.168.1.234:40939 ::ffff:69.171.234.34:443 ESTABLISHED tcp 0 0 ::ffff:192.168.1.234:38748 ::ffff:65.55.206.226:80 TIME_WAIT tcp 24 0 ::ffff:192.168.1.234:39030 ::ffff:207.171.163.134:443 CLOSE_WAIT tcp 24 0 ::ffff:192.168.1.234:45499 ::ffff:205.251.242.2:443 CLOSE_WAIT tcp 1 2049 ::ffff:192.168.1.234:49035 ::ffff:69.171.237.20:443 LAST_ACK tcp 1 0 ::ffff:192.168.1.234:45836 ::ffff:74.125.235.66:80 CLOSE_WAIT Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 4 [ ] DGRAM 5553 /dev/socket/wpa_wlan0 unix 2 [ ] DGRAM 5555 /data/misc/wifi/sockets/wpa_ctrl_477-1 unix 2 [ ] DGRAM 5556 /data/misc/wifi/sockets/wpa_ctrl_477-2 unix 4 [ ] DGRAM 5608 /data/misc/wifi/sockets/p2p0 unix 2 [ ] DGRAM 5618 /data/misc/wifi/sockets/wpa_ctrl_477-3 unix 2 [ ] DGRAM 5619 /data/misc/wifi/sockets/wpa_ctrl_477-4 unix 3 [ ] SEQPACKET CONNECTED 64324 unix 3 [ ] SEQPACKET CONNECTED 64323 unix 3 [ ] STREAM CONNECTED 87559 unix 3 [ ] STREAM CONNECTED 87558 unix 3 [ ] SEQPACKET CONNECTED 85646 unix 3 [ ] SEQPACKET CONNECTED 85645 unix 3 [ ] SEQPACKET CONNECTED 87557 unix 3 [ ] SEQPACKET CONNECTED 87556 unix 3 [ ] STREAM CONNECTED 64244 unix 3 [ ] STREAM CONNECTED 64243 unix 3 [ ] SEQPACKET CONNECTED 88120 unix 3 [ ] SEQPACKET CONNECTED 88119 unix 2 [ ] STREAM 83893 unix 3 [ ] SEQPACKET CONNECTED 49851 unix 3 [ ] SEQPACKET CONNECTED 49850 unix 3 [ ] SEQPACKET CONNECTED 46433 unix 3 [ ] SEQPACKET CONNECTED 46432 unix 3 [ ] SEQPACKET CONNECTED 36905 unix 3 [ ] SEQPACKET CONNECTED 36904 unix 3 [ ] SEQPACKET CONNECTED 43629 unix 3 [ ] SEQPACKET CONNECTED 43628 unix 3 [ ] SEQPACKET CONNECTED 43595 unix 3 [ ] SEQPACKET CONNECTED 43594 unix 3 [ ] STREAM CONNECTED 17857 unix 3 [ ] STREAM CONNECTED 17856 unix 3 [ ] STREAM CONNECTED 17689 unix 3 [ ] STREAM CONNECTED 17688 unix 3 [ ] SEQPACKET CONNECTED 17682 unix 3 [ ] SEQPACKET CONNECTED 17681 unix 3 [ ] SEQPACKET CONNECTED 15583 unix 3 [ ] SEQPACKET CONNECTED 15582 unix 3 [ ] SEQPACKET CONNECTED 14660 unix 3 [ ] SEQPACKET CONNECTED 14659 unix 3 [ ] STREAM CONNECTED 3462 /dev/socket/adbd unix 3 [ ] STREAM CONNECTED 7845 unix 3 [ ] SEQPACKET CONNECTED 6565 unix 3 [ ] SEQPACKET CONNECTED 6564 unix 3 [ ] SEQPACKET CONNECTED 3438 unix 3 [ ] SEQPACKET CONNECTED 3437 unix 3 [ ] SEQPACKET CONNECTED 7755 unix 3 [ ] SEQPACKET CONNECTED 7754 unix 3 [ ] SEQPACKET CONNECTED 6452 unix 3 [ ] SEQPACKET CONNECTED 6451 unix 3 [ ] SEQPACKET CONNECTED 7625 unix 3 [ ] SEQPACKET CONNECTED 7624 unix 3 [ ] STREAM CONNECTED 5639 /dev/socket/zygote unix 3 [ ] STREAM CONNECTED 3302 unix 3 [ ] SEQPACKET CONNECTED 5638 unix 3 [ ] SEQPACKET CONNECTED 5637 unix 3 [ ] SEQPACKET CONNECTED 5636 unix 3 [ ] SEQPACKET CONNECTED 5635 unix 3 [ ] SEQPACKET CONNECTED 5634 unix 3 [ ] SEQPACKET CONNECTED 5633 unix 3 [ ] STREAM CONNECTED 5621 unix 3 [ ] STREAM CONNECTED 5620 unix 3 [ ] STREAM CONNECTED 5614 unix 3 [ ] STREAM CONNECTED 5613 unix 3 [ ] STREAM CONNECTED 5550 /dev/socket/mdns unix 3 [ ] STREAM CONNECTED 5549 unix 3 [ ] STREAM CONNECTED 5518 /dev/socket/netd unix 3 [ ] STREAM CONNECTED 5517 unix 3 [ ] STREAM CONNECTED 5515 /dev/socket/vold unix 3 [ ] STREAM CONNECTED 5514 unix 3 [ ] SEQPACKET CONNECTED 5506 unix 3 [ ] SEQPACKET CONNECTED 5505 unix 3 [ ] SEQPACKET CONNECTED 7604 unix 3 [ ] SEQPACKET CONNECTED 7603 unix 3 [ ] SEQPACKET CONNECTED 5480 unix 3 [ ] SEQPACKET CONNECTED 5479 unix 3 [ ] STREAM CONNECTED 6224 /dev/socket/installd unix 3 [ ] STREAM CONNECTED 7284 unix 3 [ ] SEQPACKET CONNECTED 3284 unix 3 [ ] SEQPACKET CONNECTED 3283 unix 3 [ ] STREAM CONNECTED 3276 unix 3 [ ] STREAM CONNECTED 3275 unix 3 [ ] STREAM CONNECTED 3209 unix 3 [ ] STREAM CONNECTED 3208 unix 3 [ ] STREAM CONNECTED 3207 unix 3 [ ] STREAM CONNECTED 3206 unix 3 [ ] STREAM CONNECTED 3193 unix 3 [ ] STREAM CONNECTED 3192 unix 3 [ ] STREAM CONNECTED 7183 unix 3 [ ] STREAM CONNECTED 7182 |
ちなみにこの状態はNexus 7でsshdを動作させてTeraTermからログインしている状態です。
何もしていなくてもGoogleにFacebook,Microsoft,Amazonに繋ぎにいってるなぁ