Update certificates.py

This commit is contained in:
zblurx 2023-07-29 11:19:04 +02:00 committed by GitHub
parent 9edafa70e4
commit 653264670f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ class CertificatesTriage():
except Exception as e:
pass
self.db.add_certificate(guid=cert.filename, pfx_file_path=full_path, issuer=str(cert.cert.issuer.rfc4514_string()), subject=str(cert.cert.subject.rfc4514_string()), client_auth=cert.clientauth, pillaged_from_computer_ip=self.options.target_ip, pillaged_from_username=cert.user.username)
if not self.options.no_remoteops
if not self.options.no_remoteops:
for user in self.users:
if user.username == 'MACHINE$':
system_certificates = self.triage_system_certificates(user)
@ -740,4 +740,4 @@ class CertificatesTriage():
def is_certificate_guid(value: str):
guid = re.compile(r'^(\{{0,1}([0-9a-fA-F]{32})_([0-9a-fA-F]{8})-([0-9a-fA-F]{4})-([0-9a-fA-F]{4})-([0-9a-fA-F]{4})-([0-9a-fA-F]{12})\}{0,1})$')
return guid.match(value)
return guid.match(value)