吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1281|回复: 6
收起左侧

[求助] 如何获取TrustedInstaller权限并执行reg脚本文件

[复制链接]
Jormungand911 发表于 2022-5-31 21:56
40吾爱币
目前使用的Windows 10 21H2系统,然后想要把在此处打开命令行和在此处打开Powershell同时显示出来,就导出和修改出了个reg脚本文件,但是执行时提示没有足够的权限写入!
使用搜索引擎搜到了下面两篇文章
https://www.sohu.com/a/478148799_114760
https://blog.eleusis.se/2020/02/17/becoming-nt-servicetrustedinstaller/
发现创建子进程的用户为SYSTEM,而非TrustedInstaller,并且通过regedit命令执行reg文件时仍然提示没有权限。
请问下如何让这个reg脚本文件执行成功?

注册表脚本如下:
[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell]
[-HKEY_CLASSES_ROOT\Directory\shell\cmd]
[-HKEY_CLASSES_ROOT\Directory\shell\Powershell]
[-HKEY_CLASSES_ROOT\Drive\shell\cmd]
[-HKEY_CLASSES_ROOT\Drive\shell\Powershell]

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"ShowBaseOnVelocityId"=dword:00639bc8
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell]
@="@shell32.dll,-8508"
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"ShowBaseOnVelocityId"=dword:00639bc8
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\shell\Powershell]
@="@shell32.dll,-8508"
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Directory\shell\Powershell\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

[HKEY_CLASSES_ROOT\Drive\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
"HideBasedOnVelocityId"=dword:00639bc8
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Drive\shell\Powershell]
@="@shell32.dll,-8508"
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Drive\shell\Powershell\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

最佳答案

查看完整内容

把文件改为压缩rar,再解压。把1.reg改为你的注册表

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

稻海香 发表于 2022-5-31 21:56
把文件改为压缩rar,再解压。把1.reg改为你的注册表
试下.txt (43.98 KB, 下载次数: 19)
 楼主| Jormungand911 发表于 2022-5-31 22:04
之前搜到的其他文章里说可以通过Process Hacker2,找到一个TrustedInstaller用户执行的进程,然后通过这个进程找到用户来执行。但是没找到这样的一个进程。。。
丨紫陌流年丶 发表于 2022-5-31 23:03
本帖最后由 丨紫陌流年丶 于 2022-5-31 23:18 编辑

Nsudo,你值得拥有。看这个帖子
https://www.52pojie.cn/thread-1609091-1-1.html

在windows上可以让你获得最高的权限。

免费评分

参与人数 1吾爱币 +2 热心值 +1 收起 理由
Jormungand911 + 2 + 1 热心回复!

查看全部评分

yjkiw 发表于 2022-6-1 08:01
本帖最后由 yjkiw 于 2022-6-1 08:06 编辑

D:\Win10此电脑右键添加
  |       |                    ├────────────────────Win10此电脑右键添加.cmd
  |       |                    ├────────────────────你的注册表.reg
  |       |                   |Bin
  |       |                   |   |x64
  |       |                   |   |    ├────NSudo.exe
  |       |                   |   |x86
  |       |                   |   |    ├────NSudo.exe


Win10此电脑右键添加.cmd  内容:
PS:你的注册表.reg也可换为  你的批处理.cmd

@echo off

if "%PROCESSOR_ARCHITECTURE%" equ "x86" set "Arch=x86"
if "%PROCESSOR_ARCHITECTURE%" equ "AMD64" set "Arch=x64"

@start /b "oemlogo - TrustedInstaller" "%~dp0Bin\%Arch%\NSudo.exe" -U:T -P:E "%~dp0你的注册表.reg"

免费评分

参与人数 1吾爱币 +2 热心值 +1 收起 理由
Jormungand911 + 2 + 1 感谢回复!因为前面有人先回复解决方案,所以就采纳他的答案了

查看全部评分

冥界3大法王 发表于 2022-6-1 09:00
WinNTSetup安装时,我就直接开启管理员权限了。

免费评分

参与人数 1热心值 +1 收起 理由
Jormungand911 + 1 热心回复!

查看全部评分

 楼主| Jormungand911 发表于 2022-6-1 09:18
冥界3大法王 发表于 2022-6-1 09:00
WinNTSetup安装时,我就直接开启管理员权限了。

学到了,之前没有用WinNTSetup安装过,不知道还可以这样开权限
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止回复与主题无关非技术内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-11 03:13

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表