Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ydkhatri committed May 11, 2024
2 parents 60d633f + 4af3086 commit 1e82016
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
3 changes: 2 additions & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* Jack Farley (@JackFarley248) - Added Encryption support and plugins - IDEVICE_BACKUPS, IDEVICE_INFO, PRINTJOBS, IMESSAGE, SCREENTIME, QUICKLOOK
* Michael Geyer - Wrote the WIFI plugin
* Nicole Ibrahim (@nicoleibrahim) - Wrote the DOCUMENTREVISIONS plugin, bug fix for disk decryption
* Minoru Kobayashi (@mnrkbys) - Bugfixes, parsers, and writing the UTMPX, CFURL_CACHE, FILESHARING plugins
* Minoru Kobayashi (@mnrkbys) - Bugfixes, parsers, and writing the UTMPX, CFURL_CACHE, FILESHARING, MSRDC, TCC plugins
* Yuya Hashimoto (@a5hlynx) - Bugfixes and wrote the ASL plugin
* Brandon Mignini - Wrote the AUTOSTART plugin
* Noah Sidall (@noah_sidd) - Wrote the INSTALLHISTORY plugin
* Austin Truax - Wrote the proof of concept parsing wifi information from airport plist
Expand Down
22 changes: 12 additions & 10 deletions plugins/asl.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,10 @@ def CopyOutputParams(output_params):
def CreateSqliteDb(output_path, out_params):

try:
sqlite_path = os.path.join(output_path, "ASL.db")
log.info("Creating sqlite db for asl @ {}".format(sqlite_path))
sqlite_writer = SqliteWriter()
sqlite_path = os.path.join(output_path, "ASL.db")
out_params.output_db_path = sqlite_writer.CreateSqliteDb(sqlite_path)
log.info("Creating sqlite db for asl @ {}".format(out_params.output_db_path))
return True
except sqlite3.Error as ex:
log.error('Sqlite db could not be created at : ' + sqlite_path)
Expand Down Expand Up @@ -517,7 +517,7 @@ def Plugin_Start(mac_info):
# asl path
asl_text_path = "/private/var/log/asl.log"
asl_legacy_path = "/private/var/log/asl.db"
asl_ver2_folder_path = "/private/var/log/asl/"
asl_ver2_folder_paths = ("/private/var/log/asl/", "/private/var/log/DiagnosticMessages/")
asl_files = {}

if mac_info.IsValidFilePath(asl_text_path):
Expand All @@ -528,13 +528,15 @@ def Plugin_Start(mac_info):
mac_info.ExportFile(asl_legacy_path, __Plugin_Name, "", False, False)
asl_files[_DB_VERSION_LEGACY_1] = [asl_legacy_path]

if mac_info.IsValidFolderPath(asl_ver2_folder_path):
_items = mac_info.ListItemsInFolder(asl_ver2_folder_path, EntryType.FILES)
asl_ver2_files = []
for _i in _items:
if _i['name'].endswith(".asl"):
mac_info.ExportFile(asl_ver2_folder_path + _i['name'], __Plugin_Name, "", False, False)
asl_ver2_files.append(asl_ver2_folder_path + _i['name'])
asl_ver2_files = []
for asl_ver2_folder_path in asl_ver2_folder_paths:
if mac_info.IsValidFolderPath(asl_ver2_folder_path):
_items = mac_info.ListItemsInFolder(asl_ver2_folder_path, EntryType.FILES)
for _i in _items:
if _i['name'].endswith(".asl"):
mac_info.ExportFile(asl_ver2_folder_path + _i['name'], __Plugin_Name, "", False, False)
asl_ver2_files.append(asl_ver2_folder_path + _i['name'])
if asl_ver2_files:
asl_files[_DB_VERSION_2] = asl_ver2_files

try:
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__VERSION = "1.7.5.dev (20240510)"
__VERSION = "1.7.5.dev (20240511)"

0 comments on commit 1e82016

Please sign in to comment.