Пример #1
0
        private void btn_AddExp_Click(object sender, EventArgs e)
        {
            string str = DateTime.Now.Date.ToShortDateString();

            if (str.Contains("/"))
            {
                str = str.Replace("/", "-");
            }
            this.ExpModelArray[0]  = Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(this.cbb_appName.Text.Trim().ToLower());
            this.ExpModelArray[1]  = this.txt_btnName.Text.Trim();
            this.ExpModelArray[2]  = this.txt_btnTip.Text.Trim();
            this.paf.k8updateID    = this.k8updateID;
            this.paf.k8appName     = this.ExpModelArray[0];
            this.paf.k8btnName     = this.ExpModelArray[1];
            this.paf.k8btnTip      = this.ExpModelArray[2];
            this.ExpModelArray[1]  = K8crack.K8expBase64(this.ExpModelArray[1], 1);
            this.ExpModelArray[2]  = K8crack.K8expBase64(this.ExpModelArray[2], 1);
            this.ExpModelArray[10] = str;
            if (this.k8updateID == "")
            {
                string   str2       = this.ExpModelArray[0];
                string   str3       = this.ExpModelArray[3];
                string   str4       = this.ExpModelArray[4];
                string   str5       = this.ExpModelArray[5];
                string   str6       = this.ExpModelArray[6];
                string   str7       = this.ExpModelArray[7];
                string   str8       = this.ExpModelArray[8];
                string   str9       = this.ExpModelArray[9];
                string   str10      = this.ExpModelArray[11];
                string[] modelArray = new string[] { str2, str3, str4, str5, str6, str7, str8, str9, str10 };
                if (BLLk8EXP.ExistsRecord(modelArray))
                {
                    this.K8msgbox("已存在相同EXP! 若要修改请到按扭上右键修改EXP.\r\n\r\n按钮名称:" + K8crack.K8expBase64(BLLk8EXP.ExistsRecordGetBtnName(modelArray), 0));
                }
                else if (BLLk8EXP.InsertRecord(this.ExpModelArray))
                {
                    this.paf.K8createTabExpBtn();
                    this.K8msgbox("添加EXP成功!");
                    base.Close();
                }
            }
            else if (BLLk8EXP.UpdateRecord(this.ExpModelArray, int.Parse(this.k8updateID)))
            {
                this.paf.K8createTabExpBtn();
                this.paf.btn_AddUpdateExp.Text = "添加EXP";
                this.paf.k8updateID            = "";
                this.K8msgbox("修改EXP成功!");
                base.Close();
            }
        }
Пример #2
0
        private void K8inputDB2()
        {
            OpenFileDialog dialog = new OpenFileDialog {
                Filter = "mdb file|*.mdb"
            };

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                string fileName = dialog.FileName;
                this.txt_mdbpath.Text = fileName;
                string  str2  = "";
                string  str   = "";
                string  str4  = "";
                string  str5  = "";
                string  str6  = "";
                string  str7  = "";
                string  str8  = "";
                string  str9  = "";
                string  str10 = "";
                string  str11 = "";
                string  str12 = "";
                string  str13 = "";
                DataSet set   = BllGetDataSet(fileName);
                this.pb_inputExp.Minimum = 0;
                this.pb_inputExp.Value   = 0;
                this.pb_inputExp.Maximum = set.Tables[0].Rows.Count;
                foreach (DataRow row in set.Tables[0].Rows)
                {
                    this.pb_inputExp.Value++;
                    str2  = row["appName"].ToString();
                    str   = row["btnName"].ToString();
                    str4  = row["btnTip"].ToString();
                    str5  = row["method"].ToString();
                    str6  = row["cookie"].ToString();
                    str7  = row["sumbitData"].ToString();
                    str8  = row["referer"].ToString();
                    str9  = row["userAgent"].ToString();
                    str10 = row["encode"].ToString();
                    str11 = row["allowRedirect"].ToString();
                    str13 = row["addURL"].ToString();
                    str12 = DateTime.Now.Date.ToShortDateString();
                    if (str12.Contains("/"))
                    {
                        str12 = str12.Replace("/", "-");
                    }
                    if (!BLLk8EXP.ExistsRecord(new string[] { str2, str5, str6, str7, str8, str9, str10, str11, str13 }))
                    {
                        str   = K8crack.K8expBase64(str, 0);
                        str4  = K8crack.K8expBase64(str4, 0);
                        str6  = K8crack.K8expBase64(str6, 0);
                        str7  = K8crack.K8expBase64(str7, 0);
                        str8  = K8crack.K8expBase64(str8, 0);
                        str9  = K8crack.K8expBase64(str9, 0);
                        str13 = K8crack.K8expBase64(str13, 0);
                        str   = K8crack.K8expBase64(str, 1);
                        str4  = K8crack.K8expBase64(str4, 1);
                        str6  = K8crack.K8expBase64(str6, 1);
                        str7  = K8crack.K8expBase64(str7, 1);
                        str8  = K8crack.K8expBase64(str8, 1);
                        str9  = K8crack.K8expBase64(str9, 1);
                        str13 = K8crack.K8expBase64(K8crack.K8expBase64(str13, 1), 0);
                        BLLk8EXP.InsertRecord(new string[] { str2, str, str4, str5, str6, str7, str8, str9, str10, str11, str12 });
                    }
                }
                this.K8msgbox("EXP导入完成,请重新启动程序!");
            }
        }
