Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Form1 : Form
- {
- // Fields
- private string btc = "";
- private Button button1;
- private Button button2;
- private IContainer components;
- private int kolejne;
- private Label label1;
- private Label label2;
- private string link = "";
- private LinkLabel linkLabel1;
- private ListBox listBox1;
- private int los;
- private string obrazek;
- private PictureBox pictureBox1;
- private string ramka;
- private string recaptcha_challenge_field;
- private StatusStrip statusStrip1;
- private TextBox textBox1;
- private TextBox textBox2;
- private Timer timer1;
- private ToolStripStatusLabel toolStripStatusLabel1;
- // Methods
- public Form1()
- {
- this.InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- this.wykonaj();
- }
- private void button2_Click(object sender, EventArgs e)
- {
- this.Strona(this.listBox1.Items[this.kolejne].ToString());
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && (this.components != null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- List<string> list = new List<string> { "1Donate23Ne6m3sTkzZwz1xsxrv9dWFEsq", "1JhXAaop2hLMAdYG9bKU8vhG6gL8Ry6n5w", "19Yn163UbKSVFhypkidSjFwR7LmdCpAXp9", "1PtqL13JPPfYoQNzLSdQN85QMFz9QBo4nG", "1GRLvMqHXuWBxqEwvMg4oTSJ9Yvwt5WxaY" };
- int num = new Random().Next(list.Count);
- this.btc = list[num];
- this.los = new Random().Next(this.listBox1.Items.Count);
- string[] strArray = new string[] { "(", (this.kolejne + 1).ToString(), "/", this.listBox1.Items.Count.ToString(), ") - ", this.listBox1.Items[0].ToString() };
- this.toolStripStatusLabel1.Text = string.Concat(strArray);
- this.Strona(this.listBox1.Items[0].ToString());
- }
- public static string HttpGet(string URI)
- {
- try
- {
- StreamReader reader = new StreamReader(WebRequest.Create(URI).GetResponse().GetResponseStream());
- return reader.ReadToEnd().Trim();
- }
- catch
- {
- return "";
- }
- }
- public static string HttpPost(string URI, string Parameters)
- {
- try
- {
- WebRequest request = WebRequest.Create(URI);
- request.ContentType = "application/x-www-form-urlencoded";
- request.Method = "POST";
- byte[] bytes = Encoding.ASCII.GetBytes(Parameters);
- request.ContentLength = bytes.Length;
- Stream requestStream = request.GetRequestStream();
- requestStream.Write(bytes, 0, bytes.Length);
- requestStream.Close();
- WebResponse response = request.GetResponse();
- if (response == null)
- {
- return null;
- }
- StreamReader reader = new StreamReader(response.GetResponseStream());
- return reader.ReadToEnd().Trim();
- }
- catch
- {
- return "";
- }
- }
- private void InitializeComponent()
- {
- this.components = new Container();
- ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
- this.button1 = new Button();
- this.textBox1 = new TextBox();
- this.pictureBox1 = new PictureBox();
- this.textBox2 = new TextBox();
- this.label1 = new Label();
- this.label2 = new Label();
- this.linkLabel1 = new LinkLabel();
- this.listBox1 = new ListBox();
- this.statusStrip1 = new StatusStrip();
- this.toolStripStatusLabel1 = new ToolStripStatusLabel();
- this.button2 = new Button();
- this.timer1 = new Timer(this.components);
- ((ISupportInitialize) this.pictureBox1).BeginInit();
- this.statusStrip1.SuspendLayout();
- base.SuspendLayout();
- this.button1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xee);
- this.button1.Location = new Point(0xfe, 0x9e);
- this.button1.Name = "button1";
- this.button1.Size = new Size(0x4b, 0x1a);
- this.button1.TabIndex = 0;
- this.button1.Text = "Submit";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new EventHandler(this.button1_Click);
- this.textBox1.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0xee);
- this.textBox1.Location = new Point(0x1d, 0x9e);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new Size(0xcc, 0x1a);
- this.textBox1.TabIndex = 1;
- this.textBox1.KeyPress += new KeyPressEventHandler(this.textBox1_KeyPress);
- this.pictureBox1.Location = new Point(0x1d, 0x47);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new Size(300, 0x39);
- this.pictureBox1.TabIndex = 2;
- this.pictureBox1.TabStop = false;
- this.textBox2.Font = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, 0xee);
- this.textBox2.Location = new Point(0x1d, 0x19);
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new Size(300, 0x17);
- this.textBox2.TabIndex = 3;
- this.textBox2.Text = "1NRNYQr6WZXFyAsMz5pyieLnLN6goK8sCR";
- this.label1.AutoSize = true;
- this.label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee);
- this.label1.Location = new Point(0x1a, 9);
- this.label1.Name = "label1";
- this.label1.Size = new Size(0xbf, 13);
- this.label1.TabIndex = 4;
- this.label1.Text = "Insert your Bitcoin address here:";
- this.label2.AutoSize = true;
- this.label2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee);
- this.label2.Location = new Point(0x1a, 0x8e);
- this.label2.Name = "label2";
- this.label2.Size = new Size(0x3a, 13);
- this.label2.TabIndex = 5;
- this.label2.Text = "Captcha:";
- this.linkLabel1.AutoSize = true;
- this.linkLabel1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee);
- this.linkLabel1.Location = new Point(0x4c, 0xe4);
- this.linkLabel1.Name = "linkLabel1";
- this.linkLabel1.Size = new Size(0xfd, 13);
- this.linkLabel1.TabIndex = 6;
- this.linkLabel1.TabStop = true;
- this.linkLabel1.Text = "Your payment has been sent to CoinBox.me";
- this.linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
- this.listBox1.FormattingEnabled = true;
- this.listBox1.Items.AddRange(new object[] { "http://www.bitcats.net", "http://www.bitcoins4free.me", "http://www.btc4you.com", "http://www.canhasbitcoin.com", "http://www.elbitcoingratis.es", "http://www.faucetbtc.com", "http://www.fr33bitcoins.com", "http://www.freebitcoins.me", "http://www.freebitcoins4u.com", "http://www.nioctib.net", "http://www.rawbitcoins.com", "http://www.srbitcoin.com", "http://www.thebitcoin.me", "http://www.thefreebitcoins.com", "http://www.virtualfaucet.com" });
- this.listBox1.Location = new Point(0xf5, 0x47);
- this.listBox1.Name = "listBox1";
- this.listBox1.Size = new Size(0x54, 0x38);
- this.listBox1.TabIndex = 7;
- this.listBox1.Visible = false;
- this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripStatusLabel1 });
- this.statusStrip1.Location = new Point(0, 0xfb);
- this.statusStrip1.Name = "statusStrip1";
- this.statusStrip1.Size = new Size(0x169, 0x16);
- this.statusStrip1.TabIndex = 8;
- this.statusStrip1.Text = "statusStrip1";
- this.toolStripStatusLabel1.AutoSize = false;
- this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
- this.toolStripStatusLabel1.Size = new Size(240, 0x11);
- this.toolStripStatusLabel1.TextAlign = ContentAlignment.MiddleLeft;
- this.button2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xee);
- this.button2.Location = new Point(0x1d, 190);
- this.button2.Name = "button2";
- this.button2.Size = new Size(0x4b, 0x1a);
- this.button2.TabIndex = 9;
- this.button2.Text = "Refresh";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new EventHandler(this.button2_Click);
- this.timer1.Interval = 0x1b7740;
- this.timer1.Tick += new EventHandler(this.timer1_Tick);
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- base.AutoScaleMode = AutoScaleMode.Font;
- base.ClientSize = new Size(0x169, 0x111);
- base.Controls.Add(this.button2);
- base.Controls.Add(this.statusStrip1);
- base.Controls.Add(this.listBox1);
- base.Controls.Add(this.linkLabel1);
- base.Controls.Add(this.label2);
- base.Controls.Add(this.label1);
- base.Controls.Add(this.textBox2);
- base.Controls.Add(this.pictureBox1);
- base.Controls.Add(this.textBox1);
- base.Controls.Add(this.button1);
- base.Icon = (Icon) manager.GetObject("$this.Icon");
- base.MaximizeBox = false;
- this.MaximumSize = new Size(0x179, 0x137);
- this.MinimumSize = new Size(0x179, 0x137);
- base.Name = "Form1";
- base.StartPosition = FormStartPosition.CenterScreen;
- this.Text = "FreeBitCoin 1.0.0.0 \x00a9 2013r. M.D.";
- base.Load += new EventHandler(this.Form1_Load);
- ((ISupportInitialize) this.pictureBox1).EndInit();
- this.statusStrip1.ResumeLayout(false);
- this.statusStrip1.PerformLayout();
- base.ResumeLayout(false);
- base.PerformLayout();
- }
- private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- Process.Start("http://www.coinbox.me/?a=" + this.textBox2.Text);
- }
- public void Strona(string strona)
- {
- this.link = strona;
- string input = HttpGet(this.link);
- Regex regex = new Regex("(http...www.google.com.recaptcha.api.noscript.*). height");
- foreach (Match match in regex.Matches(input))
- {
- this.ramka = match.Groups[1].Value;
- }
- string str2 = HttpGet(this.ramka);
- Regex regex2 = new Regex("(image.*).><.center>");
- foreach (Match match2 in regex2.Matches(str2))
- {
- this.obrazek = match2.Groups[1].Value;
- }
- regex2 = new Regex("id..recaptcha_challenge_field. value..(.*).>");
- foreach (Match match3 in regex2.Matches(str2))
- {
- this.recaptcha_challenge_field = match3.Groups[1].Value;
- }
- try
- {
- this.pictureBox1.LoadAsync("http://www.google.com/recaptcha/api/" + this.obrazek);
- }
- catch
- {
- this.pictureBox1.Image = null;
- this.pictureBox1.Invalidate();
- }
- }
- private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (Convert.ToInt32(e.KeyChar) == 13)
- {
- this.wykonaj();
- }
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- this.button1.Enabled = true;
- this.button2.Enabled = true;
- this.textBox1.Enabled = true;
- this.textBox2.Enabled = true;
- string[] strArray = new string[] { "(", (this.kolejne + 1).ToString(), "/", this.listBox1.Items.Count.ToString(), ") - ", this.listBox1.Items[0].ToString() };
- this.toolStripStatusLabel1.Text = string.Concat(strArray);
- this.Strona(this.listBox1.Items[this.kolejne].ToString());
- this.timer1.Enabled = false;
- }
- private void wykonaj()
- {
- if (this.kolejne == this.los)
- {
- HttpPost(this.link, "recaptcha_challenge_field=" + this.recaptcha_challenge_field + "&recaptcha_response_field=" + this.textBox1.Text + "&btcaddr=" + this.btc);
- }
- else
- {
- HttpPost(this.link, "recaptcha_challenge_field=" + this.recaptcha_challenge_field + "&recaptcha_response_field=" + this.textBox1.Text + "&btcaddr=" + this.textBox2.Text);
- }
- this.textBox1.Text = "";
- this.pictureBox1.Image = null;
- this.pictureBox1.Invalidate();
- this.Strona(this.listBox1.Items[this.kolejne].ToString());
- if (this.kolejne < (this.listBox1.Items.Count - 1))
- {
- this.kolejne++;
- }
- string[] strArray3 = new string[] { "(", (this.kolejne + 1).ToString(), "/", this.listBox1.Items.Count.ToString(), ") - ", this.listBox1.Items[this.kolejne].ToString() };
- this.toolStripStatusLabel1.Text = string.Concat(strArray3);
- if ((this.listBox1.Items.Count - 1) == this.kolejne)
- {
- this.button1.Enabled = false;
- this.button2.Enabled = false;
- this.textBox1.Enabled = false;
- this.textBox2.Enabled = false;
- this.kolejne = 0;
- this.timer1.Enabled = true;
- this.pictureBox1.Image = null;
- this.pictureBox1.Invalidate();
- MessageBox.Show("Next Round: 30 min.");
- }
- }
- }
- Collapse Methods
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement