mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
rolled back head_init for http-post-form, still an issue with the display
This commit is contained in:
parent
1658f4926f
commit
ab4aa36fd0
2 changed files with 8 additions and 12 deletions
|
@ -1261,18 +1261,14 @@ ptr_header_node initialize(char *ip, unsigned char options, char *miscptr) {
|
||||||
ptr++;
|
ptr++;
|
||||||
if (*ptr != 0)
|
if (*ptr != 0)
|
||||||
*ptr++ = 0;
|
*ptr++ = 0;
|
||||||
|
|
||||||
|
cond = ptr;
|
||||||
|
|
||||||
if ((ptr2 = rindex(ptr, ':')) != NULL) {
|
|
||||||
cond = ptr2 + 1;
|
|
||||||
*ptr2 = 0;
|
|
||||||
} else
|
|
||||||
cond = ptr;
|
|
||||||
/*
|
|
||||||
while (*ptr != 0 && (*ptr != ':' || *(ptr - 1) == '\\'))
|
while (*ptr != 0 && (*ptr != ':' || *(ptr - 1) == '\\'))
|
||||||
ptr++;
|
ptr++;
|
||||||
if (*ptr != 0)
|
if (*ptr != 0)
|
||||||
*ptr++ = 0;
|
*ptr++ = 0;
|
||||||
*/
|
|
||||||
optional1 = ptr;
|
optional1 = ptr;
|
||||||
if (strstr(url, "\\:") != NULL) {
|
if (strstr(url, "\\:") != NULL) {
|
||||||
if ((ptr = malloc(strlen(url))) != NULL) {
|
if ((ptr = malloc(strlen(url))) != NULL) {
|
||||||
|
@ -1314,7 +1310,7 @@ ptr_header_node initialize(char *ip, unsigned char options, char *miscptr) {
|
||||||
success_cond = 0;
|
success_cond = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//printf("miscptr: %s, url=%s, variables=%s, ptr=%s, optional1: %s, cond: %s (%d)\n", miscptr, url, variables, ptr, optional1, cond, success_cond);
|
printf("miscptr: %s, url=%s, variables=%s, ptr=%s, optional1: %s, cond: %s (%d)\n", miscptr, url, variables, ptr, optional1, cond, success_cond);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Parse the user-supplied options.
|
* Parse the user-supplied options.
|
||||||
|
|
8
hydra.c
8
hydra.c
|
@ -337,7 +337,6 @@ char *sck = NULL;
|
||||||
int32_t prefer_ipv6 = 0, conwait = 0, loop_cnt = 0, fck = 0, options = 0, killed = 0;
|
int32_t prefer_ipv6 = 0, conwait = 0, loop_cnt = 0, fck = 0, options = 0, killed = 0;
|
||||||
int32_t child_head_no = -1, child_socket;
|
int32_t child_head_no = -1, child_socket;
|
||||||
int32_t total_redo_count = 0;
|
int32_t total_redo_count = 0;
|
||||||
bool rainy = false;
|
|
||||||
|
|
||||||
// moved for restore feature
|
// moved for restore feature
|
||||||
int32_t process_restore = 0, dont_unlink;
|
int32_t process_restore = 0, dont_unlink;
|
||||||
|
@ -483,7 +482,6 @@ void help(int32_t ext) {
|
||||||
"[service://server[:PORT][/OPT]]\n");
|
"[service://server[:PORT][/OPT]]\n");
|
||||||
PRINT_NORMAL(ext, "\nOptions:\n");
|
PRINT_NORMAL(ext, "\nOptions:\n");
|
||||||
PRINT_EXTEND(ext, " -R restore a previous aborted/crashed session\n"
|
PRINT_EXTEND(ext, " -R restore a previous aborted/crashed session\n"
|
||||||
" -r in conjonction with -x, use rain algorythm\n"
|
|
||||||
" -I ignore an existing restore file (don't wait 10 seconds)\n"
|
" -I ignore an existing restore file (don't wait 10 seconds)\n"
|
||||||
#ifdef LIBOPENSSL
|
#ifdef LIBOPENSSL
|
||||||
" -S perform an SSL connect\n"
|
" -S perform an SSL connect\n"
|
||||||
|
@ -495,6 +493,7 @@ void help(int32_t ext) {
|
||||||
#ifdef HAVE_MATH_H
|
#ifdef HAVE_MATH_H
|
||||||
" -x MIN:MAX:CHARSET password bruteforce generation, type \"-x -h\" to get help\n"
|
" -x MIN:MAX:CHARSET password bruteforce generation, type \"-x -h\" to get help\n"
|
||||||
" -y disable use of symbols in bruteforce, see above\n"
|
" -y disable use of symbols in bruteforce, see above\n"
|
||||||
|
" -r rainy mode for password generation (-x)\n"
|
||||||
#endif
|
#endif
|
||||||
" -e nsr try \"n\" null password, \"s\" login as pass and/or \"r\" reversed login\n"
|
" -e nsr try \"n\" null password, \"s\" login as pass and/or \"r\" reversed login\n"
|
||||||
" -u loop around users, not passwords (effective! implied with -x)\n");
|
" -u loop around users, not passwords (effective! implied with -x)\n");
|
||||||
|
@ -2224,6 +2223,7 @@ int main(int argc, char *argv[]) {
|
||||||
hydra_brains.ofp = stdout;
|
hydra_brains.ofp = stdout;
|
||||||
hydra_brains.targets = 1;
|
hydra_brains.targets = 1;
|
||||||
hydra_options.waittime = waittime = WAITTIME;
|
hydra_options.waittime = waittime = WAITTIME;
|
||||||
|
hydra_options.rainy = 0;
|
||||||
bf_options.disable_symbols = 0;
|
bf_options.disable_symbols = 0;
|
||||||
|
|
||||||
// command line processing
|
// command line processing
|
||||||
|
@ -2259,7 +2259,7 @@ int main(int argc, char *argv[]) {
|
||||||
hydra_restore_read();
|
hydra_restore_read();
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
hydra_options.rainy = true;
|
hydra_options.rainy = 1;
|
||||||
break;
|
break;
|
||||||
case 'I':
|
case 'I':
|
||||||
ignore_restore = 1; // this is not to be saved in hydra_options!
|
ignore_restore = 1; // this is not to be saved in hydra_options!
|
||||||
|
@ -3204,7 +3204,7 @@ int main(int argc, char *argv[]) {
|
||||||
hydra_strcasestr(hydra_options.server, ".gmail.") != NULL ||
|
hydra_strcasestr(hydra_options.server, ".gmail.") != NULL ||
|
||||||
hydra_strcasestr(hydra_options.server, "googlemail.") != NULL
|
hydra_strcasestr(hydra_options.server, "googlemail.") != NULL
|
||||||
)) {
|
)) {
|
||||||
fprintf(stderr, "[WARNING] Google Mail and others have bruteforce and hydra detection and sends false positives. You are not doing anything illegal right?!\n");
|
fprintf(stderr, "[WARNING] Google Mail and others have bruteforce and hydra detection and sends false positives. You are not doing anything illegal right?! If you really need to bruteforce gmail, connect to pop3s://smtp.gmail.com\n");
|
||||||
fprintf(stderr, "[WARNING] !read the above!\n");
|
fprintf(stderr, "[WARNING] !read the above!\n");
|
||||||
sleep(5);
|
sleep(5);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue