Module: BetterCap::Network::Protos::DHCP
- Defined in:
- lib/bettercap/network/protos/dhcp.rb
Defined Under Namespace
Classes: Packet
Constant Summary collapse
- OP_MESSAGETYPES =
{ # DHCP Message type responses (all len = 1) 1 => 'DISCOVER', 2 => 'OFFER', 3 => 'REQUEST', 4 => 'DECLINE', 5 => 'ACK', 6 => 'NAK', 7 => 'RELEASE' }
- OP_CONSTANTS =
{ 0 => :Pad, 1 => :SubnetMask, 2 => :TimeOffset, 3 => :Router, 4 => :TimeServer, 5 => :NameServer, 6 => :DNS, 7 => :LogServer, 8 => :QuoteServer, 9 => :LPRServer, 10 => :ImpressServer, 11 => :RLServer, 12 => :HostName, 13 => :BootFileSize, 14 => :MeritDumpFile, 15 => :DomainName, 16 => :SwapServer, 17 => :RootPath, 18 => :ExtensionsPath, 19 => :IPForwarding, 20 => :NonLocalRouting, 21 => :PolicyFilter, 22 => :MaximumDRSize, 23 => :DefaultIPTTL, 24 => :PathMTUAgingTimeout, 25 => :PathMTUPlateauTable, 26 => :InterfaceMTU, 27 => :AllSubnetsLocal, 28 => :BroadcastAddress, 29 => :PerformMask, 30 => :MaskSupplier, 31 => :PerformRouter, 32 => :RouterSolicitation, 33 => :StaticRoutingEnable, 34 => :TrailerEncap, 35 => :ArpCacheTimeout, 36 => :EthernetEncap, 37 => :DefaultTCPTTL, 38 => :TCPKeepAliveInt, 39 => :TCPKeepAliveGB, 40 => :NISDomain, 41 => :NISServer, 42 => :NTPServers, 43 => :VendorSpecificInfo, 44 => :NetBIOSNameServer, 45 => :NetBIOSDDS, 46 => :NetBIOSNodeType, 47 => :NetBIOSScope, 48 => :XWindowSystemFont, 49 => :XWindowSystemDM, 50 => :RequestedIPAddress, 51 => :IPAddressLeaseTime, 52 => :OptionOverload, 53 => :MessageType, 54 => :ServerIdentifier, 55 => :Parameters, 56 => :Message, 57 => :MaxDHCPMessageSize, 58 => :RenewTimeValue, 59 => :RebindingTimeValue, 60 => :ClassIdentifier, 61 => :ClientIdentifier, 62 => :NetWareIPDomainName, 63 => :NetWareIPInformation, 64 => :NISClientDomain, 65 => :NISServers, 66 => :TFTPServerName, 67 => :BootFileName, 68 => :MobileIPHomeAgent, 69 => :SMTPServer, 70 => :POPServer, 71 => :NNTPServer, 72 => :DefaultWWWServer, 73 => :DefaultFingerServer, 74 => :DefaultIRCServer, 75 => :StreetTalkServer, 76 => :StreetTalkDAS, 77 => :UserClassInformation, 78 => :SLPDirectoryAgent, 79 => :SLPServiceScope, 80 => :RapidCommit, 81 => :FQDN, 82 => :RelayAgentInformation, 83 => :InternetStorageNameService, # ?? 85 => :NDSServers, 86 => :NDSTreeName, 87 => :NDSContext, 88 => :BCMCSContDomainNameList, 89 => :BCMCSContIPV4AddressList, 90 => :Authentication, 91 => :ClientLastTransactTime, 92 => :AssociatedIP, 93 => :ClientSystemArchType, 94 => :ClientNetworkInterfaceIdent, 95 => :LDAP, # ?? 97 => :ClientMachineIdent, 98 => :OGUA, # ?? 109 => :AutonomousSystemNumber, # ?? 112 => :NetInfoParentServerAddress, 113 => :NetInfoParentServerTag, 114 => :URL, 116 => :AutoConfigure, 117 => :NameServiceSearch, 118 => :SubnetSelection, 119 => :DNSDomainSearchList, 120 => :SIPServers, 121 => :ClasslessStaticRoute, 122 => :CableLabsClientConfig, 123 => :GeoConf, 252 => :ProxyAutoDiscovery }
- AUTH_PROTOCOLS =
{ 0 => "configuration token", 1 => "delayed authentication" }