Package org.owasp.webscarab.model

Examples of org.owasp.webscarab.model.ConversationID


                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


    Date date = getConversationDate(conversation);
    Transition transition = new Transition(conversation, date, tokenName,
        tokenValue, identity);
    model.addTransition(transition);
    SortedMap<ConversationID, Transition> transitions = model.getTransitions(tokenName, tokenValue);
    ConversationID next = null;
    Iterator<ConversationID> it = transitions.keySet().iterator();
    while (it.hasNext()) {
      if (it.next().equals(conversation)) {
        if (it.hasNext())
          next = it.next();
        break;
      }
    }
    ConversationModel cm = framework.getModel().getConversationModel();
    int c = cm.getConversationCount();
    if (next == null)
      next = cm.getConversationAt(c - 1);
    for (int i = 0; i < c; i++) {
      ConversationID id = cm.getConversationAt(i);
      if (id.compareTo(conversation) >= 0) {
        // FIXME: When removing the identity, this should only take effect from the NEXT request.
        List<NamedValue> tokens = getRequestTokens(cm.getRequest(id));
        tokens.addAll(getResponseTokens(cm.getResponse(id)));
        for (NamedValue token : tokens) {
          if (token.getName().equals(tokenName) && token.getValue().equals(tokenValue)) {
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

    } catch (InterruptedException ie) {}
    FrameworkModel fm = framework.getModel();
    ConversationModel cm = fm.getConversationModel();
    int c = cm.getConversationCount();
    for (int i=0; i < c; i++) {
      ConversationID cid = cm.getConversationAt(i);
      Request req = cm.getRequest(cid);
      HttpUrl url = req.getURL();
      List<NamedValue> tokens = getRequestTokens(req);
      if (url.toString().endsWith("logout.php")) {
        String sessid = tokens.get(0).getValue();
View Full Code Here

        samlProxy.setSignSamlMessage(signSamlMessage);
    }//GEN-LAST:event_signCheckBoxItemStateChanged

    private void decryptButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_decryptButtonActionPerformed
        try {
            ConversationID id = (ConversationID) this.showConversationAction.getValue("CONVERSATION");
            String hexKey = this.attributeKeyTextField.getText();
            List samlAttributes = this.samlModel.getDecryptedAttributes(id, hexKey);
            this.encryptedAttributesTableModel.setAttributes(samlAttributes);
        } catch (Exception ex) {
            this.encryptedAttributesTableModel.resetAttributes();
View Full Code Here

          public void valueChanged(ListSelectionEvent e) {
            if (e.getValueIsAdjusting())
              return;
            int row = conversationTable.getSelectedRow();
            TableModel tm = conversationTable.getModel();
            ConversationID id = null;
            if (row > -1)
              id = (ConversationID) tm.getValueAt(row, 0); // UGLY
                                      // hack!
                                      // FIXME!!!!
            synchronized (_conversationActions) {
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

       
        requestComboBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                Object o = requestComboBox.getSelectedItem();
                if (o instanceof ConversationID) {
                    ConversationID id = (ConversationID) o;
                    Request r = _model.getRequest(id);
                    _requestPanel.setEditable(true);
                    _requestPanel.setRequest(r);
                    _responsePanel.setEditable(false);
                    _responsePanel.setResponse(null);
View Full Code Here

    public ConversationID findCorrespondingHTMLFormConversation(ConversationID samlId) {
        ConversationModel conversationModel = this.model.getConversationModel();
        HttpUrl samlHttpUrl = conversationModel.getRequestUrl(samlId);
        int samlConversationIndex = conversationModel.getIndexOfConversation(samlId);
        for (int conversationIndex = samlConversationIndex - 1; conversationIndex >= 0; conversationIndex--) {
            ConversationID id = conversationModel.getConversationAt(conversationIndex);
            Response response = conversationModel.getResponse(id);
            HttpUrl httpUrl = conversationModel.getRequestUrl(id);
            Object parsedContent = Parser.parse(httpUrl, response);
            if (null == parsedContent) {
                continue;
View Full Code Here

            public void mouseClicked(MouseEvent e) {
                if (e.getClickCount() == 2 && e.getButton() == MouseEvent.BUTTON1) {
                    int row = conversationTable.getSelectedRow();
                    row = _conversationSorter.modelIndex(row);
                    if (row >-1) {
                        ConversationID id = _conversationModel.getConversationAt(row);
                        _showConversationAction.putValue("CONVERSATION", id);
                        ActionEvent evt = new ActionEvent(conversationTable, 0, (String) _showConversationAction.getValue(Action.ACTION_COMMAND_KEY));
                        _showConversationAction.actionPerformed(evt);
                    }
                }
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.