diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/irecovery.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c index 950379a..439920d 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c | |||
| @@ -57,11 +57,11 @@ int postcommand_cb(irecv_client_t client, const irecv_event_t* event); | |||
| 57 | 57 | ||
| 58 | static void shell_usage() { | 58 | static void shell_usage() { |
| 59 | printf("Usage:\n"); | 59 | printf("Usage:\n"); |
| 60 | printf("\t/upload <file>\tSend file to client.\n"); | 60 | printf(" /upload FILE\t\tsend FILE to device\n"); |
| 61 | printf("\t/exploit [file]\tSend usb exploit with optional payload\n"); | 61 | printf(" /exploit [FILE]\trun limera1in exploit and send optional payload from FILE\n"); |
| 62 | printf("\t/deviceinfo\tShow device information (ECID, IMEI, etc.)\n"); | 62 | printf(" /deviceinfo\t\tprint device information (ECID, IMEI, etc.)\n"); |
| 63 | printf("\t/help\t\tShow this help.\n"); | 63 | printf(" /help\t\t\tshow this help\n"); |
| 64 | printf("\t/exit\t\tExit interactive shell.\n"); | 64 | printf(" /exit\t\t\texit interactive shell\n"); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | static const char* mode_to_str(int mode) { | 67 | static const char* mode_to_str(int mode) { |
| @@ -177,7 +177,6 @@ static void parse_command(irecv_client_t client, unsigned char* command, unsigne | |||
| 177 | buffer_read_from_filename(filename, &buffer, &buffer_length); | 177 | buffer_read_from_filename(filename, &buffer, &buffer_length); |
| 178 | if (buffer) { | 178 | if (buffer) { |
| 179 | buffer[buffer_length] = '\0'; | 179 | buffer[buffer_length] = '\0'; |
| 180 | |||
| 181 | irecv_execute_script(client, buffer); | 180 | irecv_execute_script(client, buffer); |
| 182 | free(buffer); | 181 | free(buffer); |
| 183 | } else { | 182 | } else { |
| @@ -324,7 +323,7 @@ static void print_usage(int argc, char **argv) { | |||
| 324 | char *name = NULL; | 323 | char *name = NULL; |
| 325 | name = strrchr(argv[0], '/'); | 324 | name = strrchr(argv[0], '/'); |
| 326 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); | 325 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); |
| 327 | printf("Interact with a iBSS/iBoot iOS device in DFU or recovery mode.\n\n"); | 326 | printf("Interact with an iOS device in DFU or recovery mode.\n\n"); |
| 328 | printf("options:\n"); | 327 | printf("options:\n"); |
| 329 | printf(" -i ECID\tconnect to specific device by its hexadecimal ECID\n"); | 328 | printf(" -i ECID\tconnect to specific device by its hexadecimal ECID\n"); |
| 330 | printf(" -c CMD\trun CMD on device\n"); | 329 | printf(" -c CMD\trun CMD on device\n"); |
