1enum encryption {
2 WPA = "WPA",
3 WPA2 = "WPA2",
4 AUTO = "AUTO",
5 UNKNOWN = "UNKNOWN",
6}
7
8type password = {
9 password: string
10 valid: boolean
11}
12
13type handshake = {
14 ssid: string
15 bssid: string
16 snonce: string
17 anonce: string
18 srcAddress: string
19 dstAddress: string
20 mic: string
21 eapolFrameBytes: string
22}
23
24type network = {
25 ssid: string
26 bssid: string
27 signal: number
28 channel: number
29 encryption: encryption
30 deauthState: boolean
31 handshake: boolean
32 handshakeData: handshake[]
33 password: password[]
34}
35
36const notifyStyle = {
37 style: {
38 border: "1px solid #77AADD",
39 padding: "16px",
40 color: "#77AADD",
41 background: "rgb(30 41 59)",
42 fontFamily: "Roboto",
43 fontSize: "14px",
44 fontWeight: "bold",
45 },
46}
47
48export type { network, password, handshake }
49export { notifyStyle, encryption }