Skip to content

Commit 5981965

Browse files
committed
hydra v8.5 release
1 parent d754411 commit 5981965

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

CHANGES

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
Changelog for hydra
22
-------------------
33

4-
Release 8.5-dev
4+
Release 8.5
55
* New command line option:
66
-b : format option for -o output file (json only so far, happy for patches supporting others :) ) - thanks to veggiespam for the patch
77
* ./configure now honors the CC enviroment variable if present
8-
* fixed a bug in the NCP module
8+
* Fix for the restore file crash on some x64 platforms (finally! thanks to lukas227!)
9+
* Changed the format of the restore file to detect cross platform copies
10+
* Fixed a bug in the NCP module
911
* Favor strrchr() over rindex()
1012
* Added refactoring patch by diadlo
1113
* Updated man page with missing command line options

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Version 1.00 example:
333333
"server": "127.0.0.1",
334334
"service": "http-post-form",
335335
"software": "Hydra",
336-
"version": "v8.5-dev"
336+
"version": "v8.5"
337337
},
338338
"quantityfound": 2,
339339
"results": [

hydra.c

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ char *SERVICES =
171171
#define RESTOREFILE "./hydra.restore"
172172

173173
#define PROGRAM "Hydra"
174-
#define VERSION "v8.5-dev"
174+
#define VERSION "v8.5"
175175
#define AUTHOR "van Hauser/THC"
176176
#define EMAIL "<vh@thc.org>"
177177
#define RESOURCE "http://www.thc.org/thc-hydra"
@@ -726,7 +726,7 @@ void bail(char *text) {
726726
void hydra_restore_write(int print_msg) {
727727
FILE *f;
728728
hydra_brain brain;
729-
char mynull[4] = { 0, 0, 0, 0 };
729+
char mynull[4] = { 0, 0, 0, 0 }, buf[4];
730730
int i = 0, j = 0;
731731
hydra_head hh;
732732

@@ -750,6 +750,11 @@ void hydra_restore_write(int print_msg) {
750750
printf("[DEBUG] Writing restore file... ");
751751

752752
fprintf(f, "%s\n", PROGRAM);
753+
buf[0] = VERSION[1];
754+
buf[1] = VERSION[3];
755+
buf[2] = sizeof(int) % 256;
756+
buf[3] = sizeof(hydra_target*) % 256;
757+
fwrite(buf, 1, 4, f);
753758
memcpy(&brain, &hydra_brains, sizeof(hydra_brain));
754759
brain.targets = i;
755760
brain.ofp = NULL;
@@ -815,7 +820,7 @@ void hydra_restore_write(int print_msg) {
815820

816821
void hydra_restore_read() {
817822
FILE *f;
818-
char mynull[4];
823+
char mynull[4], buf[4];
819824
int i, j, orig_debug = debug;
820825
char out[1024];
821826

@@ -834,6 +839,22 @@ void hydra_restore_read() {
834839
fprintf(stderr, "[ERROR] invalid restore file (begin)\n");
835840
exit(-1);
836841
}
842+
843+
if ((fck = (int) fread(buf, 1, 4, f)) != 4) {
844+
fprintf(stderr, "[ERROR] invalid restore file (platform)\n");
845+
exit(-1);
846+
}
847+
if (buf[0] == 0 || buf[1] == 0) {
848+
fprintf(stderr, "[ERROR] restore file is prior hydra version v8.5!\n");
849+
exit(-1);
850+
}
851+
if (buf[0] != VERSION[1] || buf[1] != VERSION[3])
852+
fprintf(stderr, "[WARNING] restore file was created by version %c.%c, this is version %s\n", buf[0], buf[2], VERSION);
853+
if (buf[2] != sizeof(int) % 256 || buf[3] != sizeof(hydra_head*) % 256) {
854+
fprintf(stderr, "[ERROR] restore file was created on a different, incompatible processor platform!\n");
855+
exit(-1);
856+
}
857+
837858
fck = (int) fread(&bf_options, sizeof(bf_options), 1, f);
838859
fck = (int) fread(mynull, sizeof(mynull), 1, f);
839860
if (debug)

web/network_password_cracker_comparison.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ <h1 class="firstHeading">Comparison of Features and Services Coverage</h1>
6262
</td></tr>
6363
<tr>
6464
<td style="background-color: rgb(236, 236, 236); border: 1px solid rgb(204, 204, 204); padding: 2px 4px; font-weight: bold;"> Version
65-
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 8.4
65+
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 8.5
6666
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 2.1
6767
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 0.4 alpha
6868
</td></tr>
6969
<tr>
7070
<td style="background-color: rgb(236, 236, 236); border: 1px solid rgb(204, 204, 204); padding: 2px 4px; font-weight: bold;"> Last Update
71-
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> January 2017
71+
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> May 2017
7272
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> April 2012
7373
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> April 2011
7474
</td></tr>

0 commit comments

Comments
 (0)