mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-19 21:03:52 -07:00
hydra v8.5 release
This commit is contained in:
parent
d754411a96
commit
59819655d1
4 changed files with 31 additions and 8 deletions
6
CHANGES
6
CHANGES
|
@ -1,11 +1,13 @@
|
||||||
Changelog for hydra
|
Changelog for hydra
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
Release 8.5-dev
|
Release 8.5
|
||||||
* New command line option:
|
* 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
|
-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
|
* ./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()
|
* Favor strrchr() over rindex()
|
||||||
* Added refactoring patch by diadlo
|
* Added refactoring patch by diadlo
|
||||||
* Updated man page with missing command line options
|
* Updated man page with missing command line options
|
||||||
|
|
2
README
2
README
|
@ -333,7 +333,7 @@ Version 1.00 example:
|
||||||
"server": "127.0.0.1",
|
"server": "127.0.0.1",
|
||||||
"service": "http-post-form",
|
"service": "http-post-form",
|
||||||
"software": "Hydra",
|
"software": "Hydra",
|
||||||
"version": "v8.5-dev"
|
"version": "v8.5"
|
||||||
},
|
},
|
||||||
"quantityfound": 2,
|
"quantityfound": 2,
|
||||||
"results": [
|
"results": [
|
||||||
|
|
27
hydra.c
27
hydra.c
|
@ -171,7 +171,7 @@ char *SERVICES =
|
||||||
#define RESTOREFILE "./hydra.restore"
|
#define RESTOREFILE "./hydra.restore"
|
||||||
|
|
||||||
#define PROGRAM "Hydra"
|
#define PROGRAM "Hydra"
|
||||||
#define VERSION "v8.5-dev"
|
#define VERSION "v8.5"
|
||||||
#define AUTHOR "van Hauser/THC"
|
#define AUTHOR "van Hauser/THC"
|
||||||
#define EMAIL "<vh@thc.org>"
|
#define EMAIL "<vh@thc.org>"
|
||||||
#define RESOURCE "http://www.thc.org/thc-hydra"
|
#define RESOURCE "http://www.thc.org/thc-hydra"
|
||||||
|
@ -726,7 +726,7 @@ void bail(char *text) {
|
||||||
void hydra_restore_write(int print_msg) {
|
void hydra_restore_write(int print_msg) {
|
||||||
FILE *f;
|
FILE *f;
|
||||||
hydra_brain brain;
|
hydra_brain brain;
|
||||||
char mynull[4] = { 0, 0, 0, 0 };
|
char mynull[4] = { 0, 0, 0, 0 }, buf[4];
|
||||||
int i = 0, j = 0;
|
int i = 0, j = 0;
|
||||||
hydra_head hh;
|
hydra_head hh;
|
||||||
|
|
||||||
|
@ -750,6 +750,11 @@ void hydra_restore_write(int print_msg) {
|
||||||
printf("[DEBUG] Writing restore file... ");
|
printf("[DEBUG] Writing restore file... ");
|
||||||
|
|
||||||
fprintf(f, "%s\n", PROGRAM);
|
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));
|
memcpy(&brain, &hydra_brains, sizeof(hydra_brain));
|
||||||
brain.targets = i;
|
brain.targets = i;
|
||||||
brain.ofp = NULL;
|
brain.ofp = NULL;
|
||||||
|
@ -815,7 +820,7 @@ void hydra_restore_write(int print_msg) {
|
||||||
|
|
||||||
void hydra_restore_read() {
|
void hydra_restore_read() {
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char mynull[4];
|
char mynull[4], buf[4];
|
||||||
int i, j, orig_debug = debug;
|
int i, j, orig_debug = debug;
|
||||||
char out[1024];
|
char out[1024];
|
||||||
|
|
||||||
|
@ -834,6 +839,22 @@ void hydra_restore_read() {
|
||||||
fprintf(stderr, "[ERROR] invalid restore file (begin)\n");
|
fprintf(stderr, "[ERROR] invalid restore file (begin)\n");
|
||||||
exit(-1);
|
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(&bf_options, sizeof(bf_options), 1, f);
|
||||||
fck = (int) fread(mynull, sizeof(mynull), 1, f);
|
fck = (int) fread(mynull, sizeof(mynull), 1, f);
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|
|
@ -62,13 +62,13 @@ features are added to the project. If you find any inaccuracies
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<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 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;"> 2.1
|
||||||
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 0.4 alpha
|
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> 0.4 alpha
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<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 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 2012
|
||||||
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> April 2011
|
</td><td style="border: 1px solid rgb(204, 204, 204); padding: 2px 4px; text-align: center;"> April 2011
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue