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

feat: Convert dpl4hydra from shell script to C for performance #982

Conversation

vschwaberow
Copy link

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.

- 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
@vschwaberow
Copy link
Author

Build with:

gcc -O3 -o dpl4hydra dpl4hydra.c -lcurl -lpthread

}

size_t write_callback(void *contents, size_t size, size_t nmemb, void *userp) {
size_t realsize = size * nmemb;
Copy link
Owner

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) {
Copy link
Owner

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);
Copy link
Owner

Choose a reason for hiding this comment

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

buffer overflow

@Logan0112
Copy link

Logan0112 commented Oct 7, 2024 via email

@vschwaberow
Copy link
Author

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?

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.

3 participants