Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinolek committed Jan 19, 2021
0 parents commit b2514b8
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "common"]
path = common
url = https://github.com/MTK-bypass/exploit_common
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PAYLOAD_CPU = mt6765
include common/common.mk
1 change: 1 addition & 0 deletions common
Submodule common added at f055e3
15 changes: 15 additions & 0 deletions device.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "common/device.h"

void (*send_usb_response)(int, int, int) = (void*)0x2D2B;

int (*usbdl_put_dword)() = (void*)0xBCD3;
int (*usbdl_put_data)() = (void*)0xBDA3;
int (*usbdl_get_data)() = (void*)0xBD15;

volatile uint32_t *uart_reg0 = (volatile uint32_t*)0x11002014;
volatile uint32_t *uart_reg1 = (volatile uint32_t*)0x11002000;

volatile char *sla_passed = (volatile char *)0x102860;
volatile uint32_t *skip_auth_1 = (volatile uint32_t *)0x102A8C;
volatile uint32_t *skip_auth_2 = (volatile uint32_t *)0x102A94;

6 changes: 6 additions & 0 deletions mt6765_config.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hw_code": 0x766,
"watchdog_address": 0x10007000,
"var_0": 0x2C,
"var_1": 0x25
}

0 comments on commit b2514b8

Please sign in to comment.