[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[技术讨论] 关于电脑自带的一些com组件

本帖最后由 jyswjjgdwtdtj 于 2024-5-4 20:23 编辑

从我的电脑注册表内拿出来的 有一些删减 满足一些无聊的好奇心
  1. AccessControlList
复制代码
或可用于.net平台内
  1. ADODB.Command
  2. ADODB.Command.6.0
  3. ADODB.Connection
  4. ADODB.Connection.6.0
  5. ADODB.Error
  6. ADODB.Error.6.0
  7. ADODB.Parameter
  8. ……
  9. ADOX.Index.6.0
  10. ADOX.Key
  11. ADOX.Key.6.0
  12. ADOX.Table
  13. ADOX.Table.6.0
  14. ADOX.User
  15. ADOX.User.6.0
复制代码
链接数据库
  1. CDO.Configuration
  2. CDO.Configuration.1
  3. CDO.DropDirectory
  4. CDO.DropDirectory.1
  5. CDO.Message
  6. CDO.Message.1
  7. CDO.NNTPEarlyConnector
  8. CDO.NNTPEarlyConnector.1
  9. CDO.NNTPFinalConnector
  10. CDO.NNTPFinalConnector.1
  11. CDO.NNTPPostConnector
  12. CDO.NNTPPostConnector.1
  13. CDO.SMTPConnector
  14. CDO.SMTPConnector.1
复制代码
发邮件
  1. DXImageTransform.Microsoft.Alpha
  2. DXImageTransform.Microsoft.Alpha.1
  3. DXImageTransform.Microsoft.AlphaImageLoader
  4. DXImageTransform.Microsoft.AlphaImageLoader.1
  5. DXImageTransform.Microsoft.Barn
  6. DXImageTransform.Microsoft.Barn.1
  7. DXImageTransform.Microsoft.BasicImage
  8. ……
  9. DXImageTransform.Microsoft.Strips.1
  10. DXImageTransform.Microsoft.Wave
  11. DXImageTransform.Microsoft.Wave.1
  12. DXImageTransform.Microsoft.Wheel
  13. DXImageTransform.Microsoft.Wheel.1
  14. DXImageTransform.Microsoft.Wipe
  15. DXImageTransform.Microsoft.Wipe.1
  16. DXImageTransform.Microsoft.ZigZag
  17. DXImageTransform.Microsoft.ZigZag.1
  18. DXTransform.Microsoft.DXLUTBuilder
  19. DXTransform.Microsoft.DXLUTBuilder.1
复制代码
ie8以前作为其css的扩充
  1. Excel.Addin
  2. Excel.AddInMacroEnabled
  3. Excel.Application
  4. Excel.Application.11
  5. Excel.Application.12
  6. Excel.Backup
  7. Excel.Chart
  8. Excel.Chart.5
  9. ……
  10. Excel.SheetMacroEnabled.12
  11. Excel.SLK
  12. Excel.Template
  13. Excel.Template.8
  14. Excel.TemplateMacroEnabled
  15. ExcelChart
  16. ExcelMacrosheet
  17. ExcelWorksheet
复制代码
excel
  1. FaxComEx.FaxDocument
  2. FaxComEx.FaxDocument.1
  3. FaxComEx.FaxServer
  4. FaxComEx.FaxServer.1
  5. FaxControl.FaxControl
  6. FaxControl.FaxControl.1
  7. FaxServer.FaxServer
  8. FaxServer.FaxServer.1
  9. FaxTiff.FaxTiff
  10. FaxTiff.FaxTiff.1
复制代码
传真
  1. FilePlaybackTerminal.FilePlaybackTerminal.1
  2. fRecordingTerminal.FileRecordingTerminal.1
复制代码
文件播放终端和文件录制终端
  1. Fsrm.FsrmAccessDeniedRemediationClient
  2. Fsrm.FsrmAccessDeniedRemediationClient.1
  3. Fsrm.FsrmClassificationManager
  4. Fsrm.FsrmClassificationManager.1
  5. Fsrm.FsrmConsumerModuleInproc.1
  6. Fsrm.FsrmExportImport.1
  7. Fsrm.FsrmPipelineModuleConnector
  8. Fsrm.FsrmPipelineModuleConnector.1
  9. Fsrm.FsrmTextReader
  10. Fsrm.FsrmTextReader.1
复制代码
针对某不知名接口
  1. HtmlDlgHelper.HtmlDlgHelper.1
  2. HtmlDlgSafeHelper.HtmlDlgSafeHelper.1
复制代码
可以在hta中弹出好看的文件选择保存对话框
  1. IDBHO.IDBHOCtrl.1
复制代码
“对于ie操作的扩展”
  1. IE_FULL_SCREEN.IEKeyControl
  2. IE_FULL_SCREEN.IEKeyControl.1
复制代码
有意思
  1. (new-object -comobject IE_FULL_SCREEN.IEKeyControl).sendf11
复制代码
让我的ps窗口最大化切换不了
  1. Internet.HHCtrl
  2. Internet.HHCtrl.1
复制代码
chm文件的操作 可以弹出关不掉的弹窗 控制弹窗的位置
  1. InternetExplorer.Application
  2. InternetExplorer.Application.1
复制代码
ie
  1. LayoutRect.LayoutRect.1
复制代码
ie打印模板
  1. LDAPNamespace
复制代码
ldap命名空间
  1. LocationDisp.CivicAddressReportFactory.1
  2. LocationDisp.DispCivicAddressReport.1
  3. LocationDisp.DispLatLongReport.1
  4. LocationDisp.LatLongReportFactory.1
复制代码
地理位置api
  1. MediaPlayer.MediaPlayer.1
复制代码
某播放软件
  1. micaut.MathInputControl.1
复制代码
接口公开将墨迹输入转换为解释数学输出的方法 或可用于hta中?
  1. Microsoft.XMLDOM
  2. Microsoft.XMLDOM.1.0
  3. Microsoft.XMLDSO
  4. Microsoft.XMLDSO.1.0
  5. Microsoft.XMLHTTP
  6. Microsoft.XMLHTTP.1.0
复制代码
xml读取写入,xmlhttprequest
  1. msinkaut.DrawingAttributes.1
  2. msinkaut.InkCollector.1
  3. msinkaut.InkObject.1
  4. ……
  5. msinkaut.InkRecognizerGuide.1
  6. msinkaut.InkRecognizers.1
  7. msinkaut.InkRectangle.1
  8. msinkaut.InkRenderer.1
  9. msinkaut.InkTablets.1
  10. msinkaut.InkTransform.1
  11. msinkaut.InkWordList.1
  12. msinkdiv.InkDivider.1
复制代码
c++内用于绘图?
  1. MsTscAx.MsTscAx.1
  2. MsTscAx.MsTscAx.10
  3. MsTscAx.MsTscAx.11
  4. MsTscAx.MsTscAx.12
  5. MsTscAx.MsTscAx.2
  6. ……
  7. MsTscAx.MsTscAx.6
  8. MsTscAx.MsTscAx.7
  9. MsTscAx.MsTscAx.8
  10. MsTscAx.MsTscAx.9
复制代码
远程桌面控制
  1. MSTSWebProxy.MSTSWebProxy
  2. MSTSWebProxy.MSTSWebProxy.1
复制代码
远程桌面控制
  1. MSVidCtl.EVR.1
  2. MSVidCtl.MSEventBinder.1
  3. MSVidCtl.MSVidAnalogTunerDevice.1
  4. MSVidCtl.MSVidAudioRenderer.1
  5. MSVidCtl.MSVidAudioRendererDevices.1
  6. MSVidCtl.MSVidBDATunerDevice.1
  7. MSVidCtl.MSVidCCA.1
  8. MSVidCtl.MSVidClosedCaptioning.1
  9. MSVidCtl.MSVidClosedCaptioningSI.1
  10. MSVidCtl.MSVidCtl.1
  11. MSVidCtl.MSVidEncoder.1
  12. MSVidCtl.MSVidFeatures.1
  13. ……
  14. MSVidCtl.MSVidStreamBufferSource.1
  15. MSVidCtl.MSVidStreamBufferV2Source.1
  16. MSVidCtl.MSVidVideoRenderer.1
  17. MSVidCtl.MSVidVideoRendererDevices.1
  18. MSVidCtl.MSVidVMR9.1
  19. MSVidCtl.MSVidWebDVDAdm.1
复制代码
视频渲染插件
  1. Msxml
  2. MSXML.DOMDocument
  3. MSXML.FreeThreadedDOMDocument
  4. Msxml2.DOMDocument
  5. Msxml2.DOMDocument.3.0
  6. Msxml2.DOMDocument.6.0
  7. Msxml2.DSOControl
  8. ……
  9. Msxml2.MXNamespaceManager.6.0
  10. Msxml2.MXXMLWriter
  11. Msxml2.MXXMLWriter.3.0
  12. Msxml2.MXXMLWriter.6.0
  13. Msxml2.SAXAttributes
  14. Msxml2.SAXAttributes.3.0
  15. Msxml2.SAXAttributes.6.0
  16. Msxml2.SAXXMLReader
  17. Msxml2.SAXXMLReader.3.0
  18. Msxml2.SAXXMLReader.6.0
  19. Msxml2.ServerXMLHTTP
  20. Msxml2.ServerXMLHTTP.3.0
  21. Msxml2.ServerXMLHTTP.6.0
  22. Msxml2.XMLHTTP
  23. Msxml2.XMLHTTP.3.0
  24. Msxml2.XMLHTTP.6.0
  25. Msxml2.XMLSchemaCache
  26. Msxml2.XMLSchemaCache.3.0
  27. Msxml2.XMLSchemaCache.6.0
  28. Msxml2.XSLTemplate
  29. Msxml2.XSLTemplate.3.0
  30. Msxml2.XSLTemplate.6.0
复制代码
新版xml,xsl读写  xmlhttp
  1. RegisterControl.Register
  2. RegisterControl.Register.1
复制代码
似乎可以查看电脑系统id?
  1. SAPI.SpAudioFormat
  2. SAPI.SpAudioFormat.1
  3. SAPI.SpCustomStream
  4. SAPI.SpCustomStream.1
  5. SAPI.SpDataKey
  6. SAPI.SpDataKey.1
  7. SAPI.SpFileStream
  8. SAPI.SpFileStream.1
  9. ……
  10. ……
  11. ……
  12. SAPI.SpVoice
  13. SAPI.SpVoice.1
  14. SAPI.SpWaveFormatEx
  15. SAPI.SpWaveFormatEx.1
复制代码
语音
  1. Scripting.Dictionary
  2. Scripting.Encoder
  3. Scripting.FileSystemObject
  4. Scripting.Signer
  5. Scriptlet.TypeLib
复制代码
字典 vbs加密 文件操作 vbs签名 guid
  1. Shell.Application
  2. Shell.Application.1
  3. Shell.Explorer
  4. Shell.Explorer.1
  5. Shell.Explorer.2
  6. Shell.FolderView
  7. Shell.FolderView.1
  8. ShellNameSpace.ShellNameSpace
  9. ShellNameSpace.ShellNameSpace.1
复制代码
shell脚本外壳
  1. System.Collections.ArrayList
  2. System.Collections.Queue
  3. System.Collections.Stack
  4. System.EnterpriseServices.CompensatingResourceManager.ClerkMonitor
  5. System.Security.Policy.Evidence
  6. ………………
复制代码
.net放出的动态数组 队列 栈 不知道干啥的 安全策略 还有很多很多.net对象
  1. TAPI.TAPI.1
复制代码
电话
  1. VBScript.RegExp
复制代码
正则
  1. WbemScripting.SWbemDateTime
  2. WbemScripting.SWbemDateTime.1
  3. WbemScripting.SWbemLocator
  4. WbemScripting.SWbemLocator.1
  5. WbemScripting.SWbemNamedValueSet
  6. WbemScripting.SWbemNamedValueSet.1
  7. WbemScripting.SWbemObjectPath
  8. WbemScripting.SWbemObjectPath.1
  9. WbemScripting.SWbemRefresher
  10. WbemScripting.SWbemRefresher.1
  11. WbemScripting.SWbemSink
  12. WbemScripting.SWbemSink.
复制代码
wmi
  1. WIA.CommonDialog
  2. WIA.CommonDialog.1
  3. WIA.DeviceManager
  4. WIA.DeviceManager.1
  5. WIA.ImageFile
  6. WIA.ImageFile.1
  7. WIA.ImageProcess
  8. WIA.ImageProcess.1
  9. WIA.Rational
  10. WIA.Rational.1
  11. WIA.Vector
  12. WIA.Vector.1
复制代码
wia操作图片
  1. WinHttp.WinHttpRequest.5.1
复制代码
用途更广的xmlhttp
  1. WMPlayer.OCX
  2. WMPlayer.OCX.7
复制代码
winmediaplayer
  1. Word.Application
  2. Word.Application.11
  3. Word.Application.12
  4. Word.Document
  5. Word.Document.12
  6. Word.Document.6
  7. Word.Document.8
  8. Word.DocumentMacroEnabled
  9. Word.DocumentMacroEnabled.12
  10. Word.Picture
  11. Word.Picture.6
  12. Word.Picture.8
  13. Word.RTF.8
  14. Word.Template
  15. Word.Template.12
  16. Word.Template.8
  17. Word.TemplateMacroEnabled
  18. Word.TemplateMacroEnabled.12
复制代码
word
  1. WScript.Network
  2. WScript.Network.1
  3. WScript.Shell
  4. WScript.Shell.1
复制代码
wsh网络 wsh外壳
  1. WSHController
复制代码
wsh远程控制
  1. *file
  2. --e.g. htmlfile,jpgfile,xslfile
  3. E.message/rfc822
  4. IE.text/html
复制代码
com版dom
  1. Microsoft.DiskQuota.1
复制代码
修改磁盘配额
  1. Microsoft.FeedsManager
复制代码
管理rss
  1. Microsoft.FreeThreadedXMLDOM
  2. Microsoft.FreeThreadedXMLDOM.1.0
复制代码
顾名思义 类似于htmlfile的xmldom 不知有什么区别
  1. Microsoft.GroupPolicy.AdmTmplEditor.GPMAdmTmplEditorManager
复制代码
与安全设置有关 网上有基于此的黑客攻击实例
  1. Microsoft.IE.Manager
复制代码
从.net库里拉出来的
  1. Microsoft.JScript.COMFieldInfo
  2. Microsoft.JScript.COMMethodInfo
  3. Microsoft.JScript.COMPropertyInfo
  4. Microsoft.JScript.DebugConvert
  5. Microsoft.JScript.JSAuthor
  6. Microsoft.JScript.Vsa.VsaEngine
复制代码
“使 JScript 能够与外部 COM 字段通信”………… 似乎提供给jscript.net
  1. Microsoft.Update.AgentInfo
  2. Microsoft.Update.AgentInfo.1
  3. Microsoft.Update.AutoUpdate
  4. Microsoft.Update.AutoUpdate.1
  5. Microsoft.Update.Downloader
  6. Microsoft.Update.Downloader.1
  7. Microsoft.Update.InstallationAgent
  8. Microsoft.Update.InstallationAgent.1
  9. …………
  10. Microsoft.Update.StringColl
  11. Microsoft.Update.StringColl.1
  12. Microsoft.Update.SystemInfo
  13. Microsoft.Update.SystemInfo.1
  14. Microsoft.Update.UpdateColl
  15. Microsoft.Update.UpdateColl.1
  16. Microsoft.Update.WebProxy
  17. Microsoft.Update.WebProxy.1
复制代码
顾名思义 网上有专门学wuapi的教程
  1. Microsoft.WaaSMedic
  2. Microsoft.WaaSMedic.1
复制代码
服务医疗代理???

似乎不全 缺少如WindowsInstaller.Installer等
1

评分人数

如WindowsInstaller.Installer在ps中 用get-member显示不出他的属性方法 不知道是为什么

TOP

本帖最后由 jyswjjgdwtdtj 于 2024-5-18 13:32 编辑

选择一些有意思的com组件的实例
  1. (new-object -comobject IE_FULL_SCREEN.IEKeyControl).sendf11()
复制代码
  1. set w=createobject("IE_FULL_SCREEN.IEKeyControl")
  2. w.sendf11
  3. wscript.stdin.readline
复制代码
强制最大化了我的控制台窗口 还隐藏了右上角的–▢x(其实就是按F11键)
  1. Set html = CreateObject("htmlfile")
  2. Set window = html.parentWindow
  3. jsonstr="{""hello"":""goodbye""}"
  4. window.execScript "var json = " & jsonstr, "JScript"
  5. Set json = window.json
复制代码
解析json
  1. set s=createobject("shell.application")
  2. s.minimizeall
复制代码
最小化所有窗口
  1. Option Explicit
  2. Dim se, fso
  3. Dim argv, file, str
  4. 'VBScript Encoder
  5. 'Author: Demon
  6. 'Website: https://demon.tw
  7. Set se  = CreateObject("Scripting.Encoder")
  8. Set fso = CreateObject("Scripting.FilesystemObject")
  9. For Each argv In WScript.Arguments
  10.     Set file = fso.OpenTextFile(argv)
  11.     str = file.ReadAll
  12.     file.Close
  13.     str = se.EncodeScriptFile(".vbs", str, 0 , "")
  14.     argv = Left(argv, Len(argv)-3) & ".vbe"
  15.     Set file = fso.OpenTextFile(argv, 2, True)
  16.     file.Write str
  17.     file.Close
  18. Next
  19. MsgBox "OK", vbInformation
复制代码
加密vbs至vbe 摘自demon
  1. ' 40_FileHash.VBS
  2. ' UMU @ 22:45 2011/8/10
  3. Option Explicit
  4. Dim wi
  5. Dim file
  6. Dim file_size
  7. Dim file_attributes
  8. Dim file_version
  9. Dim file_hash
  10. Set wi = CreateObject("WindowsInstaller.Installer")
  11. file = "C:\WINDOWS\explorer.exe"
  12. file_size = wi.FileSize(file)
  13. file_attributes = wi.FileAttributes(file)
  14. file_version = wi.FileVersion(file)
  15. file_hash = GetFileHash(file)
  16. Set wi = Nothing
  17. MsgBox "File: " & file & vbCrLf & _
  18. "Size: " & file_size & vbCrLf & _
  19. "Attributes: " & file_attributes & vbCrLf & _
  20. "Version: " & file_version & vbCrLf & _
  21. "MD5: " & file_hash
  22. Function GetFileHash(file_name)
  23.     Dim file_hash
  24.     Dim hash_value
  25.     Dim i
  26.    
  27.     Set file_hash = wi.FileHash(file_name, 0)
  28.    
  29.     hash_value = ""
  30.    
  31.     For i = 1 To file_hash.FieldCount
  32.         hash_value = hash_value & BigEndianHex(file_hash.IntegerData(i))
  33.     Next
  34.    
  35.     GetFileHash = hash_value
  36.    
  37.     Set file_hash = Nothing
  38. End Function
  39. Function BigEndianHex(Int)
  40.     Dim result
  41.     Dim b1, b2, b3, b4
  42.    
  43.     result = Hex(Int)
  44.     b1 = Mid(result, 7, 2)
  45.     b2 = Mid(result, 5, 2)
  46.     b3 = Mid(result, 3, 2)
  47.     b4 = Mid(result, 1, 2)
  48.    
  49.     BigEndianHex = b1 & b2 & b3 & b4
  50. End Function
复制代码
计算文件 MD5 hash 值
  1. set w=createobject("wscript.shell")
  2. set b=w.exec("powershell -windowstyle hidden exit")
  3. wscript.stdin.readline()
复制代码
cscript执行时最小化自生(按我的想法理应隐藏自身啊?)
  1. Sub UnZip(ByVal myZipFile, ByVal myTargetDir)
  2.     Set fso = CreateObject("Scripting.FileSystemObject")
  3.     If NOT fso.FileExists(myZipFile) Then
  4.         Exit Sub
  5.     ElseIf fso.GetExtensionName(myZipFile) <> "zip" Then
  6.         Exit Sub
  7.     ElseIf NOT fso.FolderExists(myTargetDir) Then
  8.         fso.CreateFolder(myTargetDir)
  9.     End If
  10.     Set objShell = CreateObject("Shell.Application")
  11.     Set objSource = objShell.NameSpace(myZipFile)
  12.     Set objFolderItem = objSource.Items()
  13.     Set objTarget = objShell.NameSpace(myTargetDir)
  14.     intOptions = 256
  15.     objTarget.CopyHere objFolderItem, intOptions
  16. End Sub
复制代码
解压zip文件 该对象也可以做到压缩 可惜对于带密码的做不到 摘自demon
  1. '设置剪切板的内容
  2. Dim Form, TextBox
  3. Set Form = CreateObject("Forms.Form.1")
  4. Set TextBox = Form.Controls.Add("Forms.TextBox.1").Object
  5. TextBox.MultiLine = True
  6. TextBox.Text = "忘记了,喜欢一个人的感觉"
  7. TextBox.SelStart = 0
  8. TextBox.SelLength = TextBox.TextLength
  9. TextBox.Copy
  10. '获取剪切板的内容
  11. Dim Form, TextBox
  12. Set Form = CreateObject("Forms.Form.1")
  13. Set TextBox = Form.Controls.Add("Forms.TextBox.1").Object
  14. TextBox.MultiLine = True
  15. If TextBox.CanPaste Then
  16.     TextBox.Paste
  17.     WScript.Echo TextBox.Text
  18. End If
复制代码
别致的剪贴板获取方法 摘自demon
  1. Set  WshShell = wscript.CreateObject("WScript.Shell")
  2. MsgBox "打开计算器",,"神奇的中文"
  3. WshShell.Sendkeys "品"
  4. MsgBox "打开芊芊静听",,"神奇的中文"
  5. WshShell.Sendkeys "频"
  6. MsgBox "打开我的电脑",,"神奇的中文"
  7. WshShell.Sendkeys "赌"
  8. Set WshShell = Nothing
复制代码
有趣的虚拟键码
  1. set w=createobject("Internet.HHCtrl")
  2. do
  3. w.textpopup "hello!",1,1,1,1,1
  4. wscript.sleep 50
  5. loop
复制代码
让hello持续跟随你的鼠标
  1. set hdlg=createobject("HtmlDlgHelper.HtmlDlgHelper.1")
  2. msgbox hdlg.getcharset("example")
  3. '134 中文字符集
  4. msgbox hdlg.getcharset("Symbol")
  5. '2 系统默认字符集
复制代码
看看电脑会用什么字符集来显示字符
  1. <!--==hta==-->
  2. <object id=HtmlDlgHelper classid=CLSID:3050f4e1-98b5-11cf-bb82-00aa00bdce0b></object>
  3. <script language=vbscript>
  4. sub window_onload()
  5. set a=HtmlDlgHelper.object.fonts
  6. for i=0 to a.length
  7. msgbox a.item(i)
  8. next
  9. end sub
  10. </script>
  11. <body>
  12. qqqq
  13. </body>
复制代码
输出所有字体

TOP

原来有这么多com 不过一大堆都不知怎么用
word跟excel的com不是要按装ms office才有???
还有vbs的set确实强 , 根本就是see as

TOP

回复 4# Five66


    word excel在wps,office 里都能用 一般人电脑上至少会有这两个软件之一
vba需要安装才有

TOP

返回列表