| Win32-SysPrivilege documentation | view source | Contained in the Win32-SysPrivilege distribution. |
use Win32::SysPrivilege;
#create a super shell (command prompt with SYSTEM Privilege),
#all the thingy it execute can inherited to get the SYSTEM Privilege.
SysRun('cmd.exe');
#SysRun also support running a process with args too
SysRun('taskkill.exe','/F','/IM taskmgr.exe');
AdjustPrivilege(SeImpersonatePrivilege()); #See demo/demo2.pl
Executing others executableslike system(), but execute it with "SYSTEM" privilege
SysRun() AdjustPrivilege() and Privileges Names
demo/Demo1.pl demo/Demo2.pl My Mail: rootkwok <AT> cpan <DOT> org
Baggio, Kwok Lok Chung rootkwok <AT> cpan <DOT> org
Copyright (C) 2009 by Baggio, Kwok Lok Chung
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
| Win32-SysPrivilege documentation | view source | Contained in the Win32-SysPrivilege distribution. |