Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count also 429 response codes if -sa (stop on all error cases) is used #113

Merged
merged 4 commits into from Dec 20, 2019

Conversation

delic
Copy link
Contributor

@delic delic commented Nov 25, 2019

No description provided.

Copy link
Member

@joohoi joohoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall functionality looks good. The only concern I have is the threshold. I believe something really small would be more fitting. Like 20% or so.

README.md Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
pkg/ffuf/job.go Outdated
@@ -267,6 +284,11 @@ func (j *Job) CheckStop() {
}

}
if j.Config.StopOnAll && (float64(j.Count429)/float64(j.Counter) > 0.95) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could probably lower this threshold value a bit. If a service has rate limit of, let's say 1000 req / minute, the first 1000 would get through, and the errors would start accumulating after that. To hit this threshold in this scenario, there would have to be 20 001 429 responses after that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lowered to 20%

delic and others added 4 commits December 20, 2019 10:24
Co-Authored-By: Joona Hoikkala <joohoi@users.noreply.github.com>
Co-Authored-By: Joona Hoikkala <joohoi@users.noreply.github.com>
@joohoi
Copy link
Member

joohoi commented Dec 20, 2019

LGTM!

@joohoi joohoi merged commit 918d5dc into ffuf:master Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants