Philippe Antoine
0c92b8f7e4
dcerpc: adds invalid signature unit test
6 years ago
Philippe Antoine
b8069365f5
dcerpc: check app proto for signature keywords
6 years ago
Victor Julien
6ab323d323
detect: hide RegisterTests behind ifdef UNITTESTS
...
Update all callers to more aggressively use UNITTESTS guards as well.
6 years ago
Xiaofan Wang
071f55dcd7
ftp: fix direction of expectation for STOR command
...
Fix direction in active mode.
6 years ago
Victor Julien
0d24066876
sip: minor cleanup
6 years ago
Victor Julien
db3b637ada
htp: minor UNITTESTS guarding cleanup
6 years ago
Victor Julien
7c364017da
ftp: small code cleanup
6 years ago
Victor Julien
0c06d08d94
gitignore: add .vscode and various other files
6 years ago
Jeff Lucovsky
72e2f36f9b
ftp: Restrict file name lengths
...
Restrict file name lengths to PATH_MAX - 1 to avoid over subscribing
memory to FTP file name tracking.
6 years ago
Shivani Bhardwaj
c169cfe0a3
bytetest: use ByteExtractString instead of StringParse
6 years ago
Shivani Bhardwaj
6f84515dd9
util: fix trailing char check with ByteExtractString
6 years ago
Philippe Antoine
eb5b927787
ssh: fixing incomplete kex parsing
...
We use the record length from the ssh record header,
and not the size of the parsed data, as is done in other places.
6 years ago
Victor Julien
bcd416e6ba
nfs: fix 'dangling' files in lossy sessions
...
In case of lossy connections the NFS state would properly clean up
transactions, including file transactions. However for files the
state was never set to 'truncated', leading to files to stay 'active'.
This would lead these files staying in the NFS's state. In long running
sessions with lots of files this would lead to performance and memory
use issues.
This patch cleans truncates the file that was being transmitted when
a file transaction is being closed.
Based on 65e9a7c31c
6 years ago
Victor Julien
fc7cecb4ae
nfs: check post-gap timeouts once a second at most
...
Based on 25f2efe977
6 years ago
Victor Julien
5d65e5a748
nfs: update ts only if it changed
...
Based on 8aa380600d
6 years ago
Zach Kelly
b25de4d99a
rdp: remove parser buffering code
6 years ago
Zach Kelly
22a2bee614
rdp/eve: convert to jsonbuilder
6 years ago
Zach Kelly
ef397daba3
rdp: rustfmt (update)
6 years ago
Joshua Lumb
f7c4600482
threads/runmode: Changes to thread config behaviour
6 years ago
Shivani Bhardwaj
0ae63e85ed
gh-checks: Add enable-debug-validation to test
6 years ago
Shivani Bhardwaj
68bf7d998a
travis: add test for enable-debug-validation
6 years ago
Shivani Bhardwaj
35362b7bfa
jsonbuilder: run test if not debug-validate
6 years ago
Shivani Bhardwaj
333a785efd
sip: remove extra jsonbuilder close
6 years ago
Shivani Bhardwaj
2ce7d98af1
dcerpc: fix tests to have a valid header
6 years ago
Shivani Bhardwaj
9f9670ebdc
logging: Add DCERPC logger
6 years ago
Shivani Bhardwaj
bab497ab2c
dcerpc: Add multi transaction support
...
DCERPC parser so far provided support for single transactions only.
Extend that to support multiple transactions.
In order for multiple transactions to work, there is always a
transaction identifier for any protocol in its header that lets a
response match the request. In DCERPC, for TCP, that param is call_id in
the header which is a 32 bit field. For UDP, however since it uses
different version of RPC (4.x), this is defined by serial number field
defined in the header. This field however is not contiguous and needs to
be assembled by the provided serial_low and serial_hi fields.
6 years ago
Victor Julien
9831839388
detect/mpm: fix hs check
6 years ago
Tristan Fletcher
6cbb4d4909
doc: fix spelling in flowbits image
6 years ago
Roland Fischer
9f1efa3c10
pcap: 32bit counters can wrap-around
...
Fixes issue 2845.
pcap_stats is based on 32bit counters and given a big enough throughput
will overflow them. This was reported by people using Myricom cards which
should only be a happenstance. The problem exists for all pcap-based
interfaces.
Let's use internal 64bit counters that drag along the pcap_stats and
handle pcap_stats wrap-around as we update the 64bit stats "often enough"
before the pcap_stats can wrap around twice.
6 years ago
Shivani Bhardwaj
67e7be633c
krb: convert to jsonbuilder
...
Closes redmine ticket 3754.
6 years ago
Shivani Bhardwaj
72dab0a8b7
snmp: convert to jsonbuilder
...
Closes redmine ticket 3756.
6 years ago
Jason Ish
5d0d630237
github-ci: build rust doc on stable and 1.34.2
...
Nothing is done with the rustdoc, its just build to make
sure it builds with our supported versions of Rust
6 years ago
Jason Ish
7ca24041b6
rust: add doc target to build rust docs
...
Uses "cargo doc --no-deps" to build the documentation just for
our Suricata package. Without --no-deps, documentation will be
build for all our dependencies as well.
The generated documentation will end up in target/doc as HTML.
6 years ago
Jason Ish
abc71dc4a5
applayer template (rust): better gap handling example
...
In the request parser, show checking if a gap was received
and what one example of trying to continue might look like.
6 years ago
Jason Ish
b91bb92b7d
applayer template (rust): incomplete support
...
Show how to use the incomplete AppLayerResult type within the
limits of what the template protocol parser can provide.
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/3541
6 years ago
Jason Ish
3f615f751b
rust app-layer template: add stubs for gap handling
6 years ago
Jason Ish
d60671d855
rust/dns: use new flags field to set parser option flags
6 years ago
Jason Ish
53aa967e0b
applayer: add flags to parser registration struct
...
This will allow Rust parsers to register for gap handing from
Rust (some Rust parsers do handle gaps, but they set the flag
from C).
6 years ago
Jason Ish
7476399f43
template: add gap handling
6 years ago
Victor Julien
e04d48c8c8
doc/userguide: fix outdated mpm info
6 years ago
Victor Julien
4726d7027c
detect/mpm: 'mpm-algo' parsing cleanups
6 years ago
Victor Julien
f2a3d6d834
flow: fix unlikely issue with int handling
...
Thanks for reporting this magenbluten PR 4575.
6 years ago
Victor Julien
04d88e7012
doc/suricata-update: fix typo and do minor cleanups
...
Thanks to showipintbri PR 4465.
6 years ago
Zackeus Bengtsson
6887a2ab35
buildbot-pcaps: remove redundant sudo
6 years ago
jason taylor
89839e3c27
suricatasc: updates copyright date and FSF address
...
Signed-off-by: jason taylor <jtfas90@gmail.com>
6 years ago
jason taylor
7be7f06ac6
suricatasc: update copyright date and FSF address
...
Signed-off-by: jason taylor <jtfas90@gmail.com>
6 years ago
jason taylor
143f08fa7a
prscript: update copyright dates and FSF address
...
Signed-off-by: jason taylor <jtfas90@gmail.com>
6 years ago
Victor Julien
fa2b46cdc3
detect/stream_size: minor code cleanups
6 years ago
Jason Ish
9d9a901b68
dns: conditional logging
...
Apply config to newly created response TX.
6 years ago
Victor Julien
ac3cf6ff75
detect/config: set config for special cases
...
Allow app-layer to declare the txs are uni-directional and special
care is needed for applying config.
6 years ago