mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
ported relevant shared http declarations into header file
This commit is contained in:
parent
d89483ed05
commit
689b20f60a
2 changed files with 14 additions and 4 deletions
|
@ -50,6 +50,7 @@ Added fail or success condition, getting cookies, and allow 5 redirections by da
|
|||
*/
|
||||
|
||||
#include "hydra-mod.h"
|
||||
#include "hydra-http.h"
|
||||
|
||||
/* HTTP Header Types */
|
||||
#define HEADER_TYPE_USERHEADER 'h'
|
||||
|
@ -61,12 +62,12 @@ extern char *HYDRA_EXIT;
|
|||
char *buf;
|
||||
char *cond;
|
||||
|
||||
typedef struct header_node {
|
||||
struct header_node {
|
||||
char *header;
|
||||
char *value;
|
||||
char type;
|
||||
struct header_node *next;
|
||||
} t_header_node, *ptr_header_node;
|
||||
};
|
||||
|
||||
typedef struct cookie_node {
|
||||
char *name;
|
||||
|
@ -81,8 +82,6 @@ int32_t auth_flag = 0;
|
|||
|
||||
char cookie[4096] = "", cmiscptr[1024];
|
||||
|
||||
extern char *webtarget;
|
||||
extern char *slash;
|
||||
int32_t webport, freemischttpform = 0;
|
||||
char bufferurl[6096 + 24], cookieurl[6096 + 24] = "", userheader[6096 + 24] = "", *url, *variables, *optional1;
|
||||
|
||||
|
|
11
hydra-http.h
Normal file
11
hydra-http.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef _HYDRA_HTTP_H
|
||||
#define _HYDRA_HTTP_H
|
||||
|
||||
typedef struct header_node t_header_node, *ptr_header_node;
|
||||
|
||||
extern char *webtarget;
|
||||
extern char *slash;
|
||||
extern char *optional1;
|
||||
|
||||
extern ptr_header_node parse_options(char *miscptr);
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue