Follow up post with source
Copy only the lines that look like that in my last post and save them to a file on your server.checkauth("root","zorro",buff);
checkauth("root","zxcvbnm",buff);
now copy the following and save it as extract.c on your server
/* extract.c by william betts of Gas Chamber Solutions
This is intended for the use of the people on webhostingtalk.com to help them extact the
passwords from the list I provided them. So they can see if they can be compromised via this
new brute force tool.
Compile: gcc -o extract extract.c
Usage:
./extract <name of the file that contains what I posted on webhosting talk> >> pass
I know this isn't the prettiest code and I could do better, but it does it's job. */
#include <stdio.h>
#include <string.h>
#ifndef BUFSIZ
#define BUFSIZ = 2048
#endif
void usage(char *name);
int main(int argc, char *argv[]) {
FILE *passlist;
char *buffer;
char *passbuffer;
buffer = (char *) malloc(BUFSIZ);
passlist = fopen(argv[1],"r");
if(argc != 2) {
usage(argv[0]);
}
while(!feof(passlist)) {
fgets(buffer,BUFSIZ,passlist);
passbuffer = strtok(buffer,",");
passbuffer = strtok(NULL,",");
printf("%s\n",passbuffer);
}
}
Read the comments to know how to compile and use.
Cheers,
William