Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 3 Aug 2007 17:55:48 +0100
From: "Larry Bonner" <>
Subject: Re: incremental mode, estimation of computing time

you mean something like code attached?
where it tells you how many c/s and time left?
that would be cool to have in jtr, i agree, if thats what you mean of course!

    calcperm <minlen> <maxlen> <c/s> <charset length>
    calcperm 1 7 1000000 26

    Total permutations = 8353082582

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

void main(int argc, char *argv[])
	int minLen,maxLen,charlen,i;
	int keysPs;
	double totalKeys=0.0;
	int days,hours,minutes,seconds;

	if(--argc == 4)
		minLen  = atoi(argv[1]);
		maxLen  = atoi(argv[2]);
		keysPs  = atoi(argv[3]);
		charlen = atoi(argv[4]);

			totalKeys += pow((double)charlen,(double)i);

		printf("\nTotal permutations = %0.f",totalKeys);

		seconds = totalKeys/keysPs;
		minutes = seconds/60;
		hours = minutes/60;
		days = hours/24;

To unsubscribe, e-mail and reply
to the automated confirmation request that will be sent to you.

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