[+] 针对微信、QQ特定版本范围的特征码

This commit is contained in:
huiyadanli
2019-12-26 01:05:27 +08:00
parent 818a7e1dbd
commit 000dfa969e
7 changed files with 139 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ namespace RevokeMsgPatcher.Model
/// <summary>
/// 通用的修改特征
/// </summary>
public Dictionary<string, List<ModifyInfo>> FileCommonModifyInfos { get; set; }
public Dictionary<string, List<CommonModifyInfo>> FileCommonModifyInfos { get; set; }
public HashSet<string> GetSupportVersions()
{
+4 -4
View File
@@ -15,7 +15,7 @@ namespace RevokeMsgPatcher.Model
public string EndVersion { get; set; }
public List<Change> Changes { get; set; }
public List<ReplacePattern> ReplacePatterns { get; set; }
public CommonModifyInfo Clone()
{
@@ -23,12 +23,12 @@ namespace RevokeMsgPatcher.Model
o.Name = Name;
o.StartVersion = StartVersion;
o.EndVersion = EndVersion;
List<Change> cs = new List<Change>();
foreach(Change c in Changes)
List<ReplacePattern> cs = new List<ReplacePattern>();
foreach(ReplacePattern c in ReplacePatterns)
{
cs.Add(c.Clone());
}
o.Changes = cs;
o.ReplacePatterns = cs;
return o;
}
}
+19
View File
@@ -0,0 +1,19 @@
using System;
namespace RevokeMsgPatcher.Model
{
public class ReplacePattern
{
public byte[] Search { get; set; }
public byte[] Replace { get; set; }
public ReplacePattern Clone()
{
ReplacePattern o = new ReplacePattern();
o.Search = Search;
o.Replace = Replace;
return o;
}
}
}