Cleaned up headers
This commit is contained in:
@@ -46,9 +46,25 @@ struct pwned_device
|
||||
#endif
|
||||
};
|
||||
|
||||
struct dev_cmd_resp
|
||||
{
|
||||
int ret;
|
||||
unsigned long long magic;
|
||||
unsigned long long retval;
|
||||
unsigned char *data;
|
||||
int len;
|
||||
};
|
||||
|
||||
struct pwned_device *exploit_device();
|
||||
int demote_device(struct pwned_device *dev);
|
||||
int fix_heap(struct pwned_device *dev);
|
||||
void free_device(struct pwned_device *dev);
|
||||
|
||||
int demote_device(struct pwned_device *dev);
|
||||
int fix_heap(struct pwned_device *dev);
|
||||
|
||||
int open_device_session(struct pwned_device *dev);
|
||||
int close_device_session(struct pwned_device *dev);
|
||||
int is_device_session_open(struct pwned_device *dev);
|
||||
|
||||
void free_dev_cmd_resp(struct dev_cmd_resp *resp);
|
||||
|
||||
#endif //CHECKM8_TOOL_CHECKM8_H
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef CHECKM8_TOOL_BOOTROM_ADDR_H
|
||||
#define CHECKM8_TOOL_BOOTROM_ADDR_H
|
||||
#ifndef CHECKM8_TOOL_ADDR_H
|
||||
#define CHECKM8_TOOL_ADDR_H
|
||||
|
||||
#include "checkm8_config.h"
|
||||
#include "bootrom_type.h"
|
||||
#include "types.h"
|
||||
|
||||
#if CHECKM8_PLATFORM == 8010
|
||||
|
||||
@@ -53,4 +53,4 @@
|
||||
#error "Unsupported checkm8 platform"
|
||||
#endif
|
||||
|
||||
#endif //CHECKM8_TOOL_BOOTROM_ADDR_H
|
||||
#endif //CHECKM8_TOOL_ADDR_H
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef CHECKM8_TOOL_BOOTROM_TYPE_H
|
||||
#define CHECKM8_TOOL_BOOTROM_TYPE_H
|
||||
#ifndef CHECKM8_TOOL_TYPES_H
|
||||
#define CHECKM8_TOOL_TYPES_H
|
||||
|
||||
struct event
|
||||
{
|
||||
@@ -41,4 +41,4 @@ struct corr_data
|
||||
unsigned char data[N_CORR_ENTRIES];
|
||||
};
|
||||
|
||||
#endif //CHECKM8_TOOL_BOOTROM_TYPE_H
|
||||
#endif //CHECKM8_TOOL_TYPES_H
|
||||
@@ -5,15 +5,6 @@
|
||||
|
||||
#define CMD_USB_READ_LIMIT 0xFF0
|
||||
|
||||
struct dev_cmd_resp
|
||||
{
|
||||
int ret;
|
||||
unsigned long long magic;
|
||||
unsigned long long retval;
|
||||
unsigned char *data;
|
||||
int len;
|
||||
};
|
||||
|
||||
struct dev_cmd_resp *dev_memset(struct pwned_device *dev, unsigned long long addr, unsigned char c, int len);
|
||||
struct dev_cmd_resp *dev_memcpy(struct pwned_device *dev, unsigned long long dest, unsigned long long src, int len);
|
||||
struct dev_cmd_resp *dev_exec(struct pwned_device *dev, int response_len, int nargs, unsigned long long *args);
|
||||
@@ -21,6 +12,4 @@ struct dev_cmd_resp *dev_exec(struct pwned_device *dev, int response_len, int na
|
||||
struct dev_cmd_resp *dev_read_memory(struct pwned_device *dev, unsigned long long addr, int len);
|
||||
struct dev_cmd_resp *dev_write_memory(struct pwned_device *dev, unsigned long long addr, unsigned char *data, int len);
|
||||
|
||||
void free_dev_cmd_resp(struct dev_cmd_resp *resp);
|
||||
|
||||
#endif //CHECKM8_TOOL_COMMAND_H
|
||||
@@ -15,10 +15,6 @@ struct libusb_device_bundle
|
||||
};
|
||||
#endif
|
||||
|
||||
int open_device_session(struct pwned_device *dev);
|
||||
int close_device_session(struct pwned_device *dev);
|
||||
int is_device_session_open(struct pwned_device *dev);
|
||||
|
||||
int partial_ctrl_transfer(struct pwned_device *dev,
|
||||
unsigned char bmRequestType, unsigned char bRequest,
|
||||
unsigned short wValue, unsigned short wIndex,
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef CHECKM8_TOOL_EXPERIMENTS_H
|
||||
#define CHECKM8_TOOL_EXPERIMENTS_H
|
||||
|
||||
#include "payload.h"
|
||||
#include "bootrom_type.h"
|
||||
#include "tool/payload.h"
|
||||
#include "dev/types.h"
|
||||
|
||||
/* AES Software */
|
||||
DEV_PTR_T setup_bern_exp(struct pwned_device *dev);
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef CHECKM8_TOOL_HOST_CRYPTO_H
|
||||
#define CHECKM8_TOOL_HOST_CRYPTO_H
|
||||
|
||||
#include "bootrom_type.h"
|
||||
#include "dev/types.h"
|
||||
|
||||
void expand_key(unsigned char key[16], unsigned char key_sched[176],
|
||||
int n, struct aes_constants *c);
|
||||
Reference in New Issue
Block a user