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)  

webspy.c File Reference
#include "config.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <err.h>
#include <X11/Xlib.h>
#include <libnet.h>
#include <nids.h>
#include "base64.h"
#include "buf.h"
#include "version.h"
Include dependency graph for webspy.c:

Go to the source code of this file.

Functions

int mozilla_remote_commands (Display *, Window, char **)
 
static void usage (void)
 
static int is_display_uri (char *uri)
 
static int process_http_request (struct tuple4 *addr, u_char *data, int len)
 
static void sniff_http_client (struct tcp_stream *ts, void **yoda)
 
static void null_syslog (int type, int errnum, struct ip *iph, void *data)
 
int main (int argc, char *argv[])
 

Variables

char * expected_mozilla_version = "5.0"
 
char * progname = "webspy"
 
Display * dpy
 
char cmd [2048]
 
char * cmdtab [2]
 
u_int32_t host
 
libnet_t * l
 

Function Documentation

◆ is_display_uri()

static int is_display_uri ( char *  uri)
static

Definition at line 51 of file webspy.c.

Referenced by process_http_request().

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 182 of file webspy.c.

References cmd, cmdtab, dpy, errbuf, errx(), host, l, null_syslog(), sniff_http_client(), usage(), and warnx().

◆ mozilla_remote_commands()

int mozilla_remote_commands ( Display *  ,
Window  ,
char **   
)

◆ null_syslog()

static void null_syslog ( int  type,
int  errnum,
struct ip *  iph,
void *  data 
)
static

Definition at line 177 of file webspy.c.

Referenced by main().

◆ process_http_request()

static int process_http_request ( struct tuple4 *  addr,
u_char *  data,
int  len 
)
static

◆ sniff_http_client()

static void sniff_http_client ( struct tcp_stream *  ts,
void **  yoda 
)
static

Definition at line 142 of file webspy.c.

References host, and process_http_request().

Referenced by main().

◆ usage()

static void usage ( void  )
static

Definition at line 43 of file webspy.c.

References progname, and VERSION.

Referenced by main().

Variable Documentation

◆ cmd

char cmd[2048]

Definition at line 38 of file webspy.c.

Referenced by decode_icq(), main(), and process_http_request().

◆ cmdtab

char * cmdtab[2]

Definition at line 38 of file webspy.c.

Referenced by main(), and process_http_request().

◆ dpy

◆ expected_mozilla_version

char* expected_mozilla_version = "5.0"

Definition at line 34 of file webspy.c.

Referenced by mozilla_remote_check_window(), and mozilla_remote_find_window().

◆ host

u_int32_t host

Definition at line 39 of file webspy.c.

Referenced by decode_http(), main(), and sniff_http_client().

◆ l

libnet_t* l

Definition at line 40 of file webspy.c.

Referenced by main().

◆ progname