Source:
public BruteForce( ScanTarget target, File file, BruteForceListenner listenner, BruteForceParam bruteForceParam) { this.target = target; this.file = file; this.directory = null; this.listenner = listenner; this.threads = bruteForceParam.getThreadPerScan(); this.recursive = bruteForceParam.getRecursive(); this.onlyUnderDirectory = false; this.tableModel = new BruteForceTableModel(); if (log.isDebugEnabled()) { log.debug("BruteForce : " + target.getURI() + "/" + directory + " threads: " + threads); } manager = new DirBusterManager(this); manager.setDefaultNoThreads(threads); ConnectionParam conParam = Model.getSingleton().getOptionsParam().getConnectionParam(); if (conParam.isUseProxy(target.getHost())) { manager.setProxyRealm( Model.getSingleton() .getOptionsParam() .getConnectionParam() .getProxyChainRealm()); manager.setProxyHost(conParam.getProxyChainName()); manager.setProxyPort(conParam.getProxyChainPort()); manager.setProxyUsername(conParam.getProxyChainUserName()); manager.setProxyPassword(conParam.getProxyChainPassword()); manager.setUseProxy(true); manager.setUseProxyAuth(true); log.debug( "BruteForce : set proxy to " + manager.getProxyHost() + ":" + manager.getProxyPort()); } if (bruteForceParam.isBrowseFiles()) { extensions = bruteForceParam.getFileExtensionsList(); if (bruteForceParam.isBrowseFilesWithoutExtension()) { extensions.add(ExtToCheck.BLANK_EXT); } } else if (bruteForceParam.isBrowseFilesWithoutExtension()) { extensions = new ArrayList<>(); extensions.add(ExtToCheck.BLANK_EXT); } else { extensions = Collections.emptyList(); } manager.extsToMiss.addAll(bruteForceParam.getExtensionsToMissSet()); }

Target:
public BruteForce( ScanTarget target, File file, BruteForceListenner listenner, BruteForceParam bruteForceParam) { this.target = target; this.file = file; this.directory = null; this.listenner = listenner; this.threads = bruteForceParam.getThreadPerScan(); this.recursive = bruteForceParam.getRecursive(); this.onlyUnderDirectory = false; this.tableModel = new BruteForceTableModel(); if (log.isDebugEnabled()) { log.debug("BruteForce : " + target.getURI() + "/" + directory + " threads: " + threads); } manager = new DirBusterManager(this); manager.setDefaultNoThreads(threads); ConnectionParam conParam = Model.getSingleton().getOptionsParam().getConnectionParam(); if (conParam.isUseProxy(target.getHost())) { manager.setProxyRealm( Model.getSingleton() .getOptionsParam() .getConnectionParam() .getProxyChainRealm()); manager.setProxyHost(conParam.getProxyChainName()); manager.setProxyPort(conParam.getProxyChainPort()); manager.setProxyUsername(conParam.getProxyChainUserName()); manager.setProxyPassword(conParam.getProxyChainPassword()); manager.setUseProxy(true); manager.setUseProxyAuth(true); log.debug( "BruteForce : set proxy to " + manager.getProxyHost() + ":" + manager.getProxyPort()); } if (bruteForceParam.isBrowseFiles()) { extensions = bruteForceParam.getFileExtensionsList(); if (bruteForceParam.isBrowseFilesWithoutExtension()) { List<String> listOfExtensions = new ArrayList<>(); listOfExtensions.add(ExtToCheck.BLANK_EXT); listOfExtensions.addAll(extensions); extensions = listOfExtensions; } } else if (bruteForceParam.isBrowseFilesWithoutExtension()) { extensions = Arrays.asList(ExtToCheck.BLANK_EXT); } else { extensions = Collections.emptyList(); } manager.extsToMiss.addAll(bruteForceParam.getExtensionsToMissSet()); }