
Originally Posted by
maartenvn
What do you need to do when it shows more packets than 1:

These are probable matches. For a more precise check, you need to close the match in the source (other check methods), though most of them are just one match found, which is probably the one. Perhaps I do a new build...
- - - Updated - - -
Btw, NS stands for not sure, though when it shows just one and it is NS you can rely on the response
- - - Updated - - -
Just some random patch, for more closer match, even it don't help in nothing:
Change ConvertData method for:
Code:
public static string ConvertData(string data)
{
data = data.Replace(" ", " ");
IDictionary<string, int> lst = new Dictionary<string, int>();
string[] isolation = Regex.Split(data, "_-");
string endData = data;
int rplcData = 0;
foreach (string all in isolation)
{
try
{
string replace = all.Substring(0, 3);
replace = replace.Replace(" ", "");
replace = replace.Replace("(", "");
replace = replace.Replace(";", "");
replace = replace.Replace(" ", "");
replace = replace.Replace(".", "");
replace = replace.Replace("{", "");
replace = replace.Replace("}", "");
replace = replace.Replace(")", "");
replace = replace.Replace(",", "");
replace = replace.Replace(":", "");
string toReplace = "";
if (lst.ContainsKey(replace))
{
toReplace = lst[replace].ToString();
}
else
{
lst.Add(replace, rplcData);
toReplace = rplcData.ToString();
rplcData++;
}
endData = endData.Replace(replace, toReplace);
//endData = endData.Replace(replace, "");
}
catch
{
continue;
}
}
endData = endData.Replace("\n", "");
endData = endData.Replace("\r", "");
endData = endData.Replace(" ", "");
return endData;
}
Before it just removed some kinds of objects, now will just rename them as of repeat. It doesn't work, but at least can be a little more accurated.
Example of before (not a code, only an example:
Code:
This is a _-3dC !
My program is _-aDc
_-3dC
Now:
Code:
This is a _-1!
My program is _-2
_-1
At least matches can be a little closer.
Example of original code:
Old Patch:
Now: