FuzzingEngine
Class FuzzerMain

java.lang.Object
  extended by FuzzingEngine.FuzzerMain

public class FuzzerMain
extends java.lang.Object

This class is the main interface for the fuzzing engine. It keeps a local copy of the FSA to be fuzzed. It starts the fuzzing at the initial state; only the input messages can be fuzzed. It decides whether to modify the message or not based on the current state in the automaton and the current content of the message.

Author:
Serge Gorbunov

Constructor Summary
FuzzerMain(FSAutomaton automatonToFuzz, AbstractionFunct iabf, java.util.ArrayList<MessageTrace> traces, javax.swing.JTextArea fuzzArea)
           
 
Method Summary
 java.lang.String calculateCompletionPerc()
          This function iterates over all strings available for fuzzing and checks the number of fuzzing functions performed over the total number of available fuzzing functions
 java.lang.String fuzzMessage(java.lang.String msg)
          Modifies the message based on the current state in the automaton.
 FSAutomaton getAutomaton()
           
 void resetCurrentState()
          Resets the current fuzzing state to the initial state of the FSA built from the traffic
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuzzerMain

public FuzzerMain(FSAutomaton automatonToFuzz,
                  AbstractionFunct iabf,
                  java.util.ArrayList<MessageTrace> traces,
                  javax.swing.JTextArea fuzzArea)
Method Detail

fuzzMessage

public java.lang.String fuzzMessage(java.lang.String msg)
Modifies the message based on the current state in the automaton.

Parameters:
msg - Input message to be modified
Returns:
The modified message or null if no functions are active.

getAutomaton

public FSAutomaton getAutomaton()
Returns:
The automaton that will be fuzzed

calculateCompletionPerc

public java.lang.String calculateCompletionPerc()
This function iterates over all strings available for fuzzing and checks the number of fuzzing functions performed over the total number of available fuzzing functions


resetCurrentState

public void resetCurrentState()
Resets the current fuzzing state to the initial state of the FSA built from the traffic