Parse users' accounts
()
| 1147 | PrintAndLog(Admins, 'INFO_RAW') |
| 1148 | |
| 1149 | def ParseUsersAccounts(): |
| 1150 | ''' Parse users' accounts ''' |
| 1151 | |
| 1152 | PrintAndLog(u'Users\' accounts', 'SECTION') |
| 1153 | |
| 1154 | PrintAndLog(u'Users\' social accounts', 'SUBSECTION') |
| 1155 | for User in os.listdir(os.path.join(ROOT_PATH, 'Users')): |
| 1156 | UsersAccountPath = os.path.join(ROOT_PATH, 'Users', User, 'Library/Accounts/Accounts3.sqlite') |
| 1157 | if User[0] != '.': |
| 1158 | PrintAndLog(User + u'\'s social account', 'SUBSECTION') |
| 1159 | if os.path.isfile(UsersAccountPath): |
| 1160 | DumpSQLiteDb(UsersAccountPath) |
| 1161 | else: |
| 1162 | PrintAndLog(User + u' has no social account', 'INFO') |
| 1163 | |
| 1164 | PrintAndLog(u'Users\' Mail.app accounts', 'SUBSECTION') |
| 1165 | for User in os.listdir(os.path.join(ROOT_PATH, 'Users')): |
| 1166 | MailAccountPlistPath = os.path.join(ROOT_PATH, 'Users', User, 'Library/Containers/com.apple.mail/Data/Library/Mail/V2/MailData/Accounts.plist') |
| 1167 | if User[0] != '.': |
| 1168 | PrintAndLog(User + u'\'s Mail.app accounts', 'SUBSECTION') |
| 1169 | if os.path.isfile(MailAccountPlistPath): |
| 1170 | ParseMailAppAccount(MailAccountPlistPath) |
| 1171 | else: |
| 1172 | PrintAndLog(User + u' has no Mail.app account', 'INFO') |
| 1173 | |
| 1174 | PrintAndLog(u'Users\' recent items', 'SUBSECTION') |
| 1175 | for User in os.listdir(os.path.join(ROOT_PATH, 'Users')): |
| 1176 | RecentItemsAccountPlistPath = os.path.join(ROOT_PATH, 'Users', User, 'Library/Preferences/com.apple.recentitems.plist') |
| 1177 | if User[0] != '.': |
| 1178 | PrintAndLog(User + u'\'s recent items', 'SUBSECTION') |
| 1179 | if os.path.isfile(RecentItemsAccountPlistPath): |
| 1180 | ParseUsersRecentItems(RecentItemsAccountPlistPath) |
| 1181 | else: |
| 1182 | PrintAndLog(User + u' has no recent items', 'INFO') |
| 1183 | |
| 1184 | ParseSysAdminsGroup() |
| 1185 | ParseSysUsers() |
| 1186 | |
| 1187 | def ParseInstalledApps(): |
| 1188 | ''' Parses and hashes installed apps in /Applications ''' |
no test coverage detected