Update random seed logic (#262)
* Update util.go * Update job.go rand.Seed updated just before usage * Update util.go revert * Updated CHANGELOG.MD with a description of the bug fix. Co-authored-by: Joona Hoikkala <joohoi@users.noreply.github.com>
This commit is contained in:
parent
27fcbee730
commit
9bb613050e
@ -9,6 +9,7 @@
|
|||||||
- Added support to output "all" formats (specify the path/filename sans file extension and ffuf will add the appropriate suffix for the filetype)
|
- Added support to output "all" formats (specify the path/filename sans file extension and ffuf will add the appropriate suffix for the filetype)
|
||||||
|
|
||||||
- Changed
|
- Changed
|
||||||
|
- Fixed a bug related to the autocalibration feature making the random seed initialization also to take place before autocalibration needs it.
|
||||||
- Added tls renegotiation flag to fix #193 in http.Client
|
- Added tls renegotiation flag to fix #193 in http.Client
|
||||||
- Fixed HTML report to display select/combo-box for rows per page (and increased default from 10 to 250 rows).
|
- Fixed HTML report to display select/combo-box for rows per page (and increased default from 10 to 250 rows).
|
||||||
- Added Host information to JSON output file
|
- Added Host information to JSON output file
|
||||||
|
|||||||
@ -331,6 +331,7 @@ func (j *Job) handleRecursionJob(resp Response) {
|
|||||||
//CalibrateResponses returns slice of Responses for randomly generated filter autocalibration requests
|
//CalibrateResponses returns slice of Responses for randomly generated filter autocalibration requests
|
||||||
func (j *Job) CalibrateResponses() ([]Response, error) {
|
func (j *Job) CalibrateResponses() ([]Response, error) {
|
||||||
cInputs := make([]string, 0)
|
cInputs := make([]string, 0)
|
||||||
|
rand.Seed(time.Now().UnixNano())
|
||||||
if len(j.Config.AutoCalibrationStrings) < 1 {
|
if len(j.Config.AutoCalibrationStrings) < 1 {
|
||||||
cInputs = append(cInputs, "admin"+RandomString(16)+"/")
|
cInputs = append(cInputs, "admin"+RandomString(16)+"/")
|
||||||
cInputs = append(cInputs, ".htaccess"+RandomString(16))
|
cInputs = append(cInputs, ".htaccess"+RandomString(16))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user