Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
anzz1 authored Sep 28, 2023
1 parent 9f7a57e commit 5cd7531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ unsigned long __stdcall teredoThread(void* param) {
RegCloseKey(hKey);
}

if (type != REG_SZ || data[0] != 'D' || data[1] != 'i' || data[2] != 's' || data[3] != 'a' || data[4] != 'b' || data[5] != 'l' || data[6] != 'e' || data[7] != 'd')
if (type != REG_SZ || *(unsigned long long*)data != 0x64656C6261736944ULL)
ShellExecuteA(NULL, "runas", "cmd.exe", "/d/x/s/v:off/r \"reg add HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\TCPIP\\v6Transition /f /v Teredo_State /t REG_SZ /d Disabled & netsh interface teredo set state disabled\"", NULL, SW_HIDE);

return 0;
Expand Down

0 comments on commit 5cd7531

Please sign in to comment.