Пример #1
0
 private static void ShowCredit()
 {
     Console.WriteLine("ysoserial.net has been developed by Alvaro Muñoz (@pwntester)");
     Console.WriteLine("");
     Console.WriteLine("Credits for available gadgets:");
     foreach (string g in generators)
     {
         try
         {
             if (g != "Generic")
             {
                 ObjectHandle container = Activator.CreateInstance(null, "ysoserial.Generators." + g + "Generator");
                 IGenerator   gg        = (IGenerator)container.Unwrap();
                 //Console.WriteLine("\t" + gg.Name() + " (" + gg.Description() + ")");
                 Console.WriteLine("\t" + gg.Name());
                 Console.WriteLine("\t\t" + gg.Credit());
             }
         }
         catch
         {
             Console.WriteLine("Gadget not supported");
             System.Environment.Exit(-1);
         }
     }
     Console.WriteLine("");
     Console.WriteLine("Credits for available plugins:");
     foreach (string p in plugins)
     {
         try
         {
             if (p != "Generic")
             {
                 ObjectHandle container = Activator.CreateInstance(null, "ysoserial.Plugins." + p + "Plugin");
                 IPlugin      pp        = (IPlugin)container.Unwrap();
                 //Console.WriteLine("\t" + pp.Name() + " (" + pp.Description() + ")");
                 Console.WriteLine("\t" + pp.Name());
                 Console.WriteLine("\t\t" + pp.Credit());
             }
         }
         catch
         {
             Console.WriteLine("Plugin not supported");
             System.Environment.Exit(-1);
         }
     }
     Console.WriteLine("");
     Console.WriteLine("Various other people have also donated their time and contributed to this project.");
     Console.WriteLine("Please see https://github.com/pwntester/ysoserial.net/graphs/contributors to find those who have helped developing more features or have fixed bugs.");
     System.Environment.Exit(0);
 }