<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>DHCP on Timmoc 的技术小屋</title>
    <link>https://t1mmoc.github.io/tags/dhcp/</link>
    <description>Recent content in DHCP on Timmoc 的技术小屋</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sat, 17 Oct 2026 16:30:00 +0800</lastBuildDate>
    <atom:link href="https://t1mmoc.github.io/tags/dhcp/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>【AIGC】拿一个不存在的 MAC 去要 IP：用 scapy 手搓一个 DHCP Discover</title>
      <link>https://t1mmoc.github.io/posts/2026-10-17-scapy-dhcp-discover/</link>
      <pubDate>Sat, 17 Oct 2026 16:30:00 +0800</pubDate>
      <guid>https://t1mmoc.github.io/posts/2026-10-17-scapy-dhcp-discover/</guid>
      <description>旧目录里躺着 20 行 Python：自己拼一个 DHCP Discover，用一个和本机 MAC 只差 2 的假地址去问路由器要 IP。拆开看才发现 DHCP 最妙的地方——我还没有 IP，却要发一个 IP 包，所以源地址只能是 0.0.0.0、目的地址只能是 255.255.255.255，而 SERVER 认我的唯一凭据是 chaddr 和那个随机 xid。顺带把 param_req_list 里 13 个代码逐条对上（1/3/6/15/31/43/44/46/47/119/121/249/252），以及为什么 requested_addr 只是建议、为什么 flags 要置 0x8000，还有这个脚本反过来能证明 DHCP 完全没有认证——谁先答谁算数。</description>
    </item>
  </channel>
</rss>
