-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Moving from threads to asyncio #643
Comments
Should we fully stop using threads and turn into async, or support both? |
And the fact that it will be really hard to can control the speed if we use asyncio |
it is possible to mix asyncio with threads, using the proper asyncio executor: |
@maurosoria I actually have a lot of experience moving code over to asyncio. One thing to keep in mind is it can grow legs really quickly and get complex. Do you have a suggestion on where would be a good section to pull off and move over to asyncio. I would expect to use aiohttp instead of request though, so you get the true benefit of asyncio. Anyways, thought I would reach out and see if you wall were still moving forward with this, if so if you needed some help. |
Hello @dbfreem ! I am very grateful for your interest ! IMO Fuzzer class is the best candidate for starting to move code. You can rewrite that class, create a super class BaseFuzzer, and just move the old class to a subclass (e.g. TheadingFuzzer) and you can write another (eg. AsyncioFuzzer). In that way we can write universal unit tests for both fuzzers (and make other ones in the future!). the other candidate (which I'm also looking forward to doing that) is the Controller class. But, in that case, is much more complex because you need to completely rewrite everything (report writing, user input, etc). If you are really into this please do not hesitate in use this or another communication method you prefer (like twitter!) |
Hey @maurosoria that sounds like a great plan. I plan on working on this over the holidays, so I will keep you up to date on the progress. |
Following |
Hello! Any news about this ? |
No
…On Fri, Feb 2, 2024, 1:05 AM Mauro Soria ***@***.***> wrote:
Hello! Any news about this ?
—
Reply to this email directly, view it on GitHub
<#643 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR5BMYBGBR6EEJNX4ZAQ5PTYRPU7DAVCNFSM4UJ7WCNKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJSGIYDQMZYGA2A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hey what are you going to use asyncio and aiohttp or asyncio and httpx? or something else that i ignore? I think that with chatgpt help it won't need much to accomplish it :D |
Good question!
…On Thu, May 16, 2024, 2:52 AM DylanTiger ***@***.***> wrote:
Hey what are you going to use asyncio and aiohttp or asyncio and httpx? or
something else that i ignore? I think that with chatgpt help it won't need
much to accomplish it :D
—
Reply to this email directly, view it on GitHub
<#643 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR5BMYGLINVZYVHH2RTFWVDZCPG2XAVCNFSM4UJ7WCNKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJRGM2DONZTGUYQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Is there any progress on this project? |
Not yet |
Hey guys, I've submitted a draft PR to support asynchronous mode, testing and reviews are welcome. The speedup from using coroutines is significant, hopefully it can be merged into the master branch soon 😄 |
Hello folks,
I am opening this issue because I do not have the time to do it myself, but I really think that now is the momentot move from threads to an asyncio based application (at least for requests and some callbacks).
I planned from the beginning to do this, but back then asyncio wasn't widely supported by most of linux distros and wasn't as mature like it is today.
This is a very important step, because it would open the door to add extra scanning capabilities to dirsearch, that now seems very difficult with a normal thread scheme.
What is the feature?
Moving from a regular thread-based system to an asynchronous based requests system would improve the performance.
Take into consideration
Obviously, I will assist you if you want to cooperate in all I can, and I will review the code myself.
Thanks for cooperating, and spread the voice!
Regards,
Mauro
The text was updated successfully, but these errors were encountered: