Package org.zaproxy.zap.extension.ascan

Examples of org.zaproxy.zap.extension.ascan.ExtensionActiveScan


            // Start node is a leaf and isnt root or a top level app (eg www.example.com/app1)
            // Go up a level
            startNode = (SiteNode)startNode.getParent();
          }
     
      ExtensionActiveScan extAscan = (ExtensionActiveScan) Control.getSingleton().getExtensionLoader().getExtension(ExtensionActiveScan.NAME);
      if (extAscan == null) {
        logger.error("No active scanner");
        extension.notifyProgress(Progress.failed);
        return;
      } else {
        extension.notifyProgress(Progress.ascan);
        extAscan.startScan(startNode);
      }
   
      try {
         // Wait for the active scanner to complete
        while (extAscan.isScanning(startNode)) {
          sleep (500);
          if (this.stopAttack) {
            extAscan.stopScan(startNode);
          }
        }
      } catch (InterruptedException e) {
        // Ignore
      }
View Full Code Here


                return;
            }

            spider(startNode);
           
            ExtensionActiveScan extAscan = (ExtensionActiveScan) Control.getSingleton().getExtensionLoader().getExtension(ExtensionActiveScan.NAME);
            if (extAscan == null) {
                logger.error("No active scanner");
                extension.notifyProgress(Progress.FAILED);
            } else {
                extension.notifyProgress(Progress.ASCAN);
                extAscan.onHttpRequestSend(startNode.getHistoryReference().getHttpMessage());
            }

        } catch (Exception e) {
            logger.error(e.getMessage(), e);
            extension.notifyProgress(Progress.FAILED);
View Full Code Here

TOP

Related Classes of org.zaproxy.zap.extension.ascan.ExtensionActiveScan

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.