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

Delay not working #163

Closed
BrosseauSylvain opened this issue Sep 5, 2024 · 5 comments
Closed

Delay not working #163

BrosseauSylvain opened this issue Sep 5, 2024 · 5 comments
Assignees

Comments

@BrosseauSylvain
Copy link

Problem
The -d option for delay is not working properly

$ echo https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/ | cariddi -d 2         
                 _     _     _ _ 
                (_)   | |   | (_)
   ___ __ _ _ __ _  __| | __| |_ 
  / __/ _` | '__| |/ _` |/ _` | |
 | (_| (_| | |  | | (_| | (_| | |
  \___\__,_|_|  |_|\__,_|\__,_|_| v1.3.5

 > github.com/edoardottt/cariddi
 > edoardoottavianelli.it
========================================
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/post?postId=2
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/post?postId=1
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/post?postId=3
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/post?postId=4
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/post?postId=5
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/resources/labheader/css/academyLabHeader.css
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/resources/labheader/js/labHeader.js
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/resources/images/blog.svg
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/image/blog/posts/26.jpg
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/resources/css/labsBlog.css
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/image/blog/posts/18.jpg
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/image/blog/posts/9.jpg
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/image/blog/posts/15.jpg
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/image/blog/posts/48.jpg
https://0a2500f1033d0c0e83370f0d005500fa.web-security-academy.net/resources/images/avatarDefault.svg

image
To Reproduce

echo $URL | cariddi -d 1000000000

Expected behavior

-d should ensure that a minimum delay is present between 2 requests as it prevent being blocked by a firewall rate limit.

@edoardottt
Copy link
Owner

Hi!
The delay is working fine, but cariddi is a multithreaded tool. You're setting a delay for each thread, but the threads are 20 by default. Try setting the concurrency to 1 (-c 1).
See also #155

@BrosseauSylvain
Copy link
Author

I've tested it on my localhost and it works just fine with -c 1.
But on my port swigger lab it doesn't work even with the -c 1 option.

@edoardottt
Copy link
Owner

Probably all the links you crawl are present on the main page. Recall that the delay option is not a rate limit, as explained also in the issue I linked.
cariddi uses colly under the hood and it doesn't have a rate limit option. If you want to contribute, just open a PR : )

@edoardottt edoardottt self-assigned this Sep 6, 2024
@BrosseauSylvain
Copy link
Author

Oh ok thank you for your answer ! I will maybe do it if I continue using cariddi as I've just discovered your tool.

@edoardottt
Copy link
Owner

Thanks @BrosseauSylvain, I'll close this issue for now.
For anything else just open another issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants