WOL(Wake-on-LAN)網路喚醒封包,現在大多數網卡在關機狀態的時候,能夠以低電量方式接收wol封包,一旦收到就可以讓電腦開機。
一般都是屬於layer 2的協定,type是0x0842,WOL也可以透過UDP走在WAN上。
執行結果:
libpcap % ./dump-wol Sniffing: en0 6c:40:08:bc:ae:98 -> ff:ff:ff:ff:ff:ff +-------------------------+-------------------------+-------------------------+ | Sync stream: ffffffffffff| +-------------------------+-------------------------+-------------------------+ | MAC Address: a0:d7:95:b7:22:2f| +-------------------------+-------------------------+-------------------------+ | Password: 00:00:00:00:00:00| +-------------------------+-------------------------+-------------------------+
Source code on Github
沒有留言:
張貼留言