Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

WarezBot - source


Rekomendowane odpowiedzi

Opublikowano

source bota z tematu: www.mpcforum.pl/topic/1276407-warezbot/

 

 

Form1.cs

 

 

// Decompiled with JetBrains decompiler
// Type: BotWarez.Form1
// Assembly: BotWarez, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 43EBDD17-515E-4245-8466-C9CE4E3443B4

using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using WatiN.Core;
using WatiN.Core.Constraints;

namespace BotWarez
{
  public class Form1 : System.Windows.Forms.Form
  {
    private bool islogged = false;
    private Browser ie = (Browser) null;
    private IContainer components = (IContainer) null;
    private string u;
    private string p;
    private string url;
    private Splitter splitter1;
    private ListBox listBox1;
    private StatusStrip statusStrip1;
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.Label label3;
    private System.Windows.Forms.Label label2;
    private TextBox textBox2;
    private TextBox textBox1;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.Button button2;
    private TextBox textBox3;
    private System.Windows.Forms.Label label4;
    private GroupBox groupBox1;
    private GroupBox groupBox2;
    private GroupBox groupBox3;
    private System.Windows.Forms.Button button3;
    private System.Windows.Forms.Label label5;

    public Form1()
    {
      this.InitializeComponent();
      this.listBox1.SetSelected(0, true);
    }

    private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
    {
      this.label5.Text = this.listBox1.SelectedIndex.ToString();
      if (this.listBox1.SelectedIndex == 0)
      {
        this.u = "login";
        this.p = "haslo";
        this.url = "url wareza";
      }
      this.textBox1.Text = this.u;
      this.textBox2.Text = this.p;
    }

    private void button1_Click(object sender, EventArgs e)
    {
      this.ie = (Browser) new IE(this.url);
      this.ie.TextField((Constraint) Find.ByName("usrname")).TypeText(this.u);
      this.ie.TextField((Constraint) Find.ByName("passwrd")).TypeText(this.p);
      this.ie.Button((Constraint) Find.ByName("login")).Click();
      this.islogged = true;
    }

    protected override void Dispose(bool disposing)
    {
      if (disposing && this.components != null)
        this.components.Dispose();
      base.Dispose(disposing);
    }

