]> git.sesse.net Git - freerainbowtables/blobdiff - Client Applications/rcracki_mt/RainbowCrack.cpp
add 2011 (C)
[freerainbowtables] / Client Applications / rcracki_mt / RainbowCrack.cpp
index 812035411f55ffad9875543c12552ed8717f5614..83221fbe83c9eb418510a5e4e2ecb206ef234267 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright Martin Westergaard Jørgensen <martinwj2005@gmail.com>\r
  * Copyright 2009, 2010  Daniël Niggebrugge <niggebrugge@fox-it.com>\r
  * Copyright 2009 James Dickson\r
- * Copyright 2009, 2010 James Nobis <frt@quelrod.net>\r
+ * Copyright 2009, 2010, 2011 James Nobis <frt@quelrod.net>\r
  * Copyright 2010 uroskn\r
  *\r
  * Modified by Martin Westergaard Jørgensen <martinwj2005@gmail.com> to support  * indexed and hybrid tables\r
@@ -720,10 +720,9 @@ int main(int argc, char* argv[])
                        }\r
                }\r
        }\r
-\r
-       // (Over)write session data if we are not resuming\r
-       if (!resumeSession)\r
+       else\r
        {\r
+       // (Over)write session data if we are not resuming\r
                FILE* file = fopen(sSessionPathName.c_str(), "w");\r
                string buffer = "";\r
 \r
@@ -775,9 +774,11 @@ int main(int argc, char* argv[])
        printf("total disk access time:     %.2f s\n", ce.GetStatTotalDiskAccessTime());\r
        printf("total cryptanalysis time:   %.2f s\n", ce.GetStatTotalCryptanalysisTime());\r
        printf("total pre-calculation time: %.2f s\n", ce.GetStatTotalPrecalculationTime());\r
-       printf("total chain walk step:      %d\n",     ce.GetStatTotalChainWalkStep());\r
+//     printf("total chain walk step:      %d\n",     ce.GetStatTotalChainWalkStep());\r
+       printf("total chain walk step:      %llu\n",     ce.GetStatTotalChainWalkStep());\r
        printf("total false alarm:          %d\n",     ce.GetStatTotalFalseAlarm());\r
-       printf("total chain walk step due to false alarm: %d\n", ce.GetStatTotalChainWalkStepDueToFalseAlarm());\r
+//     printf("total chain walk step due to false alarm: %d\n", ce.GetStatTotalChainWalkStepDueToFalseAlarm());\r
+       printf("total chain walk step due to false alarm: %llu\n", ce.GetStatTotalChainWalkStepDueToFalseAlarm());\r
 //     printf("total chain walk step skipped due to checkpoints: %d\n", ce.GetStatTotalFalseAlarmSkipped()); // Checkpoints not used - yet\r
        printf("\n");\r
 \r