Syntax:
s_binary("default value",
, , )
Example:
s_binary("\xad 0x01 0x020x03 da be\x0a", name="crazy")
Generating Random Data
With Sulley it is easy to generate random chunks of data, using the s_random primitive.
This primitive will start with the default value, then generate from the minimum size to the
maximum size of random blocks of data. When it finishes, the default value will be presented.
If you want a fixed size of random data, then set min and max to the same value.
Syntax:
s_random("default raw value", "min", "max", , , mutations>)
NOTE Although min and max size are required arguments, if you want a
random size of random data for each request, then set the max size to ??“1.
Chapter 17: Intelligent Fuzzing with Sulley
445
PART IV
Example:
s_random("\xad 0x01 0x020x03 da be\x0a", 1, 7, name="nuts")
Strings and Delimiters
When you want to fuzz a string, use the s_string function.
Syntax:
s_string("default value", , , , , )
The first fuzz request will be the default value; then if the fuzzable argument is set (On
by default), the fuzzer will randomly fuzz that string. When finished fuzzing that string,
the default value will be sent thereafter.
Pages:
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786