dsniff  2.4b2
About: A collection of tools for network auditing
  Fossies Dox: dsniff-2.4b2.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

decode_http.c File Reference
#include "config.h"
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <regex.h>
#include <libgen.h>
#include <err.h>
#include "base64.h"
#include "buf.h"
#include "decode.h"
Include dependency graph for decode_http.c:

Go to the source code of this file.

Macros

#define USER_REGEX
 
#define PASS_REGEX   ".*pass.*|.*pw|pw.*|additional_info"
 
#define REGEX_FLAGS   (REG_EXTENDED | REG_ICASE | REG_NOSUB)
 

Functions

static int grep_query_auth (char *buf)
 
static char * http_req_dirname (char *req)
 
int decode_http (u_char *buf, int len, u_char *obuf, int olen)
 

Variables

static regex_t * user_regex
 
static regex_t * pass_regex
 

Macro Definition Documentation

◆ PASS_REGEX

#define PASS_REGEX   ".*pass.*|.*pw|pw.*|additional_info"

Definition at line 30 of file decode_http.c.

◆ REGEX_FLAGS

#define REGEX_FLAGS   (REG_EXTENDED | REG_ICASE | REG_NOSUB)

Definition at line 32 of file decode_http.c.

◆ USER_REGEX

#define USER_REGEX
Value:
".*account.*|.*acct.*|.*domain.*|.*login.*|" \
".*member.*|.*user.*|.*name|.*email|.*_id|" \
"id|uid|mn|mailaddress"

Definition at line 26 of file decode_http.c.

Function Documentation

◆ decode_http()

int decode_http ( u_char *  buf,
int  len,
u_char *  obuf,
int  olen 
)

◆ grep_query_auth()

static int grep_query_auth ( char *  buf)
static

Definition at line 37 of file decode_http.c.

References pass_regex, and user_regex.

Referenced by decode_http().

◆ http_req_dirname()

static char* http_req_dirname ( char *  req)
static

Definition at line 70 of file decode_http.c.

References dirname().

Referenced by decode_http().

Variable Documentation

◆ pass_regex

regex_t * pass_regex
static

Definition at line 34 of file decode_http.c.

Referenced by decode_http(), and grep_query_auth().

◆ user_regex

regex_t* user_regex
static

Definition at line 34 of file decode_http.c.

Referenced by decode_http(), and grep_query_auth().