Skip to content

Commit 7d1ab3e

Browse files
committed
fix: ruff SIM115 lint
1 parent 6bc8acc commit 7d1ab3e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/protocols/smb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,7 @@ def dpapi(self):
21152115

21162116
if self.args.pvk is not None:
21172117
try:
2118-
self.pvkbytes = open(self.args.pvk, "rb").read() # noqa: SIM115
2118+
self.pvkbytes = open(self.args.pvk, "rb").read()
21192119
self.logger.success(f"Loading domain backupkey from {self.args.pvk}")
21202120
except Exception as e:
21212121
self.logger.fail(str(e))
@@ -2136,7 +2136,7 @@ def dpapi(self):
21362136
use_kcache=self.use_kcache,
21372137
)
21382138

2139-
self.output_file = open(self.output_file_template.format(output_folder="dpapi"), "w", encoding="utf-8") # noqa: SIM115
2139+
self.output_file = open(self.output_file_template.format(output_folder="dpapi"), "w", encoding="utf-8")
21402140

21412141
conn = upgrade_to_dploot_connection(connection=self.conn, target=target)
21422142
if conn is None:

0 commit comments

Comments
 (0)