FuzzingEngine
Class StringForFuzzing
java.lang.Object
FuzzingEngine.StringForFuzzing
public class StringForFuzzing
- extends java.lang.Object
This class is used to store string which are to be fuzzed.
Each string string is stored in its original format, and the generic
format generated from the sequence alignment. It is also associated with
a particular state.
- Author:
- Serge Gorbunov
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringForFuzzing
public StringForFuzzing(GenericSequence seq)
fuzzGenericMsg
public FuzzingFunctionReturnPair fuzzGenericMsg(java.util.ArrayList<java.lang.Integer> origMsg,
FSAutomaton automaton,
int currentStateID)
- Parameters:
origMsg
- The original input message receivedautomaton
- The protocol's FSAcurrentStateID
- The current state of the fuzzing engine
- Returns:
- A pair of the modified message with the new state. Returns null if the fuzzing
is complete or all fuzzing function have been applied.
getGenSequence
public GenericSequence getGenSequence()
getNextFuzzingFuncIndex
public int getNextFuzzingFuncIndex()
- Returns the current index of the next fuzzing function
getTotalNumberOfFuzzingFuncs
public int getTotalNumberOfFuzzingFuncs()
- Returns the total number of available fuzzing functions