【VB】临时/暂时关闭/禁用Windows文件保护

admin 2021年4月3日18:59:08评论59 views字数 973阅读3分14秒阅读模式

    VB 临时/暂时关闭/禁用Windows文件保护,VB临时关闭/禁用Windows文件保护,VB暂时关闭/禁用Windows文件保护,VB临时/暂时关闭Windows文件保护,VB临时/暂时禁用Windows文件保护,VB临时关闭Windows文件保护,VB临时禁用Windows文件保护,VB暂时关闭Windows文件保护,VB暂时禁用Windows文件保护,VB关闭Windows文件保护,VB禁用Windows文件保护,VB关闭文件保护,VB禁用文件保护,VB关文件保护,VB文件保护,VB SfcFileException,VB SfcFileException Lib "sfc_os.dll",VB SfcFileException(0, StrPtr(S), -1),SfcFileException。

VB 临时/暂时关闭/禁用Windows文件保护:

Private Declare Function SfcFileException Lib "sfc_os.dll" Alias "#5" (ByVal dwUnknown0 As Long, ByVal pwszFile As Long, ByVal dwUnknown1 As Long) As Long '调用Windows文件保护Dll

Private Sub Command1_Click()
    Dim S As String
    S = "C:windowssystem32taskmgr.exe" + vbNullChar
    If SfcFileException(0, StrPtr(S), -1) = 0 Then
        FileCopy "C:windowssystem32cmd.exe", S                               '如果禁用该文件保护成功则复制记事本过去
    Else
        MsgBox "操作失败!"
    End If
End Sub

文章来源于lcx.cc:【VB】临时/暂时关闭/禁用Windows文件保护

相关推荐: chrome 敏感信息自动探测插件

chrome 敏感信息自动探测插件 Aring | 2013-12-27 08:54 工具来源: 看猪猪侠大牛发布的漏洞时,发现用到一款svn自动探测插件感觉挺好玩,可惜苦苦寻找也没有,就自己开发了一款,并做了一下扩展。其实没什么技术含量就是几个http请求。…

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年4月3日18:59:08
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   【VB】临时/暂时关闭/禁用Windows文件保护https://cn-sec.com/archives/319464.html

发表评论

匿名网友 填写信息