Skip to content

Commit 82f53e3

Browse files
author
Noah Potash
committed
Removed broken MS vendor tag support
1 parent aaf759d commit 82f53e3

File tree

6 files changed

+25
-358
lines changed

6 files changed

+25
-358
lines changed

Diff for: README.md

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ LibPacketGremlin Supports the following packet types:
1919
* ICMP
2020
* IEEE 802.11
2121
* IEEE 802.11 Beacons
22-
* Partial support for MS vendor tags
2322
* SSID tag
2423
* IEEE 802.1x
2524
* EAPoL Keys

Diff for: src/LibPacketGremlin/LibPacketGremlin.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
<PackageProjectUrl>https://github.com/SapientGuardian/LibPacketGremlin</PackageProjectUrl>
1515
<PackageLicenseUrl>http://opensource.org/licenses/MIT</PackageLicenseUrl>
1616
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
17-
<Version>1.0.2</Version>
18-
<AssemblyVersion>0.1.0.2</AssemblyVersion>
19-
<FileVersion>0.1.0.2</FileVersion>
17+
<Version>1.1.0</Version>
18+
<AssemblyVersion>0.1.1.0</AssemblyVersion>
19+
<FileVersion>0.1.1.0</FileVersion>
2020
</PropertyGroup>
2121

2222
<ItemGroup>

Diff for: src/LibPacketGremlin/Packets/Beacon802_11.cs

+11-10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace OutbreakLabs.LibPacketGremlin.Packets
1414

1515
using OutbreakLabs.LibPacketGremlin.Abstractions;
1616
using OutbreakLabs.LibPacketGremlin.Packets.Beacon802_11Support;
17+
using OutbreakLabs.LibPacketGremlin.Utilities;
1718

1819
/// <summary>
1920
/// 802.11 beacon, containing information about a network
@@ -176,7 +177,7 @@ internal static bool TryParse(byte[] buffer, int index, int count, out Beacon802
176177
break;
177178
case (byte)ManagementTagTypes.VendorSpecific:
178179
{
179-
// We'll ask each vendor to parse. Not the most efficient solution.
180+
/* We'll ask each vendor to parse. Not the most efficient solution.
180181
MSTag msTag;
181182
if (MSTag.TryParse(
182183
buffer,
@@ -187,17 +188,17 @@ internal static bool TryParse(byte[] buffer, int index, int count, out Beacon802
187188
newTag = msTag;
188189
}
189190
else
191+
{*/
192+
VendorTag tag;
193+
if (VendorTag.TryParse(
194+
buffer,
195+
index + (int)br.BaseStream.Position - 2,
196+
2 + safeLength,
197+
out tag))
190198
{
191-
VendorTag tag;
192-
if (VendorTag.TryParse(
193-
buffer,
194-
index + (int)br.BaseStream.Position - 2,
195-
2 + safeLength,
196-
out tag))
197-
{
198-
newTag = tag;
199-
}
199+
newTag = tag;
200200
}
201+
/*}*/
201202
}
202203
break;
203204
}

Diff for: src/LibPacketGremlin/Packets/Beacon802_11Support/MSSubTag.cs

-141
This file was deleted.

0 commit comments

Comments
 (0)