Jump to content

FierceRecon

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by FierceRecon

  1. If you are to create a user and start a program (cmd.exe will do), WIHU's environment is not passed to the program. E.X. [Environment] HELLO=BLA ... [Some section] command.0 = cmd.exe description.0 = just a test if you don't skip user creation (e.g. you create a new user), and you type in set when the cmd window shows up, you won't see the variable HELLO there. (simple fix - download source and) Open wihu.c Find: LV_EX_ITEM *Parent; DWORD BlankPasswordUsage = 0; WIHU_USER *User; After, add: LPVOID env = NULL; Find while (Env) { WCHAR EnvData[MAX_ENVVAL_SHORT_SIZE]; ExpandEnvironmentStrings(Env->Value, EnvData, MAX_ENVVAL_SHORT_SIZE); SetEnvironmentVariable(Env->Key, EnvData); Env = Env->Next; } After, Add (MAKE SURE TO ADD BEFORE } else {: CreateEnvironmentBlock(&env, NULL, TRUE); Find /* Start process in new user account context */ Result = CreateProcessWithLogonW(User->Name, User->Domain, User->Password, LOGON_WITH_PROFILE, NULL, ExeCmd, 0, NULL, CurDir, &sti, π); REPLACE WITH: /* Start process in new user account context */ Result = CreateProcessWithLogonW(User->Name, User->Domain, User->Password, LOGON_WITH_PROFILE, NULL, ExeCmd, CREATE_UNICODE_ENVIRONMENT, env, CurDir, &sti, π); Recompile source... Hope that helps some headaches. Limitation: Generic environment for the user is not loaded, e.g. %USERNAME% will be that of the user that wihu is being run from (use %ThisUser%)
  2. I Have a 7zipped (full) office 2003 SP1(no patches after) install. When I try to go to office update after the installation, none of the updates install. So basically, is it even possible to install additional updates to an administrative point install w/o remaking the CD?
×
×
  • Create New...