Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: XhstormR <[email protected]>
  • Loading branch information
XhstormR committed Jun 26, 2020
1 parent a1ddceb commit 641eb23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions assets/run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gcc -s -static -shared -o dwmapi.dll main.c

rundll32 D:\dwmapi.dll main
14 changes: 10 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@ int main() {

FreeLibrary(hMod);

HKEY hkey;
RegCreateKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\NetSarang\\Xshell\\6", &hkey);
RegSetValueEx(hkey, "MagicCode", 0, REG_BINARY, code, 22);
RegCloseKey(hkey);
char *keys[] = {"SOFTWARE\\NetSarang\\Xftp\\6",
"SOFTWARE\\NetSarang\\Xshell\\6",
"SOFTWARE\\NetSarang\\Xmanager\\6", 0};

for (int i = 0; keys[i]; i++) {
HKEY hkey;
RegCreateKey(HKEY_LOCAL_MACHINE, keys[i], &hkey);
RegSetValueEx(hkey, "MagicCode", 0, REG_BINARY, code, 22);
RegCloseKey(hkey);
}

RegDeleteTreeA(HKEY_CURRENT_USER, "Software\\Microsoft\\NetLicense");

Expand Down

0 comments on commit 641eb23

Please sign in to comment.