public void Build()
 {
     if (!debugging)
     {
         CallHijacker.Config Config = new CallHijacker.Config();
         Config.Debug             = false;
         Config.Functions         = new CallHijacker.Function();
         Config.Functions.MDToken = new List <CallHijacker.MDToken>();
         Config.Functions.Methods = new List <Method>();
         Console.Clear();
         Console.ForegroundColor = ConsoleColor.White;
         Config.Functions        = CreateFunction(Config.Functions);
         SaveConfig(Config);
         Console.WriteLine("Saved!");
         Console.ReadLine();
         Console.Clear();
     }
     else
     {
         CallHijacker.Config Config = new CallHijacker.Config();
         Config.Debug = true;
         File.AppendAllText("Config.Json", JsonConvert.SerializeObject(Config, Formatting.Indented, new JsonSerializerSettings {
             NullValueHandling = NullValueHandling.Ignore
         }));
     }
 }
Esempio n. 2
0
 public static void CreateDebugConfig()
 {
     CallHijacker.Config Config = new CallHijacker.Config();
     Config.Debug = true;
     File.AppendAllText("Config.Json", JsonConvert.SerializeObject(Config, Formatting.Indented, new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }
Esempio n. 3
0
 public static void CreateConfig()
 {
     CallHijacker.Config Config = new CallHijacker.Config();
     Config.Debug             = false;
     Config.Functions         = new CallHijacker.Function();
     Config.Functions.MDToken = new List <CallHijacker.MDToken>();
     Config.Functions.Methods = new List <Method>();
     Console.Clear();
     Console.ForegroundColor = ConsoleColor.White;
     Config.Functions        = CreateFunction(Config.Functions);
     SaveConfig(Config);
     Console.WriteLine("Saved!");
     Console.ReadLine();
     Console.Clear();
 }
Esempio n. 4
0
        public static void CreateConfig()
        {
            CallHijacker.Config Config = new CallHijacker.Config();
            Config.Debug     = false;
            Config.Functions = new List <CallHijacker.Function>();
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.White;
            for (; ;)
            {
                if (WriteShit() == 1)
                {
                    Config.Functions.Add(CreateFunction());
                    continue;
                }



                File.AppendAllText("Config.Json", JsonConvert.SerializeObject(Config, Formatting.Indented, new JsonSerializerSettings {
                    NullValueHandling = NullValueHandling.Ignore
                }));
            }
        }