CTF in git leak topic

Good article: https: //www.cnblogs.com/iamstudy/articles/wangding_4th_game_web_writeup.html

Net Ding comment Cup title

https://blog.csdn.net/qq_35078631/article/details/77777416

sniperOJ 2018 title

More than two questions involve disclosure and git git recovery

ok

As used herein Wang Hang Gangster git script

https://github.com/wangyihang/githacker

git clone https://github.com/wangyihang/githacker

Then cd into python githacker.py 127.0.0.1:8307/.git/

Then there will be a directory folder

 

Not commit or hidden files can be restored

git log --reflog
git reset --hard af36ba2d86ee43cde7b95db513906975cb8ece03


First git log --reflog look suspicious files and then restore him

Method Two

git stash list | tee
git stash pop # 或者使用 git stash apply

 

Guess you like

Origin www.cnblogs.com/Tkitn/p/11648456.html