mirror of
https://github.com/ffuf/ffuf
synced 2024-11-10 06:04:17 +00:00
Correctly add entries without extension identifier
This commit is contained in:
parent
4b0be687f2
commit
87c4e11674
1 changed files with 7 additions and 4 deletions
|
@ -78,13 +78,16 @@ func (w *WordlistInput) readFile(path string) error {
|
|||
contnt := strings.Replace(reader.Text(), "%EXT%", ext, -1)
|
||||
data = append(data, []byte(contnt))
|
||||
}
|
||||
}
|
||||
} else if len(w.config.Extensions) > 0 {
|
||||
for _, ext := range w.config.Extensions {
|
||||
data = append(data, []byte(reader.Text()+ext))
|
||||
} else {
|
||||
data = append(data, []byte(reader.Text()))
|
||||
}
|
||||
} else {
|
||||
data = append(data, []byte(reader.Text()))
|
||||
if len(w.config.Extensions) > 0 {
|
||||
for _, ext := range w.config.Extensions {
|
||||
data = append(data, []byte(reader.Text()+ext))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
w.data = data
|
||||
|
|
Loading…
Reference in a new issue