Commit Graph

1004 Commits

Author SHA1 Message Date
Kaian ab970b12b8 doc: update all copyright headers to 2018 2018-01-19 11:52:13 +01:00
Kaian 57ccd90891 doc: update Changelog with 1.4.5 changes 2018-01-19 11:49:43 +01:00
Kaian 5f97547c00 pkg: update files for 1.4.5 release 2017-12-22 15:16:21 +01:00
kaian f4cd906f2e pkg: include rules for debian debug package 2017-12-22 13:53:44 +01:00
Kaian 6ec5cd2ee4 save: avoid displaying dialog with multiple inputs. #223 2017-12-22 12:35:38 +01:00
Kaian 19c5cba2f2 cf: remove truncate compiler warnings while formatting column titles #226 2017-12-20 13:57:02 +01:00
Kaian c89fe85195 save: fix dialog_run format when used with capture_last_error #223 2017-12-12 15:00:39 +01:00
Kaian fd2b89526e cl: fix buffer overflow in display filter #225
Display filter content was being moved into a temporal
buffer with fixed length of 256. The filter field is
determined by the actual screen width, so we must ensure
the buffer has enough space to contain it.

ncurses always returns the same length output for the
filter value, filling the buffer with whitespaces until the
field lenght has been reached.
2017-12-12 14:54:41 +01:00
Victor Seva 08d3f4ca8d fix manpage typo thanks to lintian
> I: sngrep: spelling-error-in-manpage usr/share/man/man8/sngrep.8.gz Altough Although
2017-12-12 13:15:08 +01:00
Kaian be7d70824b tls: remove testing TLS sample files 2017-11-16 13:18:05 +01:00
Kaian 49fb3de242 capture: add support for NFLOG linktype headers #222
If DLT_NFLOG is available (libpcap >1.6.0) standard libpcap structs will be
used. Othewise, a fallback minimum implementation is provided in capture
headers.

Thanks as always to wireshak team for the sources to implement this :)
2017-11-15 18:50:05 +01:00
Kaian 9d9d093872 tls: add new setting capture.tlsserver #220
Added a new setting to only try to decrypt incomming TLS connections to
configured server in format IP:PORT

To enable this add following setting in sngreprc

set capture.tlsserver X.X.X.X:YYYY
2017-11-06 16:25:12 +01:00
kaian 98cd80f897 tls: don't handle all TCP connections as TLS #209 #214
When SYN-SYN+ACK-ACK sequence is captured, we handle the TCP
stream as TLS if keyfile is provided. This may not be the case,
so we must allow SIP parsing in TCP streams that doesn't come
with SSL record data.
2017-10-30 15:18:59 +01:00
kaian a438e38984 tls: fix compatibility with OpenSSL >= 1.1.0 #213 2017-10-30 12:52:39 +01:00
kaian f4c30a528e tls: fix overflow warnings in tls records processing 2017-10-30 12:30:24 +01:00
Kaian 0a9ad07d5e tls: fix compatibility with OpenSSL >= 1.1.0 #213 2017-10-27 17:56:29 +02:00
Kaian b2996a3549 capture: avoid premature handler close in offline mode #207
While reading pcap files the packet loop ends and the capture handler
is closed, making it unusable for saving packets.

This commit avoids closing the handler until the application has
quit, using the running flag to determine if the capture thread is running
or not.
2017-10-09 17:51:04 +02:00
Kaian 2d4eee8015 capture: only read stdin when input file is -
stdin was being reopened always even when input file was a pcap file.

Current tests enter keybinding from stdin so its data was being
ignored making them fail.
2017-10-02 15:20:11 +02:00
Kaian cf5e1da49d doc: update header files years 2017-09-17 10:56:15 +02:00
Kaian d014bc0c8c doc: added changelog entry for 1.4.4 2017-09-17 10:54:14 +02:00
Federico Santulli e3ab7d7268 Fixed Window Resize in Call List and Call Flow 2017-09-17 10:43:08 +02:00
Kaian a3b24b6e19 capture: fix crash while saving offline capture 2017-09-17 10:40:33 +02:00
Kaian 5a06bb581b capture: fix compilation support for CentOS 5.x 2017-09-11 12:26:28 +02:00
Kaian 1b5149c6f8 capture: allow reading data from standard input #198 2017-08-21 11:43:09 +02:00
Kaian 3c19342f25 offline: wait all threads are completed in no-interface mode #199
During offline file parsing in No interface mode, instead of checking if any
capture handler was still open, it was checking if any capture mode was online.
When only files were supplied, the capture instantly ended, closing the just
started offline capture threads.
2017-08-17 17:50:56 +02:00
Kaian 03c69a6311 eep: capture mode now displays running eep modes #194
Improved Capture Mode call list text to indicate
eep current running mode.

EEP listen mode is considered an Online mode and
will be displayed as [L:port].

