Privilege Spawner
A Windows application/command launcher, which spawns the command with the same privileges it has. I made this out of necessity. While running Windows in a user account with least privileges, it is routinely necessary to run applications with administrator rights. RunAs and authenticating each time was getting to be a chore. So I made this handy tool. You RunAs the Privilege Spawner with Administrator rights, set your common admin tools in the list, then running them as Administrator is just a double click away. Due to the annoyances and flaws associated with Vista's UAC, Privilege Spawner is still usefull for some Vista users!
Features
- Alternate start in path support.
- Support for command line arguments.
- Auto hides to the task bar.
- Optional launch confirmation.
Usage
Run Privilege Spawner as an administrator account, or with the desired privileges. Add applications or commands to the launch list. Then double clicking the entry in the list to launch that command with the the same privileges you gave Privilege Spawner.
Notes
There seems to be a discrepancy in how BAT files are executed as opposed to EXE files. The problem lies in there being spaces in the file name/directory. It seems that exe's with spaces in the path work fine, but BAT's don't. What other executable types are stricken by this? I'm not sure yet. execl and spawnl seem to have the same problem. Putting quotes around it doesn't work and causes the spawn/exec to fail. Is converting the file/directory to it's short path version the only solution? (such as C:\Progam~1\bla.BAT)
(XP) Add Remove Programs - file: C:\WINDOWS\system32\control.exe argument: appwiz.cpl
No more right click-run-as:
If you make a link/short cut to Privilege Spawner you can set it to always ask you to login the credentials you want to run the application as.
First, right click the short cut and select properties. Then select the 'Shortcut' tab, press the Advanced button, and select Run with different credentials.
Right click the short cut and select properties. Then select the 'Shortcut' tab, and check 'Run as different user'.
Security Notes
The targeted use for this application is to start applications with alternate Windows user credentials, most likely higher privileged credentials. Through the Windows messaging system or other means, targeting Privilege Spawner specifically, a trojan or script could possibly use it to run applications in your list, escalate it's own privileges, or worse. If using in a secure environment, you should understand the possible security issues associated with running an application with privilege spawning capabilities. Privilege Spawner's config file holds it's application launch list specifications and is a prime target. This file is now (as of build 5) placed in the [USER]\Local Settings\Application Data\ folder making it a private file of the user Privilege Spawner was ran as. You should concider additional privileges modifications you might require to secure your configuration file.
Download
MD5 Sum: 6e99b185843c115ec01b30f91def80bc
The exe is compressed via UPX v 3.03w (http://upx.sf.net) down from 542 KB.
Source Code: PrivilegeSpawner_2.0.1.1_SourceCode.zip (18 KB)
MD5 Sum: 1ceaa8a19c71ba58332fc9a280f6ad30
Version History
- Version 2 Build 1: Bumped to version 2.0 because this project is nearly final. Now saves configuration immediately when changed, as apposed to when closed. Fixed confirm launch dialog to display details properly.(Current)
- Build 6: Minor cleanups. Now minimizes to system tray when closed, instead of having a special minimize button.
Download: PrivilegeSpawner.exe (210 KB) Version 1.1.1.6
MD5 Sum: 8ef47fd0fb4e55eff81940534c2269de
The exe is compressed via UPX v 3.03w (http://upx.sf.net) down from 542 KB.
Source Code: PrivilegeSpawner_1_1_1_6_SourceCode.zip (17 KB)
MD5 Sum: 6ff8cf04b722c67d42633d1d9bffbb33
- Build 5: Added support for specifying a path and arguments with the command/executable to spawn. Moved config file to [USER]\Local Settings\Application Data\.
Download: PrivilegeSpawner.exe (220 KB) Version 1.1.1.5
MD5 Sum: f85cf23a8c5ec96610dfb6a9853cb5a9
The exe is compressed via UPX v 3.01w (http://upx.sf.net) down from 576 KB.
Source Code: PrivilegeSpawner_1_1_1_5_SourceCode.zip (24 KB)
MD5 Sum: 9150bb16c699062c4ef6712a3a0502bc
- Build 4: Non-beta release candidate. Finished off the item list, with the ability to edit, delete, and reorder the list. Added an about box and a warning to use full directory and file names. Config file from previous beta builds not supported.
Download: PrivilegeSpawner.exe (215 KB) Version 1.1.1.4
MD5 Sum: 1233194291903c15f4fda0935bd27ff0
The exe is compressed via UPX v 2.3.0 (http://upx.sf.net) down from 560 KB.
Source Code: PrivilegeSpawner_1_1_1_4_SourceCode.zip (23 KB)
MD5 Sum: d3c851b57d59611b9b72a24ec6965fa2
- Build 3: Alpha version. Basic functionality. Practical application list management was not yet implemented. You could add, but not remove, or reorder items in the list.
PrivilegeSpawner.exe Version 1.1.1.3 (216.5 KB) - PrivilegeSpawner_1_1_1_3_SourceCode.zip (14.2 KB)