d4rckh / vaf

Vaf is a cross-platform very advanced and fast web fuzzer written in nim
GNU General Public License v3.0
312 stars 41 forks source link

Add Config File #8

Open d4rckh opened 3 years ago

d4rckh commented 3 years ago

as requested in https://github.com/d4rckh/vaf/issues/7

d4rckh commented 3 years ago

We should make it so users don't need to provide the ID in the config file and only the path, like this:

{
 "wordlists": ["/wordlist1", "/wordlist2"]
}
daanbreur commented 3 years ago

Yes sir! Im working on it. How do you select the default tho? just using a path? If so the data would be:

{
  "DefaultWordlist": "/usr/wordlists/wordlist1.txt",
  "Wordlists": [ "/usr/wordlists/wordlist1.txt", "/usr/wordlists/wordlist2.txt", "/usr/wordlists/wordlist3.txt"]
}
d4rckh commented 3 years ago

Yes sir! Im working on it. How do you select the default tho? just using a path? If so the data would be:

{
  "DefaultWordlist": "/usr/wordlists/wordlist1.txt",
  "Wordlists": [ "/usr/wordlists/wordlist1.txt", "/usr/wordlists/wordlist2.txt", "/usr/wordlists/wordlist3.txt"]
}

If there's only one element in the array, use that by default, otherwise ask for the number like 1-10

daanbreur commented 3 years ago

Guess we could do that. More like a number from 0 - length

d4rckh commented 3 years ago

Guess we could do that. More like a number from 0 - length

Yup