gakki429 / git_extract Goto Github PK
View Code? Open in Web Editor NEW提取远程 git 泄露或本地 git 的工具
提取远程 git 泄露或本地 git 的工具
[09:54:07] [] Analyze .git/HEAD
None
Traceback (most recent call last):
File "git_extract.py", line 300, in
Git.git_init()
File "git_extract.py", line 289, in git_init
self.git_head()
File "git_extract.py", line 167, in git_head
refs = re.findall(r'ref: (.)', head, re.M)
File "C:\Python\Python38\lib\re.py", line 241, in findall
return _compile(pattern, flags).findall(string)
TypeError: cannot use a string pattern on a bytes-like object
import chardet # modified
line 167: def git_head(self):
head = self.download_file('HEAD')
encode_type = chardet.detect(head) # modified
head = head.decode(encode_type['encoding']) # modified
貌似是python2 到python3的问题
python3 下urllib2被urllib.request 取代了
utils.py 中没改,python38下运行会有问题,替换完就好了
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.