Some changes

This commit is contained in:
2019-10-28 13:21:52 -04:00
parent b5af2f5da6
commit 38477100a6
7 changed files with 3 additions and 4 deletions

1
.idea/workspace.xml generated
View File

@@ -12,7 +12,6 @@
</component>
<component name="ChangeListManager">
<list default="true" id="b2f61e55-9467-486e-b84a-47b98c1101b5" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/libusb_helpers.c" beforeDir="false" afterPath="$PROJECT_DIR$/libusb_helpers.c" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.c" beforeDir="false" afterPath="$PROJECT_DIR$/main.c" afterDir="false" />
</list>

View File

@@ -4,5 +4,5 @@ project(ipwndfu_rewrite_c C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_FLAGS -g)
add_executable(ipwndfu main.c libusb_helpers.c libusb_helpers.h)
add_executable(ipwndfu exploit/main.c exploit/libusb_helpers.c exploit/libusb_helpers.h)
target_link_libraries(ipwndfu usb-1.0)

View File

@@ -132,7 +132,6 @@ void usb_req_stall(libusb_device_handle *handle)
void usb_req_leak(libusb_device_handle *handle)
{
printf("Req leak\n");
unsigned char data[0x40];
memset(data, 0, 0x40);
libusb1_no_error_ctrl_transfer(handle, 0x80, 6, 0x304, 0x40A, data, 0x40, 1);

View File

@@ -78,7 +78,8 @@ int stage2_function(libusb_device_handle *handle)
int stage3_function(libusb_device_handle *handle)
{
unsigned char overwrite_buf[1524];
FILE *overwrite_file = fopen("/home/grg/Projects/School/NCSU/iphone_aes_sc/ipwndfu_rewrite_c/bin/overwrite.bin", "r");
FILE *overwrite_file = fopen("/home/grg/Projects/School/NCSU/iphone_aes_sc/ipwndfu_rewrite_c/bin/overwrite.bin",
"r");
fread(overwrite_buf, 1524, 1, overwrite_file);
fclose(overwrite_file);