コード例 #1
0
        public List <IPlugin> GetPlugins(string path = "Modules")
        {
            List <IPlugin> plug  = new List <IPlugin>();
            var            files = Directory.GetFiles(path, "*.ini");

            if (Program.IsT)
            {
                foreach (var file in files)
                {
                    try
                    {
                        var plugin = new Container(PSettings.GetSettings(file));
                        plug.Add(plugin);
                    }
                    catch { }
                }
            }
            return(plug);
        }
コード例 #2
0
ファイル: Container.cs プロジェクト: school1111/GiftCarder
 public Container(PSettings settings)
 {
     IsWorked   = false;
     debug      = false;
     r          = new Random();
     _pSettings = settings;
     if (settings.Captcha.Contains("true"))
     {
         if (settings.DeathByCaptchaAccount.Contains(":"))
         {
             try
             {
                 sc = new SocketClient(settings.DeathByCaptchaAccount.Split(':')[0], settings.DeathByCaptchaAccount.Split(':')[1]);
                 Console.WriteLine($"Balance: {sc.Balance}");
             }
             catch
             {
                 Console.WriteLine($"DeathByCaptcha: Account is bad");
             }
         }
     }
     o = new object();
 }
コード例 #3
0
ファイル: PSettings.cs プロジェクト: school1111/GiftCarder
        public static PSettings GetSettings(string file)
        {
            string    s = File.ReadAllText(file);
            PSettings p = new PSettings
            {
                Name                  = s.GetData("Name"),
                CardDictionary        = s.GetData("CardDictionary"),
                LastSymReplace        = Int32.Parse(s.GetData("LastSymReplace")),
                ModuleType            = s.GetData("ModuleType"),
                UrlTok                = s.GetData("UrlTok"),
                UrlTokData            = s.GetData("UrlTokData"),
                UseProxy              = s.GetData("UseProxy"),
                UrlTokMethod          = s.GetData("UrlTokMethod"),
                UrlData               = s.GetData("UrlData"),
                Url                   = s.GetData("Url"),
                UrlMethod             = s.GetData("UrlMethod"),
                Good                  = s.GetData("Good"),
                Bad                   = s.GetData("Bad"),
                Pin                   = s.GetData("Pin"),
                ValidGiftCard         = s.GetData("ValidGiftCard"),
                ParseBalance          = s.GetData("ParseBalance"),
                Author                = s.GetData("Author"),
                Captcha               = s.GetData("Captcha"),
                CaptchaUrl            = s.GetData("CaptchaUrl"),
                DeathByCaptchaAccount = s.GetData("DeathByCaptchaAccount")
            };

            int i = 1;

            p.Tokens  = new Dictionary <string, string>();
            p.Headers = new Dictionary <string, string>();
            string t = "";

            do
            {
                t = s.GetData("ParseTok" + i);
                if (t.Length > 3)
                {
                    p.Tokens.Add("ParseTok" + i, t);
                }
                i++;
            } while (t != "");
            t = "";
            i = 1;
            do
            {
                t = s.GetData("ParseTokCookie" + i);
                if (t.Length > 3)
                {
                    p.Tokens.Add("ParseTokCookie" + i, t);
                }
                i++;
            } while (t != "");
            t = "";
            i = 1;
            try
            {
                do
                {
                    t = s.GetData("Header" + i);
                    if (t.Length > 3)
                    {
                        p.Headers[t.Split('|')[0]] = t.Split('|')[1];
                    }
                    i++;
                } while (t != "");
            }
            catch { }
            return(p);
        }