dsniff
2.4b2
About: A collection of tools for network auditing
![]() ![]() |
#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"
Go to the source code of this file.
Functions | |
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[]) |
Variables | |
static int | pcap_off |
static u_char | buf [BUFSIZ] |
libnet_t * | l |
libnet_ptag_t | ip_id |
libnet_ptag_t | tcp_id |
|
static |
Definition at line 44 of file filenamesnarf.c.
Referenced by sniff_filename().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 117 of file filenamesnarf.c.
References copy_argv(), errbuf, errx(), intf, ip_id, l, pcap_dloff(), pcap_init(), pcap_off, sniff_filename(), usage(), and warnx().
|
static |
Definition at line 85 of file filenamesnarf.c.
References ftp_parse(), pcap_off, and pkt.
Referenced by main().
|
static |
|
static |
Definition at line 29 of file filenamesnarf.c.
Referenced by buf_new(), buf_tok(), client_request(), copy_argv(), decode_oracle(), decode_socks(), decode_tcp_nfs_half(), decode_udp_nfs(), mitm_child(), process_aim(), process_http_request(), process_irc(), process_msn(), process_pop_client(), process_pop_server(), process_smtp_client(), process_yahoo(), record(), record_save(), rpc_decode(), tcp_raw_input(), trigger_ip(), trigger_tcp_half(), and trigger_udp().
libnet_ptag_t ip_id |
Definition at line 32 of file filenamesnarf.c.
Referenced by dns_spoof(), and main().
libnet_t* l |
Definition at line 31 of file filenamesnarf.c.
Referenced by main().
|
static |
Definition at line 28 of file filenamesnarf.c.
Referenced by main(), and sniff_filename().
libnet_ptag_t tcp_id |
Definition at line 33 of file filenamesnarf.c.