org.owasp.webscarab.plugin.fuzz
Class FuzzerModel

java.lang.Object
  extended by org.owasp.webscarab.plugin.AbstractPluginModel
      extended by org.owasp.webscarab.plugin.fuzz.FuzzerModel

public class FuzzerModel
extends AbstractPluginModel

Author:
rogan

Field Summary
static java.lang.String PROPERTY_BUSYFUZZING
           
static java.lang.String PROPERTY_FUZZMETHOD
           
static java.lang.String PROPERTY_FUZZURL
           
static java.lang.String PROPERTY_FUZZVERSION
           
static java.lang.String PROPERTY_REQUESTINDEX
           
static java.lang.String PROPERTY_TOTALREQUESTS
           
 
Fields inherited from class org.owasp.webscarab.plugin.AbstractPluginModel
_changeSupport, PROPERTY_BUSY, PROPERTY_MODIFIED, PROPERTY_RUNNING, PROPERTY_STATUS, PROPERTY_STOPPING
 
Constructor Summary
FuzzerModel(FrameworkModel model)
          Creates a new instance of FuzzerModel
 
Method Summary
 void addChecksum(HttpUrl url, java.lang.String checksum)
           
 void addConversation(ConversationID id)
           
 void addFuzzHeader(int index, NamedValue header)
           
 void addFuzzParameter(int index, Parameter parameter, FuzzSource fuzzSource, int priority)
           
 void addModelListener(FuzzerListener listener)
           
 void addSignature(Signature signature)
           
protected  void fireFuzzHeaderAdded(int index)
          tells listeners that a header has been added
protected  void fireFuzzHeaderChanged(int index)
          tells listeners that a header has been removed
protected  void fireFuzzHeaderRemoved(int index)
          tells listeners that a header has been removed
protected  void fireFuzzParameterAdded(int index)
          tells listeners that a parameter has been added
protected  void fireFuzzParameterChanged(int index)
          tells listeners that a parameter has been added
protected  void fireFuzzParameterRemoved(int index)
          tells listeners that a parameter has been added
 java.lang.String getChecksum(HttpUrl url, int index)
           
 int getChecksumCount(HttpUrl url)
           
 ConversationModel getConversationModel()
           
 NamedValue getFuzzHeader(int position)
           
 int getFuzzHeaderCount()
           
 java.lang.String getFuzzMethod()
           
 Parameter getFuzzParameter(int index)
           
 int getFuzzParameterCount()
           
 int getFuzzParameterPriority(int index)
           
 java.lang.Object getFuzzParameterValue(int index)
           
 java.lang.String getFuzzUrl()
           
 java.lang.String getFuzzVersion()
           
 FuzzSource getParameterFuzzSource(int index)
           
 int getRequestIndex()
           
 Signature getSignature(HttpUrl url, int index)
           
 int getSignatureCount(HttpUrl url)
           
 int getTotalRequests()
           
 boolean incrementFuzzer()
           
 boolean isBusyFuzzing()
           
 void removeFuzzHeader(int index)
           
 void removeFuzzParameter(int index)
           
 void removeModelListener(FuzzerListener listener)
           
 void resetFuzzer()
           
 void setBusyFuzzing(boolean busy)
           
 void setFuzzHeader(int index, NamedValue header)
           
 void setFuzzMethod(java.lang.String method)
           
 void setFuzzParameter(int index, Parameter parameter, FuzzSource fuzzSource, int priority)
           
 void setFuzzUrl(java.lang.String url)
           
 void setFuzzVersion(java.lang.String version)
           
 
Methods inherited from class org.owasp.webscarab.plugin.AbstractPluginModel
addPropertyChangeListener, addPropertyChangeListener, getStatus, isBusy, isModified, isRunning, isStopping, removePropertyChangeListener, removePropertyChangeListener, setBusy, setModified, setRunning, setStatus, setStopping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_FUZZMETHOD

public static final java.lang.String PROPERTY_FUZZMETHOD
See Also:
Constant Field Values

PROPERTY_FUZZURL

public static final java.lang.String PROPERTY_FUZZURL
See Also:
Constant Field Values

