Package org.owasp.webscarab.model

Examples of org.owasp.webscarab.model.ConversationID


    }
   
    public void responseReceived(Response response) {
        String body = new String(response.getContent());
       
        ConversationID id = null;
        if (body != null && body.length() >= _model.getXSSTestString().length() &&
                body.indexOf(_model.getXSSTestString()) != -1) {
            _logger.info("XSS - Possibly Vulnerable: " + response.getRequest().getURL());
            id = _framework.addConversation(response.getRequest(), response, getPluginName());
            _model.setXSSVulnerable(id, response.getRequest().getURL());
View Full Code Here


            public String getColumnName() {
                return "SAML Type";
            }

            public Object getValue(Object key) {
                ConversationID conversationId = (ConversationID) key;
                return SamlPanel.this.samlModel.getSAMLType(
                        conversationId);
            }

            public Class getColumnClass() {
View Full Code Here

                if (e.getValueIsAdjusting()) {
                    return;
                }
                int row = SamlPanel.this.samlTable.getSelectedRow();
                TableModel tm = SamlPanel.this.samlTable.getModel();
                ConversationID id;
                if (row > -1) {
                    id = (ConversationID) tm.getValueAt(
                            row, 0); // UGLY hack! FIXME!!!!
                    SamlPanel.this.displaySaml(id);
                } else {
                    id = null;
                    SamlPanel.this.resetDisplay();
                }
                SamlPanel.this.showConversationAction.putValue("CONVERSATION", id);
                boolean samlResponse = SamlPanel.this.samlModel.isSAMLResponse(id);
                ConversationID samlResponseId;
                if (samlResponse) {
                    samlResponseId = id;
                } else {
                    samlResponseId = null;
                }
View Full Code Here

        String relayState = this.samlModel.getRelayState(id);
        this.relayStatePanel.setText(null, relayState);

        displaySignature(id);

        ConversationID htmlFormConversationID = this.samlModel.findCorrespondingHTMLFormConversation(id);
        if (null == htmlFormConversationID) {
            this.htmlFormConversationIdLabel.setText("Not found");
        } else {
            this.htmlFormConversationIdLabel.setText(htmlFormConversationID.toString());
            byte[] content = this.samlModel.getResponseContent(htmlFormConversationID);
            this.htmlFormTextPanel.setBytes("UTF-8", content);
            this.htmlFormXmlPanel.setBytes("text/html", content);
            this.browserPostSslCheckBox.setSelected(this.samlModel.isOverSSL(id));
            this.htmlFormSslCheckBox.setSelected(this.samlModel.isOverSSL(htmlFormConversationID));
View Full Code Here

     * returns a copy of the desired Request, or null if the id did not exist
     * @param id the numerical id of the request
     * @return a copy of the desired Request, or null if it did not exist
     */   
    public Request getRequest(int id) {
        return getRequest(new ConversationID(id));
    }
View Full Code Here

     * returns a copy of the desired Response, or null if the id did not exist
     * @param id the numerical id of the response
     * @return a copy of the desired Response, or null if it did not exist
     */   
    public Response getResponse(int id) {
        return getResponse(new ConversationID(id));
    }
View Full Code Here

     * @param id
     * @param property
     * @return
     */   
    public String getConversationProperty(int id, String property) {
        return getConversationProperty(new ConversationID(id), property);
    }
View Full Code Here

    public void setConversationProperty(ConversationID id, String property, String value) {
      _model.setConversationProperty(id, property, value);
    }
   
    public void setConversationProperty(int id, String property, String value) {
      _model.setConversationProperty(new ConversationID(id), property, value);
    }
View Full Code Here

        }
       
        public void actionPerformed(ActionEvent e) {
            Object o = getValue("CONVERSATION");
            if (o == null || ! (o instanceof ConversationID)) return;
            ConversationID id = (ConversationID) o;
            _fuzzer.loadTemplateFromConversation(id);
        }
View Full Code Here

    } catch (IOException ioe) {
      _logger.severe("Error getting socket input and output streams! "
          + ioe);
      return;
    }
    ConversationID id = null;
    try {
      Request request = null;
      // if we do not already have a base URL (i.e. we operate as a normal
      // proxy rather than a reverse proxy), check for a CONNECT
      if (_base == null) {
View Full Code Here

TOP

Related Classes of org.owasp.webscarab.model.ConversationID

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.