-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: Convert dpl4hydra from shell script to C for performance #982
feat: Convert dpl4hydra from shell script to C for performance #982
Conversation
- Rewrite dpl4hydra.sh in C for improved performance and portability - Implement multi-threaded downloads for faster data retrieval - Add enhanced brand listing with pagination and search functionality - Improve error handling and memory management - Maintain original functionality while adding quality-of-life improvements
Build with:
|
} | ||
|
||
size_t write_callback(void *contents, size_t size, size_t nmemb, void *userp) { | ||
size_t realsize = size * nmemb; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused var
} | ||
|
||
while (fgets(line, sizeof(line), input)) { | ||
if (sscanf(line, "%[^,]", brand) == 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buffer overflow
free(brands); | ||
exit(1); | ||
} | ||
strcpy(prev_brand, brand); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buffer overflow
Muito bom...parabéns
Em seg., 7 de out. de 2024 07:39, van Hauser ***@***.***>
escreveu:
… ***@***.**** commented on this pull request.
------------------------------
In dpl4hydra.c
<#982 (comment)>
:
> + free(brands);
+ exit(1);
+ }
+ brands = temp;
+ }
+ brands[brand_count] = strdup(brand);
+ if (!brands[brand_count]) {
+ fprintf(stderr, "Error: Memory allocation failed for brand.\n");
+ fclose(input);
+ for (int i = 0; i < brand_count; i++) {
+ free(brands[i]);
+ }
+ free(brands);
+ exit(1);
+ }
+ strcpy(prev_brand, brand);
buffer overflow
—
Reply to this email directly, view it on GitHub
<#982 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3X6TY25HIWRKEUL42W3VRDZ2JXI5AVCNFSM6AAAAABPOC2RWOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNJRG4YDANJTGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I'm putting the finishing touches on an update, coming your way soon. Is there anything else you'd like me to consider? I'm curious - do you find this feature valuable and worthwhile? |
This commit significantly improves the functionality, performance, and user experience of the dpl4hydra tool, making it more efficient and easier to use for managing and generating default password lists.