Correctly add entries without extension identifier
This commit is contained in:
parent
4b0be687f2
commit
87c4e11674
@ -78,13 +78,16 @@ func (w *WordlistInput) readFile(path string) error {
|
|||||||
contnt := strings.Replace(reader.Text(), "%EXT%", ext, -1)
|
contnt := strings.Replace(reader.Text(), "%EXT%", ext, -1)
|
||||||
data = append(data, []byte(contnt))
|
data = append(data, []byte(contnt))
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
} else if len(w.config.Extensions) > 0 {
|
data = append(data, []byte(reader.Text()))
|
||||||
for _, ext := range w.config.Extensions {
|
|
||||||
data = append(data, []byte(reader.Text()+ext))
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
data = append(data, []byte(reader.Text()))
|
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
|
w.data = data
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user