Пример #3
0
        private void K8inputDB()
        {
            int            num    = 0;
            int            num2   = 0;
            string         text   = this.Text;
            OpenFileDialog dialog = new OpenFileDialog {
                Filter = "mdb file|*.mdb"
            };

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                string fileName = dialog.FileName;
                this.txt_mdbpath.Text = fileName;
                string  str3  = "";
                string  str4  = "";
                string  str5  = "";
                string  str6  = "";
                string  str7  = "";
                string  str8  = "";
                string  str9  = "";
                string  str10 = "";
                string  str11 = "";
                string  str12 = "";
                string  str13 = "";
                string  str   = "";
                DataSet set   = BllGetDataSet(fileName);
                this.pb_inputExp.Minimum = 0;
                this.pb_inputExp.Value   = 0;
                this.pb_inputExp.Maximum = set.Tables[0].Rows.Count;
                foreach (DataRow row in set.Tables[0].Rows)
                {
                    int num3;
                    this.pb_inputExp.Value = (num3 = this.pb_inputExp.Value) + 1;
                    num = num3;
                    string[] strArray = new string[] { text, "   将导入 ", this.pb_inputExp.Maximum.ToString(), "个 检测第 ", (num + 1).ToString(), "个 新增 ", num2.ToString(), "个EXP" };
                    this.Text = string.Concat(strArray);
                    str3      = row["appName"].ToString();
                    str4      = row["btnName"].ToString();
                    str5      = row["btnTip"].ToString();
                    str6      = row["method"].ToString();
                    str7      = row["cookie"].ToString();
                    str8      = row["sumbitData"].ToString();
                    str9      = row["referer"].ToString();
                    str10     = row["userAgent"].ToString();
                    str11     = row["encode"].ToString();
                    str12     = row["allowRedirect"].ToString();
                    try
                    {
                        str = row["addURL"].ToString();
                    }
                    catch (Exception)
                    {
                        str = "[K8WwBLADgAdABlAGEAbQBdAA==team]";
                    }
                    if (str == "")
                    {
                        str = K8crack.K8expBase64(str, 1);
                    }
                    str13 = DateTime.Now.Date.ToShortDateString();
                    if (str13.Contains("/"))
                    {
                        str13 = str13.Replace("/", "-");
                    }
                    if (!BLLk8EXP.ExistsRecord(new string[] { str3, str6, str7, str8, str9, str10, str11, str12, str }))
                    {
                        num2++;
                        BLLk8EXP.InsertRecord(new string[] { str3, str4, str5, str6, str7, str8, str9, str10, str11, str12, str13, str });
                    }
                }
                this.K8msgbox("导入完成,右键可重新加载EXP!");
                this.Text = text;
            }
        }