PROPERTY_FUZZVERSION

public static final java.lang.String PROPERTY_FUZZVERSION
See Also:
Constant Field Values

PROPERTY_REQUESTINDEX

public static final java.lang.String PROPERTY_REQUESTINDEX
See Also:
Constant Field Values

PROPERTY_TOTALREQUESTS

public static final java.lang.String PROPERTY_TOTALREQUESTS
See Also:
Constant Field Values

PROPERTY_BUSYFUZZING

public static final java.lang.String PROPERTY_BUSYFUZZING
See Also:
Constant Field Values
Constructor Detail

FuzzerModel

public FuzzerModel(FrameworkModel model)
Creates a new instance of FuzzerModel

Method Detail

getConversationModel

public ConversationModel getConversationModel()

addConversation

public void addConversation(ConversationID id)

setFuzzMethod

public void setFuzzMethod(java.lang.String method)

getFuzzMethod

public java.lang.String getFuzzMethod()

setFuzzUrl

public void setFuzzUrl(java.lang.String url)

getFuzzUrl

public java.lang.String getFuzzUrl()

setFuzzVersion

public void setFuzzVersion(java.lang.String version)

getFuzzVersion

public java.lang.String getFuzzVersion()

setBusyFuzzing

public void setBusyFuzzing(boolean busy)

isBusyFuzzing

public boolean isBusyFuzzing()

getFuzzHeaderCount

public int getFuzzHeaderCount()

addFuzzHeader

public void addFuzzHeader(int index,
                          NamedValue header)

setFuzzHeader

public void setFuzzHeader(int index,
                          NamedValue header)

removeFuzzHeader

public void removeFuzzHeader(int index)

getFuzzHeader

public NamedValue getFuzzHeader(int position)

getFuzzParameterCount

public int getFuzzParameterCount()

addFuzzParameter

public void addFuzzParameter(int index,
                             Parameter parameter,
                             FuzzSource fuzzSource,
                             int priority)

setFuzzParameter

public void setFuzzParameter(int index,
                             Parameter parameter,
                             FuzzSource fuzzSource,
                             int priority)

removeFuzzParameter

public void removeFuzzParameter(int index)

getFuzzParameter

public Parameter getFuzzParameter(int index)

getParameterFuzzSource

public FuzzSource getParameterFuzzSource(int index)

getFuzzParameterPriority

public int getFuzzParameterPriority(int index)

getFuzzParameterValue

public java.lang.Object getFuzzParameterValue(int index)

resetFuzzer

public void resetFuzzer()

incrementFuzzer

public boolean incrementFuzzer()

getRequestIndex

public int getRequestIndex()

getTotalRequests

public int getTotalRequests()

addSignature

public void addSignature(Signature signature)

getSignatureCount

public int getSignatureCount(HttpUrl url)

getSignature

public Signature getSignature(HttpUrl url,
                              int index)

addChecksum

public void addChecksum(HttpUrl url,
                        java.lang.String checksum)

getChecksumCount

public int getChecksumCount(HttpUrl url)

getChecksum

public java.lang.String getChecksum(HttpUrl url,
                                    int index)

addModelListener

public void addModelListener(FuzzerListener listener)

removeModelListener

public void removeModelListener(FuzzerListener listener)

fireFuzzHeaderAdded

protected void fireFuzzHeaderAdded(int index)
tells listeners that a header has been added

Parameters:
url - the url

fireFuzzHeaderChanged

protected void fireFuzzHeaderChanged(int index)
tells listeners that a header has been removed

Parameters:
url - the url

fireFuzzHeaderRemoved

protected void fireFuzzHeaderRemoved(int index)
tells listeners that a header has been removed

Parameters:
url - the url

fireFuzzParameterAdded

protected void fireFuzzParameterAdded(int index)
tells listeners that a parameter has been added

Parameters:
url - the url

fireFuzzParameterChanged

protected void fireFuzzParameterChanged(int index)
tells listeners that a parameter has been added

Parameters:
url - the url

fireFuzzParameterRemoved

protected void fireFuzzParameterRemoved(int index)
tells listeners that a parameter has been added

Parameters:
url - the url