POMOĆ!
Trebam nekog tko bi mi mogao ovaj kod stavit u C++ ili kamo, i predtvorit u program.
Ja neam pojma s tim tako da trebam vašu pomoć.
#include
#include
#include
/*
Generator
Author: Don Bianco.
Site: --.
Description: Creates user defined wordlist.
Disclaimer: I am not responsible for any damages this program my create.
I am not responsible for how you use this program.
*/
using namespace std;
int main(void)
{
int timesPrint;
int pwLen;
/* Seed the RG. */
srand(time(NULL));
/* Characters to be randomized. */
char randPw[256] = { 0 };
/* Location of file, app flag to append to end of file, so files
are not overwritten on multiple goes. */
ofstream putout0 ("C:\\DEFINE\\PATH\\WORDLISTFTW.txt", ios::app);
cout << "Welcome to K1u's wordlist generator"
<< "\n\n"
<< "Please enter lines of passwords you would like.\n";
cin >> timesPrint;
cout << "\nWhat would you like randomized?\n"
<< "Example: 1234567890\n";
cin >> randPw;
cout << "\nHow long would you like each password to be?\n";
cin >> pwLen;
/* Program will crash if string length not shown to RG. */
char pwRand = strlen(randPw);
for(int i = 0; i < timesPrint; i++)
{
for(int i = 0; i < pwLen; i++)
{
putout0 << (randPw[rand() % pwRand]);
}
putout0 << "\n";
}
system("PAUSE");
return 0;
}
to se inace compile-a...xD
edit cu kad cu ti uplaodat... :D
kak mislis stavit u C++? ovo je C sintaksa i to je samo neko parce koda, za cega ce ti? sta bi to trebalo raditi?
http://www.bloodshed.net/devcpp.html
to ti je link po meni najboljeg kompajlera za C/C++
Citat: Dude poslato Jun 30, 2011, 21:34:01 POSLE PODNE
kak mislis stavit u C++? ovo je C sintaksa i to je samo neko parce koda, za cega ce ti? sta bi to trebalo raditi?
http://www.bloodshed.net/devcpp.html
to ti je link po meni najboljeg kompajlera za C/C++
taj ja koristim...
ali evo da kazem ovom, ima errora...
normalno da ima errora
#include
#include
#include
ovo je nista... trebalo bi nekakve library-e includat...