Add filter for URL

parent 31b96518
import httpClient
import htmlparser
import xmltree
from strutils import intToStr, repeat, split, startsWith, replace, contains
from strutils import intToStr, repeat, split, startsWith, endsWith, replace, contains
from uri import encodeURL, decodeURL
from os import paramCount, paramStr, getCurrentDir, existsDir, createDir, getHomeDir
......@@ -142,7 +142,9 @@ proc getResult(resp: Response) =
cacheURL: tmpCacheURL,
)
allDorkResults.add(dorkResult)
# Filter: Only use URL with file
if dorkResult.realURL.endsWith(".pdf"):
allDorkResults.add(dorkResult)
proc basicSearch(domain, extension, query: string) =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment