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

New Module: Gitdumper #2284

Merged
merged 11 commits into from
Feb 19, 2025

Conversation

domwhewell-sage
Copy link
Contributor

Ok this PR adds gitdumper as mentioned in #1707

Some features from githacker have been included in this module aswell

I have added the subsitution to the regex helper (I also added a function in gitdumper to regex in files / folders which may be useful to move to the helper)

The git module has been modified to emit CODE_REPOSITORY events.

gitdumper will then check if dir listing is enabled (And if so download it that way)

If not it uses a fuzzing list with common git file names and many common branch names, you can also fuzz tag names (Feature from githacker)

Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 92.07547% with 21 lines in your changes missing coverage. Please review.

Project coverage is 93%. Comparing base (dd546f6) to head (1903dc9).
Report is 98 commits behind head on dev.

Files with missing lines Patch % Lines
bbot/modules/gitdumper.py 89% 21 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             dev   #2284    +/-   ##
======================================
- Coverage     93%     93%    -0%     
======================================
  Files        378     380     +2     
  Lines      29363   29749   +386     
======================================
+ Hits       27156   27496   +340     
- Misses      2207    2253    +46     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheTechromancer
Copy link
Collaborator

Thanks for your work here @domwhewell-sage, things have been a little busy but I should be able to get to this next week.

@TheTechromancer TheTechromancer merged commit 4764d3b into blacklanternsecurity:dev Feb 19, 2025
13 of 14 checks passed
@domwhewell-sage domwhewell-sage deleted the gitdumper branch February 19, 2025 18:18
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