Usage & options

This commit is contained in:
e-ago 2017-08-04 13:52:35 -07:00
parent 14cc8cb22d
commit 8658cb73ca
3 changed files with 15 additions and 15 deletions

View File

@ -36,11 +36,11 @@ void usage(char *name){
"\t\tPath to your disk image\n"
" -d, --dictionary file"
"\t\tPath to dictionary or alphabet file\n"
" -g, --cuda.gpu"
" -g, --gpu"
"\t\tGPU device number\n"
" -t, --cuda.passthread"
" -t, --passthread"
"\t\tSet the number of password per thread threads\n"
" -b, --cuda.blocks"
" -b, --blocks"
"\t\tSet the number of blocks\n\n", name);
}
@ -124,13 +124,13 @@ int main (int argc, char **argv)
{"dictionary", required_argument, 0, 'd'},
//{"info", required_argument, 0, 'o'},
//{"cuda.threads", required_argument, 0, 't'},
{"cuda.passthread", required_argument, 0, 't'},
{"cuda.blocks", required_argument, 0, 'k'},
{"cuda.gpu", required_argument, 0, 'g'},
{"passthread", required_argument, 0, 't'},
{"blocks", required_argument, 0, 'b'},
{"gpu", required_argument, 0, 'g'},
{0, 0, 0, 0}
};
opt = getopt_long (argc, argv, "hi:d:t:k:g:o:", long_options, &option_index);
opt = getopt_long (argc, argv, "hi:d:t:b:g:", long_options, &option_index);
if (opt == -1)
break;
switch (opt) {
@ -162,7 +162,7 @@ int main (int argc, char **argv)
exit(EXIT_FAILURE);
}
break;
case 'k':
case 'b':
gridBlocks = atoi(optarg);
break;
case 'g':

View File

@ -31,12 +31,12 @@ Usage: ./bitcracker_cuda -i <disk_image> -d <dictionary_file>
Options:
-h, --help Show this help
-i, --diskimage Path to your disk image
-h, --help Show this help
-i, --diskimage Path to your disk image
-d, --dictionary file Path to dictionary or alphabet file
-g, --cuda.gpu GPU device number
-t, --cuda.passthread Set the number of password per thread threads
-b, --cuda.blocks Set the number of blocks
-g, --gpu GPU device number
-t, --passthread Set the number of password per thread threads
-b, --blocks Set the number of blocks
```
You can use the run.sh script to execute two simple runs using the encrypted images we provide in this repo:

4
run.sh
View File

@ -2,7 +2,7 @@
./CUDA_version/bitcracker_cuda -h
./CUDA_version/bitcracker_cuda -i ./Images/imgWin8 -d ./Dictionary/dummy.txt -t 1 -k 1 -g 0
./CUDA_version/bitcracker_cuda -i ./Images/imgWin8 -d ./Dictionary/dummy.txt -t 1 -b 1 -g 0
./CUDA_version/bitcracker_cuda -i ./Images/imgWin7 -d ./Dictionary/dummy.txt -t 1 -k 1 -g 0
./CUDA_version/bitcracker_cuda -i ./Images/imgWin7 -d ./Dictionary/dummy.txt -t 1 -b 1 -g 0