Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Security.Policy;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WindowsFormsApp1
- {
- public partial class Form1 : Form
- {
- private Uri geturl;
- private string str;
- public string Url { get; private set; }
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- if (openFileDialog1.ShowDialog() == DialogResult.OK);
- {
- StreamReader streamreader = new StreamReader(openFileDialog1.FileName);
- listBox1.Items.Clear();
- while (!streamreader.EndOfStream)
- {
- listBox1.Items.Add(streamreader.ReadLine());
- }
- label1.Text = "Акаунтов:" + listBox1.Items.Count;
- }
- }
- string GetLine(string fileName, int line)
- {
- using (var sr = new StreamReader(fileName))
- {
- for (int i = 1; i < line; i++)
- sr.ReadLine();
- return sr.ReadLine();
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
- for (int i = 0; i < listBox1.Items.Count; i++) {
- String data = listBox1.Items[i].ToString();
- String[] mass = data.Split(';');
- String user = mass[0];
- String pass = mass[1];
- webBrowser1.ScriptErrorsSuppressed = true;
- webBrowser1.Url = new Uri("https://steamcommunity.com/login/home/?goto=");
- }
- }
- private void button4_Click(object sender, EventArgs e)
- {
- webBrowser1.Document.GetElementById("steamAccountName").InnerText = "HYISOS";
- webBrowser1.Document.GetElementById("steamPassword").InnerText = "HYISOS";
- System.Threading.Thread.Sleep(1000);
- foreach (HtmlElement el in webBrowser1.Document.GetElementsByTagName("input"))
- {
- if (el.GetAttribute("value") == "Войти")
- {
- el.InvokeMember("Click");
- }
- }
- System.Threading.Thread.Sleep(1000);
- webBrowser1.Url = new Uri("https://csgokingdom.com/cases");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement