I'm trying to create a startup on a windows 7 for the machine and current user (its a workstation meaning all user data is saved on a server).
What i mean whit a startup is to have a program run at login producing the same result as to put a registrar value in bout:
HKEY_USERS\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
Or adding a link/file in the following folders:
%allusersprofile%\Start Menu\Programs\Startup
%profilepath%\Start Menu\Programs\Startup
What I want to achieve is a proof of concept. I want to create a "virus" that when run, it creates a startup for the local machine and user when run. so i want to be able to create startups both for the current user and machine to make this work. Hopefully the user startup will get stored in its personal preferences that is stored on the account server making that user a distributer of the startup "virus". So all user that gets infected will spreed it and all clients that get it will also spread it.
I can't:
- Use the registry
- use elevated privileges
I can:
- Write to C:/
- Run .exe
- Run the activity monitor
I know this isn't a lot to go on. So just ask and i will check if the feature is available.
Edit
I basically rewrote the whole question to make it more understandable.
HKEY_USERS\Software\Microsoft\Windows\CurrentVersion\Run
andHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run