-
My little app
Well, I don't know if someone will yell at me for doing this, but I know of no other appropriate forum here to post this - besides, you guys really know your $hit.
Check out this little app I wrote, it's only 69KB. I virus scanned it, whatever, it's completely safe - http://avail.port5.com/Profile%20Loader.exe
What it does is loads a desired user profile before you authenticate yourself, which may be useful for those occasional times your computer crashes itself to rebooting or you lose power, and you need some applications to be running all the time. It's definitely not a program that everyone would have a use for, probably very few will in fact. If you don't even bother with a windows password, then don't bother downloading this.
I just want to know what you guys think of it - aesthetically, functionality, any huge security issues (well, yeah, this is a huge security issue, but anyone who knows windows knows that it's very easy to bypass anything...). Please let me know if you find any bugs. Any suggestions to improve it would be much appreciated.
-
Unlikely anyone will just take your word for it, I'm afraid. Could you post some code as well, please?
-
Sure... um, what would you like me to post? If you don't feel safe, you can scan it yourself, but we all know that's not always reliable.
I should note that this program does make registry changes, but nothing that would cause XP to completely useless; and they aren't made until you hit a button - no changes are made by opening the application.
Here's what the "Install" button does:
PHP Code:
strcpy(buffer, ReadString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "DefaultUserName", "?"));
SaveString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Profile Loader", "DefaultUserName", buffer);
strcpy(buffer, GetCaption(hwndTextBox2));
SaveString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "DefaultPassword", buffer);
if(!strcmp(ReadString (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "AutoAdminLogonBackup", "?"), "?"))
{ strcpy(buffer, ReadString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "AutoAdminLogon", "1"));
SaveString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "AutoAdminLogonBackup", buffer);
SaveString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "AutoAdminLogon", "1");
}
if(!strcmp(ReadString (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "DontDisplayLastUserNameBackup", "?"), "?"))
{ strcpy(buffer, ReadString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "DontDisplayLastUserName", "1"));
SaveString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "DontDisplayLastUserNameBackup", buffer);
SaveString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "DontDisplayLastUserName", "1");
}
if(!strcmp(ReadString (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "UserinitBackup", "?"), "?"))
{ strcpy(buffer, ReadString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "Userinit", "userinit.exe"));
SaveString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "UserinitBackup", buffer);
strcpy(buffer, filepath);
strcat(buffer, " -l,");
strcat(buffer, ReadString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "Userinit", "userinit.exe"));
SaveString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "Userinit", buffer);
}
EnableWindow(hwndFrame1, FALSE);
EnableWindow(hwndLabel2, FALSE);
EnableWindow(hwndTextBox2, FALSE);
SetText(hwndButton1, "Un&install");
-
Oh, and if you download it, could you atleast vouch that it didn't destroy your computer so it won't seem so scary?
-
I can't run it, I don't have a copy of Windows to run it on. I'm just pointing out that the source code is far more useful to other people, and whether there's a virus or not, we don't know what your program might do.