Merge branch 'issue/74' into develop

Issue:		#74
Submitted by:	Adam Jacob Muller
pull/13/head
Daniel Roethlisberger 9 years ago
commit 0a67f845e6

@ -11,6 +11,7 @@ patches or pull requests, in chronological order of their first contribution:
- Wayne Jensen ([wjjensen](https://github.com/wjjensen))
- Rory McNamara ([psychomario](https://github.com/psychomario))
- Alexander Neumann ([fd0](https://github.com/fd0))
- Adam Jacob Muller ([AdamJacobMuller](https://github.com/AdamJacobMuller))
Many more individuals have contributed by reporting bugs or feature requests.
See [issue tracker on Github][1], `NEWS.md` and `git log` for details.

@ -1,6 +1,8 @@
### SSLsplit develop
- Added separate src/dst host and port format specifiers %S, %p, %D and %q
to -F (pull req #74 by @AdamJacobMuller).
- Filenames generated by -S and -F %d and %s changed from [host]:port to
host,port format and using underscore instead of colon in IPv6 addresses
in order to be NTFS clean (issue #69).

16
log.c

@ -386,6 +386,14 @@ log_content_format_pathspec(const char *logspec,
elem = addrbuf;
elem_len = strlen(addrbuf);
break;
case 'D':
elem = dsthost;
elem_len = strlen(dsthost);
break;
case 'p':
elem = dstport;
elem_len = strlen(dstport);
break;
case 's':
if (snprintf(addrbuf, sizeof(addrbuf),
"%s,%s", srchost, srcport) < 0) {
@ -395,6 +403,14 @@ log_content_format_pathspec(const char *logspec,
elem = addrbuf;
elem_len = strlen(addrbuf);
break;
case 'S':
elem = srchost;
elem_len = strlen(srchost);
break;
case 'q':
elem = srcport;
elem_len = strlen(srcport);
break;
case 'x':
if (exec_path) {
char *match = exec_path;

@ -154,7 +154,11 @@ main_usage(void)
" -F pathspec content log: full data to sep files with %% subst (excl. -L/-S):\n"
" %%T - initial connection time as an ISO 8601 UTC timestamp\n"
" %%d - destination host and port\n"
" %%D - destination host\n"
" %%p - destination port\n"
" %%s - source host and port\n"
" %%S - source host\n"
" %%q - source port\n"
#ifdef HAVE_LOCAL_PROCINFO
" %%x - base name of local process (requires -i)\n"
" %%X - full path to local process (requires -i)\n"

@ -394,10 +394,22 @@ The initial connection time as an ISO 8601 UTC timestamp.
The destination host and port, separated by a comma, IPv6 addresses using
underscore instead of colon.
.TP
.I %D
The destination host, IPv6 addresses using underscore instead of colon.
.TP
.I %p
The destination port.
.TP
.I %s
The source host and port, separated by a comma, IPv6 addresses using
underscore instead of colon.
.TP
.I %S
The source host, IPv6 addresses using underscore instead of colon.
.TP
.I %q
The source port.
.TP
.I %x
The name of the local process.
Requires \fB-i\fP to be used.
@ -685,7 +697,8 @@ SSLsplit was written by Daniel Roethlisberger <daniel@roe.ch>.
The following individuals have contributed code or documentation, in
chronological order of their first contribution:
Steve Wills, Landon Fuller, Wayne Jensen, Rory McNamara and Alexander Neumann.
Steve Wills, Landon Fuller, Wayne Jensen, Rory McNamara, Alexander Neumann and
Adam Jacob Muller.
.SH BUGS
Use Github for submission of bug reports or patches:
.LP

Loading…
Cancel
Save