File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,13 +154,13 @@ def get_private_key_paths(self, all_users):
154154 return sessions
155155
156156 def extract_session (self , sessions ):
157- proxycreds_file = f"{ NXC_PATH } /modules/PuTTY/putty_proxycreds_{ datetime .now ().strftime ('%Y-%m-%d_%H%M%S' )} " . replace ( ":" , "-" )
157+ proxycreds_file = f"{ NXC_PATH } /modules/PuTTY/putty_proxycreds_{ datetime .now ().strftime ('%Y-%m-%d_%H%M%S' )} "
158158 for session in sessions :
159159 if session ["private_key_path" ]:
160160 makedirs (f"{ NXC_PATH } /modules/PuTTY" , exist_ok = True )
161161 share = session ["private_key_path" ].split (":" )[0 ] + "$"
162162 file_path = session ["private_key_path" ].split (":" )[1 ]
163- download_path = f"{ NXC_PATH } /modules/PuTTY/putty_{ session ['user' ]} _{ session ['session_name' ]} _{ datetime .now ().strftime ('%Y-%m-%d_%H%M%S' )} .sec" . replace ( ":" , "-" )
163+ download_path = f"{ NXC_PATH } /modules/PuTTY/putty_{ session ['user' ]} _{ session ['session_name' ]} _{ datetime .now ().strftime ('%Y-%m-%d_%H%M%S' )} .sec"
164164
165165 buf = BytesIO ()
166166 with open (download_path , "wb" ) as file :
You can’t perform that action at this time.
0 commit comments