ProxyServer
Class ProxyDataManipulator

java.lang.Object
  extended by ProxyServer.ProxyDataManipulator

public class ProxyDataManipulator
extends java.lang.Object

This class provides functionality to manipulate Input/Output streams from the proxy server.


Constructor Summary
ProxyDataManipulator()
          The constructor
ProxyDataManipulator(javax.swing.JTextArea area, javax.swing.JTextArea fuzzArea)
           
 
Method Summary
 java.lang.String getCompletionStatus()
          Returns the completion %
 FuzzerMain getFuzzer()
          Returns the instance of the fuzzer object
 java.lang.Object[][] getFuzzingData()
           
 java.util.ArrayList<java.util.ArrayList<java.lang.Object>> getStateFuzzingData(FSAutomaton automaton, int stateID, java.util.ArrayList<java.util.ArrayList<java.lang.Object>> currentObjectSet, java.util.HashSet<java.lang.Integer> visitedStates)
           
 void initializerFuzzer(FSAutomaton in, AbstractionFunct abf)
           
 boolean isFuzzerInitialized()
           
 byte[] modifyMsg(byte[] input, int size, java.lang.String ip)
           
 boolean recordMsg(byte[] input, int size, java.lang.String ip)
          Extracts the message from the stream and records it in the protocol traces object
 void setDstIP(java.lang.String ip)
           
 void setTraces(java.util.ArrayList<MessageTrace> traces)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyDataManipulator

public ProxyDataManipulator()
The constructor


ProxyDataManipulator

public ProxyDataManipulator(javax.swing.JTextArea area,
                            javax.swing.JTextArea fuzzArea)
Method Detail

initializerFuzzer

public void initializerFuzzer(FSAutomaton in,
                              AbstractionFunct abf)

recordMsg

public boolean recordMsg(byte[] input,
                         int size,
                         java.lang.String ip)
                  throws java.io.IOException
Extracts the message from the stream and records it in the protocol traces object

Parameters:
input - Input byte array
Returns:
True if the input stream was successfully recorded
Throws:
java.io.IOException

setDstIP

public void setDstIP(java.lang.String ip)

modifyMsg

public byte[] modifyMsg(byte[] input,
                        int size,
                        java.lang.String ip)

setTraces

public void setTraces(java.util.ArrayList<MessageTrace> traces)

getFuzzingData

public java.lang.Object[][] getFuzzingData()
Returns:
The fuzzing data (ie, transition ID, Input Sym, Generic Message ) in a two-dimentional object form

getStateFuzzingData

public java.util.ArrayList<java.util.ArrayList<java.lang.Object>> getStateFuzzingData(FSAutomaton automaton,
                                                                                      int stateID,
                                                                                      java.util.ArrayList<java.util.ArrayList<java.lang.Object>> currentObjectSet,
                                                                                      java.util.HashSet<java.lang.Integer> visitedStates)

isFuzzerInitialized

public boolean isFuzzerInitialized()
Returns:
Returns true if the fuzzer was initialized, false otherwise

getCompletionStatus

public java.lang.String getCompletionStatus()
Returns the completion %


getFuzzer

public FuzzerMain getFuzzer()
Returns the instance of the fuzzer object