Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
/* Generates a password list. Every string has 6 chars *
* *************************************************** *
* Define how many chars with STRINGSIZE, *
* Define how many passwords you want to have in the *
* file with HOWMANY. *
* *************************************************** *
* Written by suicide for hackerboard.de, *
* BIG thx 2 typecast, you helped me well ;) *
* *************************************************** */
#include <stdio.h>
#include <stdlib.h>
#define STRINGSIZE 6
#define HOWMANY 1000
char *ranpassgen(int maximum);
int main()
{
char *password;
FILE *target;
int count;
int iamthemax = STRINGSIZE;
target = fopen("./genpass", "a");
srand((unsigned int) time(NULL));
if(target == NULL)
{
printf("Error opening password list!\n");
exit(0);
}
for(count = 1; count <= HOWMANY; count++)
{
password = ranpassgen(iamthemax);
fputs(password, target);
fputs("\n",target);
}
printf("\n Passwordfile created\n");
fclose(target);
return 0;
}
char *ranpassgen(int maximum)
{
int x, randnum;
char letters[52] = {"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" };
char* thepass = (char*)malloc(maximum);
for(x=0; x<maximum ;x++)
{
randnum = (rand()% 51);
thepass[x] = letters[randnum];
}
free(thepass);
return thepass;
}