How to modify git pack files?

I am currently pentesting a git server, and I am trying to figure out how to modify package files. I have my git requests running through a Burp proxy, however I'm not sure how to modify the package files that I see are sent to the git -receive-pack endpoint. Are there any good tools for making simple changes to batch files, such as changing the name and path of the downloaded file?

I found documentation lots in the pack file and for managing them through the git CLI. The problem, however, is that I want to create folder files that have been garbled, which git does not allow. I also found Dulwich , but the docs seem to be small, and I cannot find any examples next to what I want to do.

Any suggestions for modifying these package files would be incredibly helpful.

+6
source share
1 answer

When it comes to sample packages, you can check out the package-related tests included in Git and see if you can extract your own (failed) packages from them.

For instance:

+3
source

All Articles