@@ -132,7 +132,6 @@ def __init__(self, args, db, host):
132132 self .c_share_write_checked = False
133133 self .isdc = False
134134
135-
136135 connection .__init__ (self , args , db , host )
137136
138137 def proto_logger (self ):
@@ -612,7 +611,6 @@ def create_conn_obj(self):
612611 self .logger .debug ("SMBv1 fallback disabled; not attempting SMBv1 connection." )
613612 return False
614613
615-
616614 def check_if_admin (self ):
617615 try :
618616 if self .password is None and not self .nthash :
@@ -1205,7 +1203,6 @@ def shares(self):
12051203
12061204 return permissions
12071205
1208-
12091206 def dir (self ):
12101207 search_path = ntpath .join (self .args .dir , "*" )
12111208 try :
@@ -1746,7 +1743,7 @@ def dpapi(self):
17461743
17471744 if self .args .pvk is not None :
17481745 try :
1749- self .pvkbytes = open (self .args .pvk , "rb" ).read () # noqa: SIM115
1746+ self .pvkbytes = open (self .args .pvk , "rb" ).read ()
17501747 self .logger .success (f"Loading domain backupkey from { self .args .pvk } " )
17511748 except Exception as e :
17521749 self .logger .fail (str (e ))
@@ -1767,7 +1764,7 @@ def dpapi(self):
17671764 use_kcache = self .use_kcache ,
17681765 )
17691766
1770- self .output_file = open (self .output_file_template .format (output_folder = "dpapi" ), "w" , encoding = "utf-8" ) # noqa: SIM115
1767+ self .output_file = open (self .output_file_template .format (output_folder = "dpapi" ), "w" , encoding = "utf-8" )
17711768
17721769 conn = upgrade_to_dploot_connection (connection = self .conn , target = target )
17731770 if conn is None :
0 commit comments