Dies ist eine simple Windows Forms Bruteforce sie behandelt große & kleine Buchstaben sowie Punkt Komma und underscore! An alle Script Kiddies nicht für böse zwecke zu gebrauchen.....
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Bruteforce
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
button1.Visible = false;
button2.Visible = true;
hauptteil();
}
private void button2_Click(object sender, EventArgs e)
{
button2.Visible = false;
button1.Visible = true;
}
private void alter_hauptteil()
{
char[] zeichen = new char[55];
zeichen = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.,_".ToCharArray();
int counter = 0;
//label1.Text = zeichen[counter].ToString();
while (button2.Visible)
{
if (counter >= 55)
{
counter = 0;
}
label1.Text = zeichen[counter].ToString();
counter++;
Application.DoEvents();
}
}
private void hauptteil()
{
for (int stellen = 1; button2.Visible; stellen++)
{
char[] passwort = new char[stellen];
int counter = 0;
for (int tmp = 0; tmp < stellen; tmp++)
{
passwort[tmp] = (char)33;
}
while (true)
{
erneut:
/*
* Platz für Anweisungen
*/
MessageBox.Show(textBox1.Text);
if ((int)passwort[counter] < 126)
{
passwort[counter] = (char)(((int)passwort[counter]) + 1);
}
else
{
passwort[counter] = (char)33;
counter++;
try
{
passwort[counter] = (char)(((int)passwort[counter]) + 1);
if ((int)passwort[counter] > 125)
{
goto erneut;
}
counter = 0;
}
catch
{
break;
}
}
textBox1.Text = "";
for (int tmp = 0; tmp < stellen; tmp++)
{
textBox1.Text = textBox1.Text + passwort[tmp].ToString();
}
Application.DoEvents();
if (button1.Visible)
{
return;
}
}
}
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
button2.Visible = false;
button1.Visible = true;
}
}//****ENDE KLASSE****
}//****ENDE NAMESPACE****
Kommentare zum Snippet