Skip to content

Commit

Permalink
Message change.
Browse files Browse the repository at this point in the history
  • Loading branch information
banxian committed Jan 6, 2023
1 parent 64aa41d commit 0fa1111
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EDUReViver/httpclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ bool os_have_sni()
int request_payload_online(int sn, const char* uid, const char* signature, const char* payloadname, const char* payloadopt, char** reply, size_t* replylen)
{
int retcode = 0;
HINTERNET internet = InternetOpenA("EDUReViver/0.3.5", 0, 0, 0, 0);
HINTERNET internet = InternetOpenA("EDUReViver/0.3.6", 0, 0, 0, 0);
if (internet) {
bool havesni = os_have_sni();
if (HINTERNET connect = InternetConnectA(internet, apphost, havesni?INTERNET_DEFAULT_HTTPS_PORT:INTERNET_DEFAULT_HTTP_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0)) {
Expand Down
5 changes: 4 additions & 1 deletion EDUReViver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,10 @@ bool is_offical_bootloader(const void* btl)
*(uint32_t*)&buff[0x2FC] = 0x12345678; // CRP1
memset(&buff[0x130], 0xFF, 0x70); // Banner
buff[0x2F89] = '0'; // V10/V11
*(uint16_t*)&buff[0x2EA0] = 0xB120; // V12 CBZ patch
if (*(uint16_t*)&buff[0x2EA0] != 0xB120) {
printf("detected fake to12 Bootloader.\n");
*(uint16_t*)&buff[0x2EA0] = 0xB120; // V12 CBZ patch
}
unsigned char digest[32];
if (sha256(buff, 0x54F8, digest)) {
unsigned char myhash[32] = {
Expand Down

0 comments on commit 0fa1111

Please sign in to comment.