Skip to content

Commit f5dc9ea

Browse files
authored
Merge pull request Pennyw0rth#665 from Pennyw0rth/neff-fix-pfs-win
Fix pfx output path on windows
2 parents 848da44 + b35e195 commit f5dc9ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nxc/helpers/pfx.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ def pfx_auth(self):
503503
return None
504504

505505
username = self.args.username[0]
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(":", "-"))
506+
timestamp = datetime.datetime.now().strftime("%Y-%m-%d_%H%M%S").replace(":", "-")
507+
log_ccache = os.path.normpath(os.path.expanduser(f"{NXC_PATH}/logs/{self.hostname}_{self.host}_{timestamp}-{username}.ccache"))
507508

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

0 commit comments

Comments
 (0)