Created
November 11, 2020 11:21
-
-
Save spacemeowx2/02f9fea46dc450fb8e14974f9475d94f to your computer and use it in GitHub Desktop.
ldn_frame.bt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------ | |
//--- 010 Editor v9.0.2 Binary Template | |
// | |
// File: ldn_frame | |
// Authors: spacemeowx2 | |
// Version: 0.1.0 | |
// Purpose: | |
// Category: | |
// File Mask: | |
// ID Bytes: | |
// History: | |
//------------------------------------------------ | |
BigEndian(); | |
struct Node { | |
uint32 ip <format=hex,comment="ipv4 address">; | |
byte mac[6]; | |
byte IsConnected; | |
byte unused1; | |
char nickname[0x20]; | |
uint16 LocalCommunicationVersion; | |
byte unused2[0xa]; | |
}; | |
struct FILE { | |
struct Header { | |
uint16 magic <format=hex,comment="must be 0x0400">; | |
uint16 protocolId <format=hex,comment="must be 0x0101">; | |
char unused[4]; | |
} header; | |
struct Data{ | |
uint64 localCommunicationId <format=hex>; | |
uint16 unused1; | |
uint16 scanFilter; | |
uint32 unused2; | |
byte NetworkId[0x10] <format=hex,comment="ssid">; | |
byte authVersion; | |
byte encryption <comment="1 = plaintext, 2 = encrypted">; | |
uint16 dataSize <comment="must be <= 0x500">; | |
uint32 counter <format=hex,comment="used in AES128CTR">; | |
byte sha256[0x20]; | |
} data; | |
struct NetworkInfo{ | |
byte SecurityParameterData[0x10]; | |
uint16 SecurityConfigType; | |
byte AcceptPolicy; | |
byte unused1[3]; | |
byte MaxStations; | |
byte ConnectedStations; | |
Node nodes[8]; | |
uint16 unused2; | |
uint16 AdvertiseDataSize; | |
byte AdvertiseData[0x180]; | |
byte unused3[0x19C]; | |
byte RandomAuthenticationId[8] <comment="added in 6.0.0+">; | |
} networkInfo; | |
} file; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment