[SC] Basic Brute-Force Tool [WIP/S4T]

01/19/2015 11:21 aiimsh0ckz#1
[Falls es nicht in die Nos-HBCE-Release-Abteilung passt, einfach passend verschieben :)]

Moinsen.

Vorhin in C++ 'n kleines "Brute-Force-Tool" geschrieben.
Momentan ist es noch kein wirkliches Brute-Force-Tool,
da es nur alle möglichen Zahlenkombis von 0000000000 bis 9999999999 abklappert und in eine .TXT abspeichert.
Wie kann ich die Ausgaben auf andere Progs umleiten? Jemand mehr Erfahrung damit?

Aber vielleicht findet ja einer Verwendung für den kleinen Code-Batzen ^^

Code:
/*
 * Coder:					aiimsh0ckz
 * IDE:					Microsoft Visual Studio 2013 Update 4
 * Programming Language:	        C++
 * Date:					2015-01-19
 * Programm Name:			[DEDSEC] aiimsh0ckz' Basic Brute-Force Tool
 * Filename:				[DEDSEC] aiimsh0ckz' xI3RVT3F0RC3x.cpp
 * Version:					0.2 alpha
 * Comment:				Little Bugfix.
 */

#include <iostream>
#include <fstream>

int main(void)
{
	std::cout << "+------------------------------------+" << std::endl;
	std::cout << "| aiimsh0ckz' Basic Brute-Force-Tool |" << std::endl;
	std::cout << "+------------------------------------+" << std::endl;
	std::cout << "| List of possible passwords between |" << std::endl;
	std::cout << "| 0000000000 and 9999999999 will be  |" << std::endl;
	std::cout << "| listed in a .txt-file              |" << std::endl;
	std::cout << "+------------------------------------+" << std::endl << std::endl;

	std::cout << "Press ENTER to start the tool ..." << std::endl;
	getchar();

	std::ofstream outfile;

	outfile.open("[DEDSEC] aiimsh0ckz' xI3RVT3F0RC3x.txt");

	unsigned int zero = 0, one = 0, two = 0, three = 0, four = 0, five = 0, six = 0, seven = 0, eight = 0, nine = 0;
	bool check = false;
	
	std::cout << std::endl; // random Newline

	do {
		if (zero == 1 && one == two == three == four == five == six == seven == eight == nine == 0) {
			std::cout << "10% completed ..." << std::endl;
		} 
		if (zero == 2 && one == two == three == four == five == six == seven == eight == nine == 0) {
			std::cout << "20% completed ..." << std::endl;
		}
		if (zero == 3 && one == two == three == four == five == six == seven == eight == nine == 0) {
			std::cout << "30% completed ..." << std::endl;
		}
		if (zero == 4 && one == two == three == four == five == six == seven == eight == nine == 0) {
			std::cout << "40% completed ..." << std::endl;
		}
		if (zero == 5 && one == two == three == four == five == six == seven == eight == nine == 0) {
			std::cout << "50% completed ..." << std::endl;
		}
		if (zero == 6 && one == two == three == four == five == six == seven == eight == nine == 0) {
			std::cout << "60% completed ..." << std::endl;
		}
		if (zero == 7 && one == two == three == four == five == six == seven == eight == nine == 0) {
			std::cout << "70% completed ..." << std::endl;
		}
		if (zero == 8 && one == two == three == four == five == six == seven == eight == nine == 0) {
			std::cout << "80% completed ..." << std::endl;
		}
		if (zero == 9 && one == two == three == four == five == six == seven == eight == nine == 0) {
			std::cout << "90% completed ..." << std::endl;
		}

		outfile << zero << one << two << three << four << five << six << seven << eight << nine << "\n";

		++nine; // This. xD

		/* What the fuck I was doing b4 ?? XD */

		if (nine > 9) {
			++eight;
			nine = 0;
		}

		if (eight > 9) {
			++seven;
			eight = 0;
		}

		if (seven > 9) {
			++six;
			seven = 0;
		}

		if (six > 9) {
			++five;
			six = 0;
		}

		if (five > 9) {
			++four;
			five = 0;
		}

		if (four > 9) {
			++three;
			four = 0;
		}

		if (three > 9) {
			++two;
			three = 0;
		}

		if (two > 9) {
			++one;
			two = 0;
		}

		if (one > 9) {
			++zero;
			one = 0;
		}

		if (zero == 9 && one == 9 && two == 9 && three == 9 && four == 9 && five == 9 && six == 9 && seven == 9 && eight == 9 && nine == 9) {
			std::cout << "100% completed ..." << std::endl;
			check = true;
			/* Number is 9999999999 -> Jump out of the Loop */
		}

	} while (check == false);

	outfile.close();

	outfile.clear();

	return(0);
}

Download ist im Anhang. 21 kBit, da passt also nichtmal ein Keylogger rein.
Anyway - VT-Link v0.2:
[Only registered and activated users can see links. Click Here To Register...]

PASSWORT FÜR DIE .RAR: aiimsh0ckz_2k15

Greez, aiim.
01/19/2015 12:59 *-OMG-*#2
This thread should be moved to section C/C++. It has nothing to do with Nostale. However, an useless piece of code.
01/20/2015 07:32 aiimsh0ckz#3
[Only registered and activated users can see links. Click Here To Register...]

Kleiner Bugfix. (Variablen nicht zurückgesetzt, nachdem sie höher als 9 waren)
-> Code wurde oben erneuert.
-> Neuer DL wurde angefügt

Quote:
Originally Posted by *-OMG-*
This thread should be moved to section C/C++. It has nothing to do with Nostale. However, an useless piece of code.
Sorry, that I wrote my tread in german ;) The first line says, that if my thread is in the wrong section, they should move it.

.. and you say "useless piece of code"? It's still WiP. Look @ my other Tools, or show me, that you can do it better. :P
01/20/2015 09:42 teilch3n#4
Was soll das Ganze bezwecken?
01/20/2015 12:28 aiimsh0ckz#5
Wie gesagt, immer noch WiP und noch im Ausbau. ^^
01/20/2015 14:16 *-OMG-*#6
Quote:
Originally Posted by aiimsh0ckz View Post
[Only registered and activated users can see links. Click Here To Register...]

Kleiner Bugfix. (Variablen nicht zurückgesetzt, nachdem sie höher als 9 waren)
-> Code wurde oben erneuert.
-> Neuer DL wurde angefügt



Sorry, that I wrote my tread in german ;) The first line says, that if my thread is in the wrong section, they should move it.

.. and you say "useless piece of code"? It's still WiP. Look @ my other Tools, or show me, that you can do it better. :P
I have to show you nothing, i'm here to comment your thread and not mine. However, as i already told you, this is an useless piece of code. Isn't better to write a function like that ?

a
b
c..

aa
ab
ac..

ba
bb
bc..

Keeping in mind also the numbers. This is what i did and what i think is useful.
01/20/2015 15:48 Mr.Tr33#7
Auch wenn ich kein C++ kann, sieht es für meine Augen ziemlich unübersichtlich aus.
Was es bezwecken soll, weiß ich ebenfalls nicht.
Dazu ist diese Methode extrem langsam und wird vermutlich niemand benötigen.