FuzzingEngine
Class StringForFuzzing

java.lang.Object
  extended by 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

Constructor Summary
StringForFuzzing(GenericSequence seq)
           
 
Method Summary
 FuzzingFunctionReturnPair fuzzGenericMsg(java.util.ArrayList<java.lang.Integer> origMsg, FSAutomaton automaton, int currentStateID)
           
 GenericSequence getGenSequence()
           
 int getNextFuzzingFuncIndex()
          Returns the current index of the next fuzzing function
 int getTotalNumberOfFuzzingFuncs()
          Returns the total number of available fuzzing functions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringForFuzzing

public StringForFuzzing(GenericSequence seq)
Method Detail

fuzzGenericMsg

public FuzzingFunctionReturnPair fuzzGenericMsg(java.util.ArrayList<java.lang.Integer> origMsg,
                                                FSAutomaton automaton,
                                                int currentStateID)
Parameters:
origMsg - The original input message received
automaton - The protocol's FSA
currentStateID - 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