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
37ecfbc3
Commit
37ecfbc3
authored
Oct 24, 2008
by
Matt Colyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Indent fixes.
parent
44efbc65
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
AFC.c
src/AFC.c
+2
-1
iphone.c
src/iphone.c
+2
-1
lckdclient.c
src/lckdclient.c
+7
-9
No files found.
src/AFC.c
View file @
37ecfbc3
...
...
@@ -1043,6 +1043,7 @@ iphone_error_t iphone_afc_truncate_file(iphone_afc_client_t client, iphone_afc_f
}
}
uint32
iphone_afc_get_file_handle
(
iphone_afc_file_t
file
)
{
uint32
iphone_afc_get_file_handle
(
iphone_afc_file_t
file
)
{
return
file
->
filehandle
;
}
src/iphone.c
View file @
37ecfbc3
...
...
@@ -61,7 +61,8 @@ iphone_error_t iphone_get_device(iphone_device_t * device)
for
(
dev
=
bus
->
devices
;
dev
;
dev
=
dev
->
next
)
{
if
(
dev
->
descriptor
.
idVendor
==
0x05ac
&&
(
dev
->
descriptor
.
idProduct
==
0x1290
||
dev
->
descriptor
.
idProduct
==
0x1291
||
dev
->
descriptor
.
idProduct
==
0x1292
||
dev
->
descriptor
.
idProduct
==
0x1293
)
dev
->
descriptor
.
idProduct
==
0x1291
||
dev
->
descriptor
.
idProduct
==
0x1292
||
dev
->
descriptor
.
idProduct
==
0x1293
)
)
{
phone
->
__device
=
dev
;
phone
->
device
=
usb_open
(
phone
->
__device
);
...
...
src/lckdclient.c
View file @
37ecfbc3
...
...
@@ -57,18 +57,16 @@ int main(int argc, char *argv[])
using_history
();
int
loop
=
TRUE
;
while
(
loop
)
{
while
(
loop
)
{
char
*
cmd
=
readline
(
"> "
);
if
(
cmd
)
{
if
(
cmd
)
{
gchar
**
args
=
g_strsplit
(
cmd
,
" "
,
0
);
gchar
**
args
=
g_strsplit
(
cmd
,
" "
,
0
);
int
len
=
0
;
if
(
args
)
{
while
(
*
(
args
+
len
)
)
{
g_strstrip
(
*
(
args
+
len
));
while
(
*
(
args
+
len
)
)
{
g_strstrip
(
*
(
args
+
len
));
len
++
;
}
}
...
...
@@ -80,7 +78,7 @@ int main(int argc, char *argv[])
if
(
!
strcmp
(
*
args
,
"get"
)
&&
len
==
3
)
{
char
*
value
=
NULL
;
if
(
IPHONE_E_SUCCESS
==
lockdownd_generic_get_value
(
control
,
*
(
args
+
1
),
*
(
args
+
2
),
&
value
))
if
(
IPHONE_E_SUCCESS
==
lockdownd_generic_get_value
(
control
,
*
(
args
+
1
),
*
(
args
+
2
),
&
value
))
printf
(
"Success : value = %s
\n
"
,
value
);
else
printf
(
"Error
\n
"
);
...
...
@@ -88,7 +86,7 @@ int main(int argc, char *argv[])
if
(
!
strcmp
(
*
args
,
"start"
)
&&
len
==
2
)
{
int
port
=
0
;
iphone_lckd_start_service
(
control
,
*
(
args
+
1
),
&
port
);
iphone_lckd_start_service
(
control
,
*
(
args
+
1
),
&
port
);
printf
(
"%i
\n
"
,
port
);
}
}
...
...
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