I found at least 2 issues with the way Inssider 2 exports NS1 files.
1. The speed (data rate) is calculated incorrectly. In the NS1 file format specification, this field is defined in units of 100kbps. I looked at the source code and I found that the original value (expressed in mbps) is multiplied by 1024 and then divided by 100. 1 mbit = 1000 kbits, not 1024kbits. So it should only be multiplied by 10.
2. When exporting to NS1 every client is detected as "Peer" or "Ad-hoc". This is fixed easily by modifying lines 70 and 75:Code:Line 119: bData.AddRange(BitConverter.GetBytes(((int)ap.MaxRate) * 10));
Code:67://802.11 capability flags. This just shows if the AP uses WEP and/or is AdHoc 68: if(ap.Privacy.ToLower() == "wep") 69: { 70: if (ap.NetworkType != "Access Point") bData.AddRange(new byte[] { 0x12, 0x00, 0x00, 0x00 }); 71: else bData.AddRange(new byte[] { 0x11, 0x00, 0x00, 0x00 }); 72: } 73: else 74: { 75: if (ap.NetworkType != "Access Point") bData.AddRange(new byte[] { 0x02, 0x00, 0x00, 0x00 }); 76: else bData.AddRange(new byte[] { 0x01, 0x00, 0x00, 0x00 }); 77: }


Reply With Quote


Bookmarks