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)  

filenamesnarf.c File Reference
#include "config.h"
#include <sys/types.h>
#include <sys/queue.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <regex.h>
#include <err.h>
#include <libnet.h>
#include <nids.h>
#include <pcap.h>
#include <pcaputil.h>
#include "version.h"
Include dependency graph for filenamesnarf.c:

Go to the source code of this file.


static void usage (void)
static void ftp_parse (struct libnet_ipv4_hdr *ip, struct libnet_tcp_hdr *tcp, int pkt_len)
static void sniff_filename (u_char *user, const struct pcap_pkthdr *pcap, const u_char *pkt)
int main (int argc, char *argv[])


static int pcap_off
static u_char buf [BUFSIZ]
libnet_t * l
libnet_ptag_t ip_id
libnet_ptag_t tcp_id

Function Documentation

◆ ftp_parse()

static void ftp_parse ( struct libnet_ipv4_hdr *  ip,
struct libnet_tcp_hdr *  tcp,
int  pkt_len 

Definition at line 44 of file filenamesnarf.c.

Referenced by sniff_filename().

◆ main()

int main ( int  argc,
char *  argv[] 

◆ sniff_filename()

static void sniff_filename ( u_char *  user,
const struct pcap_pkthdr *  pcap,
const u_char *  pkt 

Definition at line 85 of file filenamesnarf.c.

References ftp_parse(), pcap_off, and pkt.

Referenced by main().

◆ usage()

static void usage ( void  )

Definition at line 36 of file filenamesnarf.c.

References VERSION.

Referenced by main().

Variable Documentation

◆ buf

◆ ip_id

libnet_ptag_t ip_id

Definition at line 32 of file filenamesnarf.c.

Referenced by dns_spoof(), and main().

◆ l

libnet_t* l

Definition at line 31 of file filenamesnarf.c.

Referenced by main().

◆ pcap_off

int pcap_off

Definition at line 28 of file filenamesnarf.c.

Referenced by main(), and sniff_filename().

◆ tcp_id

libnet_ptag_t tcp_id

Definition at line 33 of file filenamesnarf.c.