-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReadPlist should use biplist.readPlistFromString instead of biplist.readPlist #16
Comments
Do you have a sample of such a plist, can you post it here. Also is this a macOS created one or by some other program? |
See attached - I had to zip it because GitHub don't support uploading plists. The file was was created by Empire. In regards of the solution - correct. We can validate the type before doing so. |
Hmm, this is not valid XML as xml document must begin with |
I put in a fix for it. Please check and let me know if there are still issues. |
I checked and there's a new issue now:
When I wrapped it with str(data) - it worked. Of course there are other ways to handle it, just a quick suggestion. |
|
Works great. Thanks @ydkhatri |
It turns out that biplist (which wraps plistlib) fails to parse plist files that have newlines and redundant white-spaces.
If you will replace biplist.readPlist with readPlistFromString, then we would be able to strip the newlines and white-spaces, and then we will not miss any plist file.
The text was updated successfully, but these errors were encountered: