0x00

此方法可以双击程序获取权限

0x01

1.打开命令终端输入:

go get github.com/akavel/rsrc

2.在项目根目录创建名为nac.manifest的文件,并填充以下内容:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
        <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
            <security>
                <requestedPrivileges>
                    <requestedExecutionLevel level="requireAdministrator"/>
                </requestedPrivileges>
            </security>
    </trustInfo>
</assembly>

3.项目根目录下打开命令行输入:

rsrc -manifest nac.manifest -o nac.syso
go build

0x02

END

Last modification:October 24th, 2019 at 04:06 pm
如果觉得我的文章对你有用,请随意赞赏