Examples of HistoryReference


Examples of org.parosproxy.paros.model.HistoryReference

                if (obj.length != 1) {
                    return;
                }
               
                try {
                    HistoryReference ref = (HistoryReference) obj[0];
                    SiteNode siteNode = ref.getSiteNode();
                    extension.startScan(siteNode);
                } catch (Exception e1) {
                    extension.getView().showWarningDialog("Error getting History.");
                }
          }
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference

  }
 
  private void writeAlertToDB(Alert alert) throws HttpMalformedHeaderException, SQLException {

      TableAlert tableAlert = getModel().getDb().getTableAlert();
        HistoryReference ref = new HistoryReference(getModel().getSession(), HistoryReference.TYPE_SCANNER, alert.getMessage());
        RecordAlert recordAlert = tableAlert.write(
                recordScan.getScanId(), alert.getPluginId(), alert.getAlert(), alert.getRisk(), alert.getReliability(),
                alert.getDescription(), alert.getUri(), alert.getParam(), alert.getOtherInfo(), alert.getSolution(), alert.getReference(),
            ref.getHistoryId()
                );
       
        alert.setAlertId(recordAlert.getAlertId());
       
  }
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference

  private String getChildSuffix(SiteNode node, boolean performRecursiveCheck) {

    String resultSuffix = "";
    String suffix = null;
    SiteNode child = null;
        HistoryReference ref = null;
    HttpMessage msg = null;
    try {

      for (int i=0; i<staticSuffixList.length; i++) {
        suffix = staticSuffixList[i];
        for (int j=0; j<node.getChildCount(); j++) {
          child = (SiteNode) node.getChildAt(j);
                    ref = child.getHistoryReference();
          try {
              msg = ref.getHttpMessage();
                        if (msg.getRequestHeader().getURI().getPath().endsWith(suffix)) {
                  return suffix;
              }
          } catch (Exception e) {
          }
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference

    setAlert(alert);
  }

  public Alert(RecordAlert recordAlert) {
      this(recordAlert.getPluginId(), recordAlert.getRisk(), recordAlert.getReliability(), recordAlert.getAlert());
      HistoryReference ref = null;
        try {
            ref = new HistoryReference(recordAlert.getHistoryId());
            setDetail(recordAlert.getDescription(), recordAlert.getUri(), recordAlert.getParam(), recordAlert.getOtherInfo(), recordAlert.getSolution(), recordAlert.getReference(), ref.getHttpMessage());

        } catch (Exception e) {
        }
     
  }
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference

        super();
    }
   
   
    QueueItem(Session session, int historyType, HttpMessage msg) throws HttpMalformedHeaderException, SQLException {
        ref = new HistoryReference(session, historyType, msg);
    }
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference

            }
           

            // delete past reference in node
            while (node.getPastHistoryReference().size() > 0) {
                HistoryReference ref = (HistoryReference) node.getPastHistoryReference().get(0);
                ext.getHistoryList().removeElement(ref);
                ref.delete();
                node.getPastHistoryReference().remove(0);
            }
           
            map.removeNodeFromParent(node);
        }
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference

            ExtensionHistory ext = (ExtensionHistory) Control.getSingleton().getExtensionLoader().getExtension("ExtensionHistory");
            ext.getHistoryList().removeElement(node.getHistoryReference());

            // delete past reference in node
            while (node.getPastHistoryReference().size() > 0) {
                HistoryReference ref = (HistoryReference) node.getPastHistoryReference().get(0);
                ext.getHistoryList().removeElement(ref);
                node.getPastHistoryReference().remove(0);
            }
           
            map.removeNodeFromParent(node);
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference

        this.setActionCommand("");
       
        this.addActionListener(new java.awt.event.ActionListener() {

          public void actionPerformed(java.awt.event.ActionEvent e) {
                HistoryReference ref = null;
                if (lastInvoker == null) {
                    return;
                }
                if (lastInvoker.getName().equalsIgnoreCase("ListLog")) {
                    JList listLog = extension.getLogPanel().getListLog();
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference

//    always add to tree   
//    if (existing != null) {
//        return;
//    }
   
    HistoryReference historyRef = null;
        try {
            historyRef = new HistoryReference(getModel().getSession(), HistoryReference.TYPE_SPIDER, msg);
        } catch (Exception e) {}
        siteTree.addPath(historyRef, msg);

       
  }
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference

                   
              BufferedWriter fw = null;
                try {
                    fw = new BufferedWriter(new FileWriter(file, isAppend));
                  for (int i=0; i<obj.length; i++) {
                      HistoryReference ref = (HistoryReference) obj[i];
                      exportHistory(ref, fw);
                  }

                } catch (Exception e1) {
                    extension.getView().showWarningDialog("Error saving file to " + file.getAbsolutePath() + ".");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.