Commit 1afc5e63 authored by dmknght's avatar dmknght

Add handler for / at the end of line

parent 2d2f24d9
import .. / modules / cli / options
import .. / modules / cores / connection
import threadpool
import httpclient
import strutils
let allOptions = getOptions()
if not allOptions.paramError:
discard # TODO handle here
\ No newline at end of file
var client = newHttpClient()
for line in lines(allOptions.wordlist):
let fullURL = allOptions.url & line
# TODO handle / at end of line here
spawn checkBranch(client, line, fullURL)
if not line.endsWith("/"): # and option
spawn checkBranch(client, line & "/", fullURL)
client.close()
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