Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
1a06347d
Commit
1a06347d
authored
Dec 08, 2008
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup binary parsing and move stuff around.
parent
75639177
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
489 additions
and
385 deletions
+489
-385
lockdown.c
src/lockdown.c
+1
-1
plist.c
src/plist.c
+471
-383
plist.h
src/plist.h
+17
-1
No files found.
src/lockdown.c
View file @
1a06347d
...
@@ -963,7 +963,7 @@ iphone_error_t iphone_lckd_start_service(iphone_lckd_client_t client, const char
...
@@ -963,7 +963,7 @@ iphone_error_t iphone_lckd_start_service(iphone_lckd_client_t client, const char
if
(
result_key_type
==
PLIST_KEY
&&
if
(
result_key_type
==
PLIST_KEY
&&
result_value_type
==
PLIST_STRING
&&
result_value_type
==
PLIST_STRING
&&
port_key_type
==
PLIST_KEY
&&
port_key_type
==
PLIST_KEY
&&
port_value_type
==
PLIST_UINT
64
&&
port_value_type
==
PLIST_UINT
&&
!
strcmp
(
result_key
,
"Result"
)
&&
!
strcmp
(
result_value
,
"Success"
)
&&
!
strcmp
(
port_key
,
"Port"
))
{
!
strcmp
(
result_key
,
"Result"
)
&&
!
strcmp
(
result_value
,
"Success"
)
&&
!
strcmp
(
port_key
,
"Port"
))
{
port_loc
=
port_value
;
port_loc
=
port_value
;
ret
=
IPHONE_E_SUCCESS
;
ret
=
IPHONE_E_SUCCESS
;
...
...
src/plist.c
View file @
1a06347d
This diff is collapsed.
Click to expand it.
src/plist.h
View file @
1a06347d
...
@@ -35,7 +35,7 @@ char *format_string(const char *buf, int cols, int depth);
...
@@ -35,7 +35,7 @@ char *format_string(const char *buf, int cols, int depth);
/* Binary plist stuff */
/* Binary plist stuff */
/*
typedef enum {
typedef enum {
PLIST_BOOLEAN,
PLIST_BOOLEAN,
PLIST_UINT8,
PLIST_UINT8,
...
@@ -53,6 +53,22 @@ typedef enum {
...
@@ -53,6 +53,22 @@ typedef enum {
PLIST_PLIST,
PLIST_PLIST,
PLIST_KEY,
PLIST_KEY,
} plist_type;
} plist_type;
*/
typedef
enum
{
PLIST_BOOLEAN
,
PLIST_UINT
,
PLIST_REAL
,
PLIST_STRING
,
PLIST_UNICODE
,
PLIST_ARRAY
,
PLIST_DICT
,
PLIST_DATE
,
PLIST_DATA
,
PLIST_PLIST
,
PLIST_KEY
,
}
plist_type
;
typedef
GNode
*
plist_t
;
typedef
GNode
*
plist_t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment