We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28bc001 commit 5f87918Copy full SHA for 5f87918
1 file changed
nxc/helpers/pfx.py
@@ -69,6 +69,8 @@
69
70
from impacket.krb5.ccache import CCache as impacket_CCache
71
72
+from nxc.paths import NXC_PATH
73
+
74
75
class myPKINIT(PKINIT):
76
"""
@@ -501,7 +503,7 @@ def pfx_auth(self):
501
503
return None
502
504
505
username = self.args.username[0]
- log_ccache = os.path.expanduser(f"~/.nxc/logs/{self.hostname}_{self.host}_{datetime.datetime.now().strftime('%Y-%m-%d_%H%M%S')}-{username}.ccache".replace(":", "-"))
506
+ log_ccache = os.path.expanduser(f"{NXC_PATH}/logs/{self.hostname}_{self.host}_{datetime.datetime.now().strftime('%Y-%m-%d_%H%M%S')}-{username}.ccache".replace(":", "-"))
507
508
# Request a TGT with the cert data
509
req = ini.build_asreq(self.domain, username)
0 commit comments