コード例 #1
0
 public void Save()
 {
     try
     {
         WorkingAssembly.Write(NewLocation);
     } catch (Exception e)
     {
         Logger.Log(e.Message);
         Logger.Log(e.StackTrace);
     }
 }
コード例 #2
0
ファイル: TBNCracker.cs プロジェクト: devinbabb/ContraCrack
 public void Load()
 {
     try
     {
         OriginalAssembly = AssemblyDefinition.ReadAssembly(OriginalLocation);
         WorkingAssembly  = OriginalAssembly;
     }
     catch
     {
         Logger.Log(Constants.AssemblyErrorMessage);
         HasIssue = true;
         return;
     }
     if (WorkingAssembly.HasStrongName())
     {
         Logger.Log("Removing Strongname Key...");
         WorkingAssembly.RemoveStrongName();
     }
 }
コード例 #3
0
 public void Load()
 {
     try
     {
         OriginalAssembly = AssemblyDefinition.ReadAssembly(OriginalLocation);
         WorkingAssembly  = OriginalAssembly;
     }
     catch
     {
         Logger.Log(Constants.AssemblyErrorMessage);
         HasIssue = true;
         return;
     }
     if (WorkingAssembly.HasStrongName())
     {
         Logger.Log("Removing Strongname Key...");
         WorkingAssembly.RemoveStrongName();
     }
     Logger.Log("Gathering User Input...");
     _toChange    = Interface.GetUserInputDialog("What string are you replacing?", "Settings", "example.com");
     _replacement = Interface.GetUserInputDialog("What are you replacing it with?", "Settings", "example.net");
 }
コード例 #4
0
ファイル: TBNCracker.cs プロジェクト: devinbabb/ContraCrack
 public void Save()
 {
     WorkingAssembly.Write(NewLocation);
 }