    private void InitializeComponent()
    {
      this.splitter1 = new Splitter();
      this.listBox1 = new ListBox();
      this.statusStrip1 = new StatusStrip();
      this.label1 = new System.Windows.Forms.Label();
      this.textBox1 = new TextBox();
      this.textBox2 = new TextBox();
      this.label2 = new System.Windows.Forms.Label();
      this.label3 = new System.Windows.Forms.Label();
      this.button1 = new System.Windows.Forms.Button();
      this.label4 = new System.Windows.Forms.Label();
      this.textBox3 = new TextBox();
      this.button2 = new System.Windows.Forms.Button();
      this.groupBox1 = new GroupBox();
      this.groupBox2 = new GroupBox();
      this.groupBox3 = new GroupBox();
      this.button3 = new System.Windows.Forms.Button();
      this.label5 = new System.Windows.Forms.Label();
      this.groupBox1.SuspendLayout();
      this.groupBox2.SuspendLayout();
      this.groupBox3.SuspendLayout();
      this.SuspendLayout();
      this.splitter1.Location = new Point(0, 0);
      this.splitter1.Name = "splitter1";
      this.splitter1.Size = new Size(167, 309);
      this.splitter1.TabIndex = 0;
      this.splitter1.TabStop = false;
      this.listBox1.Font = new Font("Segoe UI Symbol", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
      this.listBox1.FormattingEnabled = true;
      this.listBox1.ItemHeight = 17;
      this.listBox1.Items.AddRange(new object[18]
      {
        (object) "jakiswarez",
        (object) "dupa",
        (object) "cebula",
        (object) "zebra",
        (object) "clusterfuck",
        (object) "leet",
        (object) "asd",
        (object) "xxXXxx",
        (object) "(>.'')>",
        (object) "asdasdsad",
        (object) "asdasd",    // ocenzurowalem linki do warezow tutaj
        (object) "asdadas",
        (object) "asdadas",
        (object) "asdsad",
        (object) "asdsadas",
        (object) "asdasd",
        (object) "asdasd",
        (object) "ygasdqk"
      });
      this.listBox1.Location = new Point(0, 0);
      this.listBox1.Name = "listBox1";
      this.listBox1.Size = new Size(167, 310);
      this.listBox1.TabIndex = 1;
      this.listBox1.SelectedIndexChanged += new EventHandler(this.listBox1_SelectedIndexChanged);
      this.statusStrip1.Location = new Point(167, 287);
      this.statusStrip1.Name = "statusStrip1";
      this.statusStrip1.Size = new Size(380, 22);
      this.statusStrip1.TabIndex = 2;
      this.statusStrip1.Text = "statusStrip1";
      this.label1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
      this.label1.AutoSize = true;
      this.label1.Location = new Point(130, 16);
      this.label1.Name = "label1";
      this.label1.Size = new Size(85, 13);
      this.label1.TabIndex = 0;
      this.label1.Text = "Enter the Details";
      this.textBox1.Location = new Point(115, 44);
      this.textBox1.Name = "textBox1";
      this.textBox1.Size = new Size(100, 20);
      this.textBox1.TabIndex = 1;
      this.textBox2.Location = new Point(115, 70);
      this.textBox2.Name = "textBox2";
      this.textBox2.Size = new Size(100, 20);
      this.textBox2.TabIndex = 2;
      this.label2.AutoSize = true;
      this.label2.Location = new Point(54, 44);
      this.label2.Name = "label2";
      this.label2.Size = new Size(55, 13);
      this.label2.TabIndex = 3;
      this.label2.Text = "Username";
      this.label3.AutoSize = true;
      this.label3.Location = new Point(56, 73);
      this.label3.Name = "label3";
      this.label3.Size = new Size(53, 13);
      this.label3.TabIndex = 4;
      this.label3.Text = "Password";
      this.button1.Location = new Point(221, 44);
      this.button1.Name = "button1";
      this.button1.Size = new Size(95, 46);
      this.button1.TabIndex = 5;
      this.button1.Text = "Login";
      this.button1.UseVisualStyleBackColor = true;
      this.button1.Click += new EventHandler(this.button1_Click);
      this.label4.AutoSize = true;
      this.label4.Location = new Point(6, 27);
      this.label4.Name = "label4";
      this.label4.Size = new Size(56, 13);
      this.label4.TabIndex = 0;
      this.label4.Text = "Search for";
      this.textBox3.Location = new Point(71, 24);
      this.textBox3.Name = "textBox3";
      this.textBox3.Size = new Size(197, 20);
      this.textBox3.TabIndex = 1;
      this.button2.Location = new Point(275, 22);
      this.button2.Name = "button2";
      this.button2.Size = new Size(75, 23);
      this.button2.TabIndex = 2;
      this.button2.Text = "Search";
      this.button2.UseVisualStyleBackColor = true;
      this.groupBox1.Controls.Add((System.Windows.Forms.Control) this.label1);
      this.groupBox1.Controls.Add((System.Windows.Forms.Control) this.button1);
      this.groupBox1.Controls.Add((System.Windows.Forms.Control) this.textBox1);
      this.groupBox1.Controls.Add((System.Windows.Forms.Control) this.textBox2);
      this.groupBox1.Controls.Add((System.Windows.Forms.Control) this.label3);
      this.groupBox1.Controls.Add((System.Windows.Forms.Control) this.label2);
      this.groupBox1.Location = new Point(179, 13);
      this.groupBox1.Name = "groupBox1";
      this.groupBox1.Size = new Size(356, 100);
      this.groupBox1.TabIndex = 6;
      this.groupBox1.TabStop = false;
      this.groupBox1.Text = "Login";
      this.groupBox2.Controls.Add((System.Windows.Forms.Control) this.label4);
      this.groupBox2.Controls.Add((System.Windows.Forms.Control) this.button2);
      this.groupBox2.Controls.Add((System.Windows.Forms.Control) this.textBox3);
      this.groupBox2.Location = new Point(179, 134);
      this.groupBox2.Name = "groupBox2";
      this.groupBox2.Size = new Size(356, 55);
      this.groupBox2.TabIndex = 7;
      this.groupBox2.TabStop = false;
      this.groupBox2.Text = "Search website";
      this.groupBox3.Controls.Add((System.Windows.Forms.Control) this.button3);
      this.groupBox3.Location = new Point(179, 212);
      this.groupBox3.Name = "groupBox3";
      this.groupBox3.Size = new Size(356, 57);
      this.groupBox3.TabIndex = 8;
      this.groupBox3.TabStop = false;
      this.groupBox3.Text = "Write / Publish";
      this.button3.Location = new Point(115, 19);
      this.button3.Name = "button3";
      this.button3.Size = new Size(111, 23);
      this.button3.TabIndex = 0;
      this.button3.Text = "Write and Publish";
      this.button3.UseVisualStyleBackColor = true;
      this.label5.AutoSize = true;
      this.label5.Location = new Point(347, 120);
      this.label5.Name = "label5";
      this.label5.Size = new Size(35, 13);
      this.label5.TabIndex = 9;
      this.label5.Text = "label5";
      this.AutoScaleDimensions = new SizeF(6f, 13f);
      this.AutoScaleMode = AutoScaleMode.Font;
      this.ClientSize = new Size(547, 309);
      this.Controls.Add((System.Windows.Forms.Control) this.label5);
      this.Controls.Add((System.Windows.Forms.Control) this.groupBox3);
      this.Controls.Add((System.Windows.Forms.Control) this.groupBox2);
      this.Controls.Add((System.Windows.Forms.Control) this.groupBox1);
      this.Controls.Add((System.Windows.Forms.Control) this.statusStrip1);
      this.Controls.Add((System.Windows.Forms.Control) this.listBox1);
      this.Controls.Add((System.Windows.Forms.Control) this.splitter1);
      this.Name = "Form1";
      this.Text = "BotWarez";
      this.groupBox1.ResumeLayout(false);
      this.groupBox1.PerformLayout();
      this.groupBox2.ResumeLayout(false);
      this.groupBox2.PerformLayout();
      this.groupBox3.ResumeLayout(false);
      this.ResumeLayout(false);
      this.PerformLayout();
    }
  }
}

 

 

 

Program.cs

 

 

 

 

 

// Decompiled with JetBrains decompiler
// Type: BotWarez.Program
// Assembly: BotWarez, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 43EBDD17-515E-4245-8466-C9CE4E3443B4

using System;
using System.Windows.Forms;

namespace BotWarez
{
  internal static class Program
  {
    [STAThread]
    private static void Main()
    {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);
      Application.Run((Form) new Form1());
    }
  }
}

 

 

 

tworzymy projekt, pliki najlepiej o takich nazwach, powinno dzialac, aczkolwiek ten kod to calkowity charlie-foxtrot (ch*j dupa i kamieni kupa), nie powinniscie sie na nim wzorowac xD

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...