primitives Package¶
primitives
Package¶
base
Module¶
-
class
sulley.primitives.base.
base
[source]¶ Bases:
object
The primitive base class implements common functionality shared across most primitives.
Most of these methods get overridden in their respective classes anyway.
-
mutate
()[source]¶ Mutate the primitive by stepping through the fuzz library, return False on completion.
Iterates until the mutant_index == self.num_mutation()
Return type: Boolean Returns: True on success, False otherwise.
-
bit_field
Module¶
-
class
sulley.primitives.bit_field.
bit_field
(value, width, max_num=None, endian='<', format='binary', signed=False, full_range=False, fuzzable=True, name=None)[source]¶ Bases:
sulley.primitives.base.base
-
add_integer_boundaries
(integer)[source]¶ Add the supplied integer and border cases to the integer fuzz heuristics library.
Parameters: integer (Int) – Integer to append to fuzz heuristics
-
byte
Module¶
delim
Module¶
-
class
sulley.primitives.delim.
delim
(value, fuzzable=True, name=None)[source]¶ Bases:
sulley.primitives.base.base
group
Module¶
-
class
sulley.primitives.group.
group
(name, values)[source]¶ Bases:
sulley.primitives.base.base
qword
Module¶
random_data
Module¶
-
class
sulley.primitives.random_data.
random_data
(value, min_length, max_length, max_mutations=25, fuzzable=True, step=None, name=None)[source]¶ Bases:
sulley.primitives.base.base
static
Module¶
string
Module¶
-
class
sulley.primitives.string.
string
(value, size=-1, padding='x00', encoding='ascii', fuzzable=True, max_len=0, name=None)[source]¶ Bases:
sulley.primitives.base.base
-
add_long_strings
(sequence)[source]¶ Given a sequence, generate a number of selectively chosen strings lengths of the given sequence and add to the string heuristic library.
@type sequence: String @param sequence: Sequence to repeat for creation of fuzz strings.
-
fuzz_library
= []¶
-
mutate
()[source]¶ Mutate the primitive by stepping through the fuzz library extended with the “this” library, return False on completion.
Return type: Boolean Returns: True on success, False otherwise.
-