9308e76c8e
"httpry is a specialized packet sniffer designed for displaying and logging HTTP traffic. It is not intended to perform analysis itself, but to capture, parse, and log the traffic for later analysis. It can be run in real-time displaying the traffic as it is parsed, or as a daemon process that logs to an output file. It is written to be as lightweight and flexible as possible, so that it can be easily adaptable to different applications." WWW: http://dumpsterventures.com/jason/httpry/ Submitted by: Richard Bejtlich (private mail)
30 lines
565 B
Bash
30 lines
565 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: httpry
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable httpry:
|
|
#
|
|
# httpry_enable (bool): Set it to "YES" to enable httpry
|
|
# Default is "NO".
|
|
# httpry_flags (flags): Set extra flags to httpry
|
|
# Default is "-d -q -o /var/log/httpry.log".
|
|
# See httpry(1) for more information.
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=httpry
|
|
rcvar=${name}_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${httpry_enable="NO"}
|
|
: ${httpry_flags="-d -q -o /var/log/httpry.log"}
|
|
|
|
command=%%PREFIX%%/bin/httpry
|
|
|
|
run_rc_command "$1"
|