FuzzingEngine
Class StringFuzzerEngine

java.lang.Object
  extended by FuzzingEngine.StringFuzzerEngine

public class StringFuzzerEngine
extends java.lang.Object


Constructor Summary
StringFuzzerEngine()
           
 
Method Summary
 FuzzingFunctionReturnPair fuzzMessage(GenericSequence genMsg, java.util.ArrayList<java.lang.Integer> origMsg, FSAutomaton automaton, int currentStateID)
          Modifies the message based on the currently active set of fuzzing functions.
 int getNextFuzzingFuncIndex()
          Returns the current index of the next fuzzing function
 int getTotalNumberOfFuzzingFuncs()
          Returns the total number of available fuzzing functions
 boolean loadFuzzingFunction()
          Loads the fuzzing functions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringFuzzerEngine

public StringFuzzerEngine()
Method Detail

fuzzMessage

public FuzzingFunctionReturnPair fuzzMessage(GenericSequence genMsg,
                                             java.util.ArrayList<java.lang.Integer> origMsg,
                                             FSAutomaton automaton,
                                             int currentStateID)
Modifies the message based on the currently active set of fuzzing functions.

Parameters:
genMsg - Generic input message
origMsg - The original input message
automaton - The protocol's FSA
currentStateID - The current state of the fuzzing engine
Returns:
A pair of a modified message with the new state in the FSA

loadFuzzingFunction

public boolean loadFuzzingFunction()
Loads the fuzzing functions

Returns:
True if the fuzzingSources.txt file was successfully parsed and the fuzzing functions extracted. False otherwise

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