예제 #1
0
        public bool yasaklilistekontrol(string programadi)
        {
            bool       sonuc            = false;
            HTTPWorker work             = new HTTPWorker();
            string     sitedekikurallar = work.navTo("http://www.decompile.us/Cwt-Yasakl%C4%B1-Program-Listesi");
            Match      eslesme          = Regex.Match(sitedekikurallar, "id=\"pid_20104\">(.*?)</div>", RegexOptions.Singleline);

            if (eslesme.Success)
            {
                string kurallistesi = Regex.Replace(eslesme.Groups[1].Value.Replace(@"<br />", Environment.NewLine).Trim(), @"<(.|\n).*?>", String.Empty);
                kurallistesi = kurallistesi.Replace("-", String.Empty).Trim();
                kurallistesi = kurallistesi.Replace("Sayın Üyelerimiz:\r\n\n\r\n\n\r\n\nSitede istenmesi ve paylaşılması yasaklı olan program listesi aşağıda sunulmuştur.\r\n\n\r\n\n", String.Empty).Trim();
                kurallistesi = kurallistesi.Replace("Programcılar için;\r\n\n\r\n\n\r\n\nKodladığınız program hakkında sitemizde herhangi bir çalışma mevcut ise bunu yönetime PM ile bildiriniz.", String.Empty).Trim();
                string[] programlar = kurallistesi.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                foreach (string program in programlar)
                {
                    if (Regex.IsMatch(program, programadi, RegexOptions.IgnoreCase))
                    {
                        sonuc = true;
                        break;
                    }
                }
            }
            return(sonuc);
        }
예제 #2
0
 private void girişyap_Click(object sender, EventArgs e)
 {
     if (this.username.Text.Equals("") && this.password.Text.Equals(""))
     {
         bilgiekrani("Lütfen kullanıcı adı ve şifre girin !");
     }
     else
     {
         this.altbilgi.Text = "Giriş yapılıyor lütfen bekleyin...";
         if (this.hatirla.Checked)
         {
             Ayarlar.Default.kullanıcı = this.username.Text;
             Ayarlar.Default.şifre     = this.password.Text;
             Ayarlar.Default.Save();
         }
         HTTPWorker httpworker = new HTTPWorker();
         myBB       mybbforum  = new myBB("http://www.decompile.us/", ToAscii(this.username.Text), this.password.Text);
         if (httpworker.login(mybbforum))
         {
             bilgiekrani("Giriş yapıldı... Hoşgeldin " + this.username.Text + " :)");
             this.girişyap.Enabled  = false;
             this.username.Enabled  = false;
             this.password.Enabled  = false;
             this.hatirla.Enabled   = false;
             this.groupBox2.Enabled = true;
             this.altbilgi.Text     = "İşleminize devam edebilirsiniz.";
         }
         else
         {
             bilgiekrani("Hatalı bilgiler girdiniz !");
         }
     }
     this.altbilgi.Text = "İşlem bekleniyor.";
 }
예제 #3
0
        private void yayınlaarkaplan_DoWork(object sender, DoWorkEventArgs e)
        {
            string[] hashlerim = new string[2];

            HTTPWorker httpwork = new HTTPWorker();
            string     giris    = httpwork.navTo("http://www.decompile.us/newthread.php?fid=7");

            if (giris.Contains("my_post_key") && giris.Contains("posthash"))
            {
                hashlerim[0] = this.ManuelRegex("name=\"my_post_key\" value=\"(.*?)\"", giris, 1);
                hashlerim[1] = this.ManuelRegex("name=\"posthash\" value=\"(.*?)\"", giris, 1);

                NameValueCollection nameValueCollection = new NameValueCollection();
                nameValueCollection.Add("my_post_key", hashlerim[0]);
                nameValueCollection.Add("posthash", hashlerim[1]);
                nameValueCollection.Add("message_new", this.taslak);
                nameValueCollection.Add("message", this.taslak);
                nameValueCollection.Add("numpolloptions", "2");
                nameValueCollection.Add("subject", this.htmltemizle(this.programadi.Text));
                nameValueCollection.Add("action", "do_newthread");
                nameValueCollection.Add("attachmentaid", "");
                nameValueCollection.Add("attachmentact", "");
                nameValueCollection.Add("quoted_ids", "");
                nameValueCollection.Add("tid", "");

                StringBuilder builder = new StringBuilder();
                string        str2    = string.Empty;

                foreach (string str3 in nameValueCollection.AllKeys)
                {
                    builder.Append(str2);
                    builder.Append(System.Web.HttpUtility.UrlEncode(str3));
                    builder.Append("=");
                    builder.Append(System.Web.HttpUtility.UrlEncode(nameValueCollection[str3]));
                    str2 = "&";
                }

                string @string = httpwork.PostTo("http://www.decompile.us/newthread.php?fid=7", builder.ToString());
                if (@string.Contains("Teşekkürler, konunuz başarılı olarak gönderildi."))
                {
                    bilgiekrani(Environment.NewLine + "Konunuz başarılı bir şekilde gönderildi.");
                    if (MessageBox.Show("Konuya gitmek istiyor musunuz?", "Konu", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                    {
                        string str = this.ManuelRegex("<meta http-equiv=\"refresh\" content=\"2;URL=(.*?)\" />", @string, 1);
                        Process.Start("http://www.recodegroup.org/forum/" + str);
                    }
                }
                else
                {
                }
            }
            else
            {
                bilgiekrani(Environment.NewLine + "Konu göndermede hata oldu. Lütfen iletişime geçin !");
            }
        }
예제 #4
0
        private void Kurallar_Load(object sender, EventArgs e)
        {
            HTTPWorker work             = new HTTPWorker();
            string     sitedekikurallar = work.navTo("http://www.decompile.us/Cwt-Yasakl%C4%B1-Program-Listesi");

            Match eslesme = Regex.Match(sitedekikurallar, "id=\"pid_20104\">(.*?)</div>", RegexOptions.Singleline);

            if (eslesme.Success)
            {
                this.textBox1.Text = Regex.Replace(eslesme.Groups[1].Value.Replace(@"<br />", Environment.NewLine).Trim(), @"<(.|\n).*?>", String.Empty);
            }
            else
            {
                if (MessageBox.Show("Kuralları çekemedik. Siteden bakmak ister misiniz?" + Environment.NewLine + "Kuralları kabul etmiyorsanız programı kapatın ! Bu adımdan sonra kabul etmiş sayılırsınız !", "Uyarı !", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                {
                    System.Diagnostics.Process.Start("http://www.decompile.us/Cwt-Yasakl%C4%B1-Program-Listesi");
                }
                else
                {
                    MessageBox.Show("Kuralları kabul etmiş sayıldınız !", "Uyarı !", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }