Decrypts the password using the provided buffer and master key.
Parameters
buffer
The buffer containing the encrypted password.
masterKey
The master key used for decryption.
Returns
The decrypted password as a string.
This method decrypts the password using the provided buffer and master key. It initializes a GCM block cipher with an AES engine and decrypts the payload using the provided initialization vector (IV) and master key. The decrypted password is then returned as a string. If an exception occurs during the decryption process, null is returned.
Retrieves cookies from the specified path using the provided master key and returns a list of cookies.
Parameters
path
The path where the cookie database is located.
masterKey
The master key used for decrypting the cookies.
Returns
A list of cookies retrieved from the specified path using the provided masterKey .
This method asynchronously retrieves cookies from the specified path by decrypting the cookie database using the provided masterKey . It then populates a list of cookies with the retrieved data and returns the list. If the cookie database does not exist at the specified path , or if an exception occurs during the retrieval process, null is returned.
Retrieves credit card information from the specified path using the provided master key for decryption.
Parameters
path
The path where the credit card information is stored.
masterKey
The master key used for decrypting the credit card information.
Returns
A list of CreditCard objects containing the retrieved credit card information.
This method retrieves credit card information from the specified path by decrypting the data using the provided master key. It first checks if the database file exists at the specified path, and if not, returns null. It then creates a temporary copy of the database file, reads the credit card information using SQLite, decrypts the card numbers using the master key, and populates a list of CreditCard objects with the retrieved information. If any exception occurs during the process, the method returns null.
Retrieves the list of downloads from the specified path.
Parameters
path
The path where the downloads are stored.
Returns
A list of Download objects representing the downloaded items.
This method retrieves the list of downloads from the specified path by reading the downloads database file. If the database file does not exist, the method returns null. The method then creates a temporary copy of the database file and establishes a connection to it using SQLiteHandler. It reads the "downloads" table from the database and populates the list of Download objects based on the retrieved data. If any exceptions occur during this process, the method returns null. Finally, the temporary database file is deleted before returning the list of downloads.
Retrieves login data from the specified path using the provided master key for decryption.
Parameters
path
The path where the login data is stored.
masterKey
The master key used for decryption.
Returns
A list of Login objects containing the retrieved login data.
This method asynchronously retrieves login data from the specified path using the provided master key for decryption. If the login data file does not exist at the specified path, null is returned. The method creates a temporary copy of the login data file, reads the table "logins" using SQLiteHandler, and populates the list of Login objects with the retrieved data. If an exception occurs during the retrieval process, null is returned.
Retrieves the master key from the specified file path and returns it after decryption.
Parameters
path
The file path from which to retrieve the master key.
Returns
The decrypted master key retrieved from the file.
Exceptions
FileNotFoundException
Thrown when the specified file does not exist.
KeyNotFoundException
Thrown when the 'os_crypt' key is not found in the JSON content.
This method reads the content of the file located at the specified path . It then deserializes the JSON content using a JavaScriptSerializer and retrieves the encrypted key. The encrypted key is then decrypted using ProtectedData.Unprotect method and returned as the master key.
Retrieves web history from the specified path and returns a list of WebHistory objects.
Parameters
path
The path where the web history is stored.
Returns
A list of WebHistory objects representing the web history from the specified path.
This method retrieves web history from the specified path by accessing the history database file. It creates a temporary copy of the database file, reads the "urls" table using SQLiteHandler, and populates the history list with WebHistory objects. If any required data is missing or if an exception occurs during the process, the method returns null.