Merge pull request #611 from cyian-1756/urlComments
Can now include comments in url files
This commit is contained in:
commit
b85e98536a
@ -221,9 +221,13 @@ public class App {
|
||||
String url;
|
||||
BufferedReader br = new BufferedReader(new FileReader(filename));
|
||||
while ((url = br.readLine()) != null) {
|
||||
// loop through each url in the file and proces each url individually.
|
||||
if (url.startsWith("//") || url.startsWith("#")) {
|
||||
logger.debug("Skipping over line \"" + url + "\"because it is a comment");
|
||||
} else {
|
||||
// loop through each url in the file and process each url individually.
|
||||
ripURL(url.trim(), cl.hasOption("n"));
|
||||
}
|
||||
}
|
||||
} catch (FileNotFoundException fne) {
|
||||
logger.error("[!] File containing list of URLs not found. Cannot continue.");
|
||||
} catch (IOException ioe) {
|
||||
|
Loading…
Reference in New Issue
Block a user