I'm pentesting a git server currently, and I'm trying to figure out how to modify pack files. I have my git requests running through Burp proxy, however, I'm unsure how to tamper with the pack files I see being sent to the git-receive-pack endpoint. Are there any good tools for making simple modifications to pack files, such as changing the name and path of the file being uploaded?
I've found lots of documentation on pack file and the commands for manipulating them via the git CLI. The issue, however, is that I want to create pack files that are malformed, which git does not allow. I've also found Dulwich, but the docs don't seem to be great and I can't find any examples anywhere near what I want to do.
Any suggestions on how to modify these pack files would be incredibly useful.