]> git.ipfire.org Git - people/ms/suricata.git/commit - src/app-layer-parser.h
QA: direct access from commandline to AppLayer API
authorVictor Julien <victor@inliniac.net>
Fri, 11 Mar 2016 11:00:22 +0000 (12:00 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 12 Apr 2016 13:19:59 +0000 (15:19 +0200)
commit077ac81688c335724532ed97796cce0322f31253
treea804ce0ddf6bc9be5d961e557e4801f372bec4c0
parentca81c33e14219adbf90af3894e05f69bb85774c8
QA: direct access from commandline to AppLayer API

This patch introduces a new set of commandline options meant for
assisting in fuzz testing the app layer implementations.

Per protocol, 2 commandline options are added:

--afl-http-request=<filename>
--afl-http=<filename>

In the former case, the contents of the file are passed directly to
the HTTP parser as request data.

In the latter case, the data is devided between request and responses.
First 64 bytes are request, then next 64 are response, next 64 are
request, etc, etc.
configure.ac
src/app-layer-htp.c
src/app-layer-modbus.c
src/app-layer-parser.c
src/app-layer-parser.h
src/suricata.c