Some execution fixes

This commit is contained in:
2019-12-14 20:06:56 -05:00
parent 3caa14603f
commit cc87e78cb2
14 changed files with 189 additions and 150 deletions

View File

@@ -5,7 +5,7 @@
#include <stdarg.h>
#include <execinfo.h>
void checkm8_debug(const char *format, ...)
void checkm8_debug_indent(const char *format, ...)
{
#ifdef CHECKM8_LOGGING
void *traces[100];
@@ -14,7 +14,6 @@ void checkm8_debug(const char *format, ...)
{
printf("\t");
}
va_list args;
va_start (args, format);
@@ -23,6 +22,18 @@ void checkm8_debug(const char *format, ...)
#endif
}
void checkm8_debug_block(const char *format, ...)
{
#ifdef CHECKM8_LOGGING
va_list args;
va_start (args, format);
vprintf(format, args);
va_end(args);
#endif
}
int main()
{
struct pwned_device *dev = exploit_device();
@@ -32,6 +43,9 @@ int main()
return -1;
}
install_payload(dev, PAYLOAD_SYNC, DRAM);
install_payload(dev, PAYLOAD_SYSREG, DRAM);
execute_payload(dev, PAYLOAD_SYNC, 0);
execute_payload(dev, PAYLOAD_SYSREG, 0);
}