Rozdiely pre libplaton/utils/md5scan/md5scan.c medzi verziami 1.2 a 1.3
| verzia 1.2, 2007/07/16 22:19:32 |
verzia 1.3, 2007/07/16 22:25:54 |
| Riadok 66 int main(int argc, char **argv) /* {{{ * |
|
| Riadok 66 int main(int argc, char **argv) /* {{{ * |
|
| |
|
| for (i = 2; i < argc; i++) { |
for (i = 2; i < argc; i++) { |
| |
|
| |
printf("[%02d/%02d] Processing word list '%s'...\n", i, argc - 1, argv[i]); |
| |
|
| if ((f = fopen(argv[i], "r")) == NULL) { |
if ((f = fopen(argv[i], "r")) == NULL) { |
| printf("Cannot open word list file '%s'. File skipped.\n", argv[i]); |
printf("Cannot open word list file '%s'. File skipped.\n", argv[i]); |
| continue; |
continue; |
| } |
} |
| |
|
| printf("[%02d/%02d] Processing word list '%s'...\n", i, argc - 1, argv[i]); |
|
| fflush(stdout); |
|
| |
|
| for (cnt = 0; fgets(buf, 20, f) != NULL; ) { |
for (cnt = 0; fgets(buf, 20, f) != NULL; ) { |
| for (pw_len = strlen(buf) - 1; |
for (pw_len = strlen(buf) - 1; |
| pw_len >= 0 && isspace(buf[pw_len]); pw_len--) { |
pw_len >= 0 && isspace(buf[pw_len]); pw_len--) { |
Platon Group <platon@platon.sk> http://platon.sk/
|
|