Package org.owasp.webscarab.plugin.fuzz

Examples of org.owasp.webscarab.plugin.fuzz.Parameter


    private void addParameterButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addParameterButtonActionPerformed
        int row = paramTable.getSelectedRow();
        if (row == -1) {
            row = paramTable.getRowCount();
        }
        _model.addFuzzParameter(row, new Parameter(Parameter.LOCATION_QUERY, "v"+row, "String", "a" + row), null, 0);
    }//GEN-LAST:event_addParameterButtonActionPerformed
View Full Code Here


        public int getRowCount() {
            return _model.getFuzzParameterCount();
        }
       
        public Object getValueAt(int rowIndex, int columnIndex) {
            Parameter param = _model.getFuzzParameter(rowIndex);
            if (param == null) return "null";
            switch (columnIndex) {
                case 0: return param.getLocation();
                case 1: return param.getName();
                case 2: return param.getType();
                case 3: return param.getValue();
                case 4: return new Integer(_model.getFuzzParameterPriority(rowIndex));
                case 5:
                    FuzzSource source = _model.getParameterFuzzSource(rowIndex);
                    if (source != null) {
                        return source.getDescription();
View Full Code Here

        public boolean isCellEditable(int rowIndex, int ColumnIndex) {
            return true;
        }
       
        public void setValueAt(Object aValue, int rowIndex, int colIndex) {
            Parameter parameter = _model.getFuzzParameter(rowIndex);
            Object defValue = parameter.getValue();
            int priority = _model.getFuzzParameterPriority(rowIndex);
            FuzzSource source = _model.getParameterFuzzSource(rowIndex);
            switch (colIndex) {
                case 0: parameter = new Parameter((String) aValue, parameter.getName(), parameter.getType(), defValue); break;
                case 1: parameter = new Parameter(parameter.getLocation(), (String) aValue, parameter.getType(), defValue); break;
                case 2: parameter = new Parameter(parameter.getLocation(), parameter.getName(), (String) aValue, defValue); break;
                case 3: parameter = new Parameter(parameter.getLocation(), parameter.getName(), parameter.getType(), aValue); break;
                case 4: priority = Integer.parseInt(aValue.toString()); break;
                case 5: source = _fuzzFactory.getSource((String) aValue); break;
            }
            _model.setFuzzParameter(rowIndex, parameter, source, priority);
        }
View Full Code Here

    private void addParameterButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addParameterButtonActionPerformed
        int row = paramTable.getSelectedRow();
        if (row == -1) {
            row = paramTable.getRowCount();
        }
        _model.addFuzzParameter(row, new Parameter(Parameter.LOCATION_QUERY, "v"+row, "String", "a" + row), null, 0);
    }//GEN-LAST:event_addParameterButtonActionPerformed
View Full Code Here

        public int getRowCount() {
            return _model.getFuzzParameterCount();
        }
       
        public Object getValueAt(int rowIndex, int columnIndex) {
            Parameter param = _model.getFuzzParameter(rowIndex);
            if (param == null) return "null";
            switch (columnIndex) {
                case 0: return param.getLocation();
                case 1: return param.getName();
                case 2: return param.getType();
                case 3: return param.getValue();
                case 4: return new Integer(_model.getFuzzParameterPriority(rowIndex));
                case 5:
                    FuzzSource source = _model.getParameterFuzzSource(rowIndex);
                    if (source != null) {
                        return source.getDescription();
View Full Code Here

        public boolean isCellEditable(int rowIndex, int ColumnIndex) {
            return true;
        }
       
        public void setValueAt(Object aValue, int rowIndex, int colIndex) {
            Parameter parameter = _model.getFuzzParameter(rowIndex);
            Object defValue = parameter.getValue();
            int priority = _model.getFuzzParameterPriority(rowIndex);
            FuzzSource source = _model.getParameterFuzzSource(rowIndex);
            switch (colIndex) {
                case 0: parameter = new Parameter((String) aValue, parameter.getName(), parameter.getType(), defValue); break;
                case 1: parameter = new Parameter(parameter.getLocation(), (String) aValue, parameter.getType(), defValue); break;
                case 2: parameter = new Parameter(parameter.getLocation(), parameter.getName(), (String) aValue, defValue); break;
                case 3: parameter = new Parameter(parameter.getLocation(), parameter.getName(), parameter.getType(), aValue); break;
                case 4: priority = Integer.parseInt(aValue.toString()); break;
                case 5: source = _fuzzFactory.getSource((String) aValue); break;
            }
            _model.setFuzzParameter(rowIndex, parameter, source, priority);
        }
View Full Code Here

TOP

Related Classes of org.owasp.webscarab.plugin.fuzz.Parameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.