MCPcopy Create free account
hub / github.com/echQoQ/RustSL / copyCert

Function copyCert

sign/sigthief.py:105–116  ·  view source on GitHub ↗
(exe)

Source from the content-addressed store, hash-verified

103
104
105def copyCert(exe):
106 flItms = gather_file_info_win(exe)
107
108 if flItms['CertLOC'] == 0 or flItms['CertSize'] == 0:
109 # not signed
110 print("Input file Not signed!")
111 sys.exit(-1)
112
113 with open(exe, 'rb') as f:
114 f.seek(flItms['CertLOC'], 0)
115 cert = f.read(flItms['CertSize'])
116 return cert
117
118
119def writeCert(cert, exe, output):

Callers 2

outputCertFunction · 0.85
sigthief.pyFile · 0.85

Calls 1

gather_file_info_winFunction · 0.85

Tested by

no test coverage detected