bradfitz / gitbrute Goto Github PK
View Code? Open in Web Editor NEWbrute-force a git commit hash
brute-force a git commit hash
See line
Line 117 in 1337000
This replaces the timestamps as decimal strings directly. If the number of digits in the unix timestamp changes during the brute-force attempt, this will incorrectly replace the string.
This is a minor issue, as it will only occur pre 2002 or in 2286. This would be especially applicable to #5 if git had been created back then.
Thoughts about sigining gitbruted commit?
This means that it checks defaults and error conditions causing it to either fail itself or making gitbrute fail to generate the correct commit.
Examples:
cmd.Stderr = os.Stderr
line for the last bit)I suggest using git hash-object -t commit -w --no-filters --stdin
to create the commit object.
Then git update-ref refs/heads/gitbrute deadbeef26024c00b62f744f9dc0418c4ccd49b1 0000000000000000000000000000000000000000
to create a new branch (or error).
The first command generally never fails.
The second command will fail if the branch exists and you give it the zeros, but the commit still exists in the repository even then and the user can see it with git log deadbeef
This doesn't touch the work tree so it even works on a bare repository. Because of this you may also want to checkout the new branch afterwards. If you don't want to create a branch or it fails you can checkout the detached HEAD instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.