Compare commits
No commits in common. "059c02e2436e9f43176b3aa29f46cbd72c7e9391" and "0f6c5b6b0e7783cf2753c1ff2a4e20573e04ed4e" have entirely different histories.
059c02e243
...
0f6c5b6b0e
@ -7,11 +7,8 @@ WORKDIR /usr/src/app
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# remove development dependencies
|
RUN apk update
|
||||||
RUN npm prune --production
|
RUN apk add tcpdump
|
||||||
|
|
||||||
# Install required apk-packages & delete cache
|
|
||||||
RUN apk update && apk add tcpdump && rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
# Bundle app source
|
# Bundle app source
|
||||||
COPY ./src/ .
|
COPY ./src/ .
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
const PacketType = {
|
const PacketType = {
|
||||||
Beacon: "Beacon",
|
Beacon: 'Beacon',
|
||||||
ProbeRequest: "ProbeRequest",
|
ProbeRequest: 'ProbeRequest',
|
||||||
ProbeResponse: "ProbeResponse",
|
ProbeResponse: 'ProbeResponse',
|
||||||
Data: "Data",
|
Data: 'Data',
|
||||||
RequestToSend: "RequestToSend",
|
RequestToSend: 'RequestToSend',
|
||||||
ClearToSend: "ClearToSend",
|
ClearToSend: 'ClearToSend',
|
||||||
Acknowledgment: "Acknowledgment",
|
Acknowledgment: 'Acknowledgment',
|
||||||
BlockAcknowledgment: "BlockAcknowledgment",
|
BlockAcknowledgment: 'BlockAcknowledgment',
|
||||||
NoData: "NoData",
|
NoData: 'NoData',
|
||||||
Authentication: "Authentication",
|
Authentication: 'Authentication',
|
||||||
AssociationRequest: "AssociationRequest",
|
AssociationRequest: 'AssociationRequest',
|
||||||
AssociationResponse: "AssociationResponse",
|
AssociationResponse: 'AssociationResponse',
|
||||||
Disassociation: "Disassociation",
|
Disassociation: 'Disassociation',
|
||||||
Handshake: "Handshake",
|
Handshake: 'Handshake',
|
||||||
Unknown: "Unknown"
|
Unknown: 'Unknown'
|
||||||
};
|
}
|
||||||
|
|
||||||
const FlagType = {
|
const FlagType = {
|
||||||
MoreFragments: "MoreFragments",
|
MoreFragments: "MoreFragments",
|
||||||
@ -23,7 +23,7 @@ const FlagType = {
|
|||||||
MoreData: "MoreData",
|
MoreData: "MoreData",
|
||||||
Protected: "Protected",
|
Protected: "Protected",
|
||||||
Order: "Order"
|
Order: "Order"
|
||||||
};
|
}
|
||||||
|
|
||||||
class Packet{
|
class Packet{
|
||||||
timestampMicros;
|
timestampMicros;
|
||||||
@ -58,9 +58,9 @@ class ProbeRequestPacket extends PacketWithSSID{}
|
|||||||
class ProbeResponsePacket extends PacketWithSSID{}
|
class ProbeResponsePacket extends PacketWithSSID{}
|
||||||
|
|
||||||
const AuthenticationType = {
|
const AuthenticationType = {
|
||||||
OpenSystem_1: "OpenSystem_1",
|
OpenSystem_1: 'OpenSystem_1',
|
||||||
OpenSystem_2: "OpenSystem_2",
|
OpenSystem_2: 'OpenSystem_2',
|
||||||
Unknown: "Unknown",
|
Unknown: 'Unknown',
|
||||||
}
|
}
|
||||||
class AuthenticationPacket extends Packet{
|
class AuthenticationPacket extends Packet{
|
||||||
authenticationType;
|
authenticationType;
|
||||||
@ -77,10 +77,10 @@ class DisassociationPacket extends Packet{
|
|||||||
|
|
||||||
|
|
||||||
const HandshakeStage = {
|
const HandshakeStage = {
|
||||||
1: "1",
|
1: '1',
|
||||||
2: "2",
|
2: '2',
|
||||||
3: "3",
|
3: '3',
|
||||||
4: "4"
|
4: '4'
|
||||||
}
|
}
|
||||||
class HandshakePacket extends Packet{
|
class HandshakePacket extends Packet{
|
||||||
handshakeStage;
|
handshakeStage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user