Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
packages
tools
goofileN
Commits
7a5cb925
Verified
Commit
7a5cb925
authored
Jun 02, 2020
by
Nong Hoang Tu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add filter for URL
parent
31b96518
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/goofileN.nim
src/goofileN.nim
+4
-2
No files found.
src/goofileN.nim
View file @
7a5cb925
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) =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment