From 06d1c2b1408d75fabb4f9abb00cd39afa14746da Mon Sep 17 00:00:00 2001 From: Chris Allen Date: Mon, 29 Dec 2025 22:07:45 -0600 Subject: [PATCH] dcc-fuzz docs, dcc-tokens --- README-NIX.md | 3 +- src/fe-fuzz/dcc-tokens.txt | 89 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 src/fe-fuzz/dcc-tokens.txt diff --git a/README-NIX.md b/README-NIX.md index 0701daa1..753d0105 100644 --- a/README-NIX.md +++ b/README-NIX.md @@ -100,8 +100,9 @@ nix build .#fuzz-asan # Basic fuzzing (creates corpus automatically) ./result/bin/irssi-fuzz corpus/irssi-fuzz/ -# With dictionary (recommended for server-fuzz) +# With dictionary (recommended for server-fuzz and dcc-fuzz) ./result/bin/server-fuzz -dict=src/fe-fuzz/tokens.txt corpus/server-fuzz/ +./result/bin/dcc-fuzz -dict=src/fe-fuzz/dcc-tokens.txt corpus/dcc-fuzz/ # Limit number of runs ./result/bin/irssi-fuzz -runs=10000 corpus/irssi-fuzz/ diff --git a/src/fe-fuzz/dcc-tokens.txt b/src/fe-fuzz/dcc-tokens.txt new file mode 100644 index 00000000..b9a10f3b --- /dev/null +++ b/src/fe-fuzz/dcc-tokens.txt @@ -0,0 +1,89 @@ +# DCC protocol fuzzer dictionary +# DCC command types +"SEND" +"GET" +"CHAT" +"RESUME" +"ACCEPT" +"REJECT" +"SERVER" + +# DCC server protocol numbers +"100" +"101" +"110" +"120" +"121" + +# CTCP markers +"\x01" +"\x01DCC" +"\x01DCC SEND" +"\x01DCC CHAT" + +# Special IP values +"16843009" +"3232235777" +"127.0.0.1" +"::1" + +# Port values +"0" +"1234" +"6667" +"65535" + +# File sizes +"1" +"100" +"1000" +"4294967295" + +# Passive IDs +"42" +"63" + +# Delimiters and quoting +"\"" +" " +":" + +# Protocol prefixes +"DCC " +"CTCP_MESSAGE " +"CTCP_REPLY " +"ACTION " + +# DCC server flags +"+" +"-" +"s" +"c" +"f" +"S" +"C" +"F" +"+s" +"+c" +"+f" +"-s" +"-c" +"-f" + +# Common filename patterns +"test.txt" +"file.txt" +"\"file with spaces.txt\"" +"file_with_underscores.txt" + +# Chat argument +"chat" +"CHAT" + +# Query prefix for DCC chat +"=" + +# Common nicks +"nick" +"testnick" +"fuzzernick"