Skip to content

Commit

Permalink
hydra v8.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhauser-thc committed May 3, 2017
1 parent d754411 commit 5981965
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 8 deletions.
6 changes: 4 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Changelog for hydra
-------------------

Release 8.5-dev
Release 8.5
* New command line option:
-b : format option for -o output file (json only so far, happy for patches supporting others :) ) - thanks to veggiespam for the patch
* ./configure now honors the CC enviroment variable if present
* fixed a bug in the NCP module
* Fix for the restore file crash on some x64 platforms (finally! thanks to lukas227!)
* Changed the format of the restore file to detect cross platform copies
* Fixed a bug in the NCP module
* Favor strrchr() over rindex()
* Added refactoring patch by diadlo
* Updated man page with missing command line options
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Version 1.00 example:
"server": "127.0.0.1",
"service": "http-post-form",
"software": "Hydra",
"version": "v8.5-dev"
"version": "v8.5"
},
"quantityfound": 2,
"results": [
Expand Down
27 changes: 24 additions & 3 deletions hydra.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ char *SERVICES =
#define RESTOREFILE "./hydra.restore"

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

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

fprintf(f, "%s\n", PROGRAM);
buf[0] = VERSION[1];
buf[1] = VERSION[3];
buf[2] = sizeof(int) % 256;
buf[3] = sizeof(hydra_target*) % 256;
fwrite(buf, 1, 4, f);
memcpy(&brain, &hydra_brains, sizeof(hydra_brain));
brain.targets = i;
brain.ofp = NULL;
Expand Down Expand Up @@ -815,7 +820,7 @@ void hydra_restore_write(int print_msg) {

void hydra_restore_read() {
FILE *f;
char mynull[4];
char mynull[4], buf[4];
int i, j, orig_debug = debug;
char out[1024];

Expand All @@ -834,6 +839,22 @@ void hydra_restore_read() {
fprintf(stderr, "[ERROR] invalid restore file (begin)\n");
exit(-1);
}

if ((fck = (int) fread(buf, 1, 4, f)) != 4) {
fprintf(stderr, "[ERROR] invalid restore file (platform)\n");
exit(-1);
}
if (buf[0] == 0 || buf[1] == 0) {
fprintf(stderr, "[ERROR] restore file is prior hydra version v8.5!\n");
exit(-1);
}
if (buf[0] != VERSION[1] || buf[1] != VERSION[3])
fprintf(stderr, "[WARNING] restore file was created by version %c.%c, this is version %s\n", buf[0], buf[2], VERSION);
if (buf[2] != sizeof(int) % 256 || buf[3] != sizeof(hydra_head*) % 256) {
fprintf(stderr, "[ERROR] restore file was created on a different, incompatible processor platform!\n");
exit(-1);
}

fck = (int) fread(&bf_options, sizeof(bf_options), 1, f);
fck = (int) fread(mynull, sizeof(mynull), 1, f);
if (debug)
Expand Down
4 changes: 2 additions & 2 deletions web/network_password_cracker_comparison.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ <h1 class="firstHeading">Comparison of Features and Services Coverage</h1>
</td></tr>
<tr>
<td style="background-color: rgb(236, 236, 236); border: 1px solid rgb(204, 204, 204); padding: 2px 4px; font-weight: bold;"> Version
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 8.4
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 8.5
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 2.1
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 0.4 alpha
</td></tr>
<tr>
<td style="background-color: rgb(236, 236, 236); border: 1px solid rgb(204, 204, 204); padding: 2px 4px; font-weight: bold;"> Last Update
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> January 2017
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> May 2017
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> April 2012
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> April 2011
</td></tr>
Expand Down

0 comments on commit 5981965

Please sign in to comment.