Skip to content

Commit 5f87918

Browse files
committed
Use NXC_PATH instead of hardcoded path
1 parent 28bc001 commit 5f87918

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nxc/helpers/pfx.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969

7070
from impacket.krb5.ccache import CCache as impacket_CCache
7171

72+
from nxc.paths import NXC_PATH
73+
7274

7375
class myPKINIT(PKINIT):
7476
"""
@@ -501,7 +503,7 @@ def pfx_auth(self):
501503
return None
502504

503505
username = self.args.username[0]
504-
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(":", "-"))
505507

506508
# Request a TGT with the cert data
507509
req = ini.build_asreq(self.domain, username)

0 commit comments

Comments
 (0)