dsniff
2.4b2
About: A collection of tools for network auditing
![]() ![]() |
#include "config.h"
#include <sys/types.h>
#include <arpa/telnet.h>
#include <rpc/rpc.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "decode.h"
Go to the source code of this file.
Functions | |
int | decode_hex (u_char *, int, u_char *, int) |
int | decode_ftp (u_char *, int, u_char *, int) |
int | decode_telnet (u_char *, int, u_char *, int) |
int | decode_smtp (u_char *, int, u_char *, int) |
int | decode_pptp (u_char *, int, u_char *, int) |
int | decode_http (u_char *, int, u_char *, int) |
int | decode_ospf (u_char *, int, u_char *, int) |
int | decode_poppass (u_char *, int, u_char *, int) |
int | decode_pop (u_char *, int, u_char *, int) |
int | decode_nntp (u_char *, int, u_char *, int) |
int | decode_smb (u_char *, int, u_char *, int) |
int | decode_imap (u_char *, int, u_char *, int) |
int | decode_snmp (u_char *, int, u_char *, int) |
int | decode_ldap (u_char *, int, u_char *, int) |
int | decode_mmxp (u_char *, int, u_char *, int) |
int | decode_rlogin (u_char *, int, u_char *, int) |
int | decode_rip (u_char *, int, u_char *, int) |
int | decode_socks (u_char *, int, u_char *, int) |
int | decode_citrix (u_char *, int, u_char *, int) |
int | decode_oracle (u_char *, int, u_char *, int) |
int | decode_tds (u_char *, int, u_char *, int) |
int | decode_sniffer (u_char *, int, u_char *, int) |
int | decode_cvs (u_char *, int, u_char *, int) |
int | decode_icq (u_char *, int, u_char *, int) |
int | decode_napster (u_char *, int, u_char *, int) |
int | decode_aim (u_char *, int, u_char *, int) |
int | decode_postgresql (u_char *, int, u_char *, int) |
int | decode_pcanywhere (u_char *, int, u_char *, int) |
int | decode_x11 (u_char *, int, u_char *, int) |
int | decode_irc (u_char *, int, u_char *, int) |
int | decode_portmap (u_char *, int, u_char *, int) |
int | decode_mountd (u_char *, int, u_char *, int) |
int | decode_vrrp (u_char *, int, u_char *, int) |
int | decode_ypserv (u_char *, int, u_char *, int) |
int | decode_yppasswd (u_char *, int, u_char *, int) |
struct decode * | getdecodebyname (const char *name) |
int | strip_telopts (u_char *buf, int len) |
int | strip_lines (char *buf, int max_lines) |
int | is_ascii_string (char *buf, int len) |
u_char * | bufbuf (u_char *big, int blen, u_char *little, int llen) |
Variables | |
static struct decode | decodes [] |
u_char* bufbuf | ( | u_char * | big, |
int | blen, | ||
u_char * | little, | ||
int | llen | ||
) |
Definition at line 193 of file decode.c.
References memcmp().
Referenced by decode_oracle(), and strip_telopts().
int decode_aim | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 37 of file decode_aim.c.
int decode_citrix | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 30 of file decode_citrix.c.
int decode_cvs | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 41 of file decode_cvs.c.
int decode_ftp | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 23 of file decode_ftp.c.
int decode_hex | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 26 of file decode_hex.c.
int decode_http | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 96 of file decode_http.c.
int decode_icq | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 58 of file decode_icq.c.
int decode_imap | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 22 of file decode_imap.c.
int decode_irc | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 22 of file decode_irc.c.
int decode_ldap | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 23 of file decode_ldap.c.
int decode_mmxp | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 33 of file decode_mmxp.c.
int decode_mountd | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 29 of file decode_mountd.c.
int decode_napster | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 22 of file decode_napster.c.
int decode_nntp | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 23 of file decode_nntp.c.
int decode_oracle | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 22 of file decode_oracle.c.
int decode_ospf | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 21 of file decode_ospf.c.
int decode_pcanywhere | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 25 of file decode_pcanywhere.c.
int decode_pop | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 44 of file decode_pop.c.
int decode_poppass | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 23 of file decode_pop.c.
int decode_portmap | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 27 of file decode_portmap.c.
int decode_postgresql | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 25 of file decode_postgresql.c.
int decode_pptp | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 86 of file decode_pptp.c.
int decode_rip | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 21 of file decode_rip.c.
int decode_rlogin | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 22 of file decode_rlogin.c.
int decode_smb | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 32 of file decode_smb.c.
int decode_smtp | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 23 of file decode_smtp.c.
int decode_sniffer | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 23 of file decode_sniffer.c.
int decode_snmp | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 24 of file decode_snmp.c.
int decode_socks | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 21 of file decode_socks.c.
int decode_tds | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 131 of file decode_tds.c.
int decode_telnet | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 22 of file decode_telnet.c.
int decode_vrrp | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 39 of file decode_vrrp.c.
int decode_x11 | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 21 of file decode_x11.c.
int decode_yppasswd | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 71 of file decode_yp.c.
int decode_ypserv | ( | u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
Definition at line 102 of file decode_yp.c.
struct decode* getdecodebyname | ( | const char * | name | ) |
Definition at line 97 of file decode.c.
References decode::dc_name, and decodes.
Referenced by trigger_set_ip(), trigger_set_rpc(), trigger_set_tcp(), and trigger_set_udp().
int is_ascii_string | ( | char * | buf, |
int | len | ||
) |
Definition at line 182 of file decode.c.
Referenced by decode_smb(), and decode_telnet().
int strip_lines | ( | char * | buf, |
int | max_lines | ||
) |
Definition at line 159 of file decode.c.
Referenced by decode_poppass(), decode_rlogin(), and decode_telnet().
int strip_telopts | ( | u_char * | buf, |
int | len | ||
) |
Definition at line 110 of file decode.c.
References bufbuf().
Referenced by decode_ftp(), and decode_telnet().
|
static |
Definition at line 57 of file decode.c.
Referenced by getdecodebyname().