CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/dhcp/constants.rb
Views: 11703
1
# -*- coding: binary -*-
2
3
module Rex
4
module Proto
5
module DHCP::Constants
6
7
Request = 1
8
Response = 2
9
10
DHCPDiscover = 1
11
DHCPOffer = 2
12
DHCPRequest = 3
13
DHCPAck = 5
14
15
DHCPMagic = "\x63\x82\x53\x63"
16
17
OpDHCPServer = 0x36
18
OpLeaseTime = 0x33
19
OpSubnetMask = 1
20
OpRouter = 3
21
OpDomainName = 15
22
OpDns = 6
23
OpHostname = 0x0c
24
OpURL = 0x72
25
OpProxyAutodiscovery = 0xfc
26
OpEnd = 0xff
27
28
PXEMagic = "\xF1\x00\x74\x7E"
29
OpPXEMagic = 0xD0
30
OpPXEConfigFile = 0xD1
31
OpPXEPathPrefix = 0xD2
32
OpPXERebootTime = 0xD3
33
34
end
35
end
36
end
37
38