EEP send mode is not considered an input but it
will also still printed as [H:port] in Capture
mode label.
2017-06-20 16:41:56 +02:00
Kaian 3e3c276dd4 doc: update README.md broken links 2017-06-20 16:19:53 +02:00
Kaian ca6bd26fff autotools: fix ncurses wchar detection
Author: Adam Duskett <aduskett@codeblue.com>

Ncurses detection is currently broken in buildroot.

This patch does the following:
 - Add SNGREP_CHECK_SCRIPT to configure.ac which checks for a
   libname, a function in that library, sets a define if found, and
   if not found, moves on to the next part. This is taken from the
   htop configure.ac.

 - Adds SNGREP_CHECK_LIB to configure.ac which checks for a
   library, a function within that library, sets a define if that function
   is found, and if not found, moves on to the next part.
   This is taken from the htop configure.ac

 - Modifies scrollbar.h and ui_panel.h to include <wctypes.h> instead of
   <ncursesw/ncurses.h> if unicode is supported.
2017-06-20 16:12:36 +02:00
Nikolay Shopik 436252820a send EEP packets to localhost by default 2017-06-20 11:50:58 +02:00
Kaian 446054da34 eep: remove default send/receive password value #193 2017-06-19 20:15:18 +02:00
Kaian 9a6550055f autotools: fix ncurses wchar detection 2017-05-30 11:15:49 +02:00
Kaian e50176a534 capture: add support for VLAN 802.1Q header in Linux cooked packets #189 2017-05-24 15:28:29 +02:00
Romain Naour 22b8206357 use libgcrypt-config to link with gpg-error
gcrypt is linked with libgpg-error, use libgcrypt-config to find
this dependency. (libgcrypt doesn't provide a .pc file)

libgcrypt-config --libs
[...] -lgcrypt -lgpg-error

Signed-off-by: Romain Naour <romain.naour@gmail.com>
2017-05-22 13:13:53 +02:00
Romain Naour 9f65c34633 configure.ac: switch to pkg-config to find gnutls.
Like for openssl in patch [1] and for the same reason,
use pkg-config to find gnutls.

gnutls can be linked with :
    -lintl -lgmp -lunistring -lhogweed -lnettle -ltasn1 -lz

Fixes:
http://autobuild.buildroot.net/results/f7f/f7fb42d3742f6f01000a0d181e0c785640284405

[1] 2563b016ae

Signed-off-by: Romain Naour <romain.naour@gmail.com>
2017-05-22 13:13:53 +02:00
Kaian 35eca717b8 tcp: don't store negative length payloads for assembly #187 2017-05-15 18:05:16 +02:00
Kaian 60d98b3316 tcp: avoid crash with multi-message TCP packets #187 2017-05-15 17:28:55 +02:00
Kaian c2e03f89eb rtp: avoid parsing SRTCP packet payload #186
Check the RTCP reported header length is not greater than the actual available
RTPC packet size.
2017-05-12 16:21:15 +02:00
Kaian 5f21dbe847 Release files for version bump to 1.4.3 2017-05-10 16:46:07 +02:00
Kaian f9ec50ec56 group: fix only SDP arrows mode in call flow 2017-05-08 13:09:00 +02:00
Sergej 302429fee1 - eep: Support for EEP traffic with UUID chunks (Asterisk) 2017-05-05 11:15:45 +02:00
Kaian 982d6e5658 sip: update SIP From/To regexp to handle URIs without user #183
When no user is present in this headers 'SIP From/To User' will now be empty
instead of showing the ip/domain of the header URI.
2017-04-26 19:30:20 +02:00
Kaian c39e33c0c6 doc: Fix readme distribution links for install instructions 2017-04-21 15:15:14 +02:00
Kaian 8e52f70ed0 Merge branch 'multi_device' 2017-04-18 10:58:31 +02:00
Kaian e3a1323e01 todo: improve captures during long executions #179 2017-04-04 12:35:20 +02:00
Kaian e4f361382c doc: Improve man documentation for some command line options #179 2017-04-04 11:51:26 +02:00
Kaian cb46ff5091 cli: fix segfault when --limit option is used without arguments #179 2017-04-04 11:51:17 +02:00
Kaian 25ce3f65e6 capture: Use default device if no device or input file has been specified 2017-04-04 11:14:26 +02:00
Kaian be708634c1 capture: Add support for capturing from multiples devices #93
Like the -I command line argument supports multiples files, this commit implements
the logics for supporting multiple -d command line arguments.

We have also changed the way status (online, offline) is calculated, based on the
loaded sources.

The IP and TCP reassembly vectors have been now moved into each capture source
structure to avoid locking the general canpture config struct (where those vector
used to live until now).
2017-04-03 12:58:26 +02:00
Kaian 6aca10b350 configure: use PKG_CHECK_MODULES only when availbale #178 #176
PKG_CHECK_MODULES macro is installed in pkg-config package which is not present
in all installations. While it has its advantes, we must check if it's available
to support legacy configurations.
2017-04-03 11:51:07 +02:00
Kaian 3c9aa4ee51 sip: Allow spaces before CRLF in SIP headers parsing regexp 2017-04-03 11:11:23 +02:00