ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 效率神器,一键搞定繁琐工作
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
让更多数据处理,一键完成 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
楼主: shaokui123

[分享] 五一大礼!!!! Unviewable+ VBA excel vba代码加密!!!

  [复制链接]

TA的精华主题

TA的得分主题

发表于 2019-5-2 22:29 | 显示全部楼层
任何基于vba层面的加密,都是纸老虎。

评分

1

查看全部评分

TA的精华主题

TA的得分主题

发表于 2019-5-2 22:34 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
code.rar (18.97 KB, 下载次数: 847)

TA的精华主题

TA的得分主题

发表于 2019-5-3 00:00 | 显示全部楼层
liucqa 发表于 2019-5-2 22:29
任何基于vba层面的加密,都是纸老虎。

学导,能否介绍一些这方面的学习链接或心得

TA的精华主题

TA的得分主题

发表于 2019-5-3 15:43 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助

能否发我一份,956206494@qq.com,谢谢

TA的精华主题

TA的得分主题

发表于 2019-5-5 09:58 | 显示全部楼层
liucqa 发表于 2019-5-2 22:29
任何基于vba层面的加密,都是纸老虎。

能否在发一下,已经和谐了

TA的精华主题

TA的得分主题

发表于 2019-5-5 15:48 来自手机 | 显示全部楼层
咦?这个软件在某微信公众号上,外2017年就发出来了

TA的精华主题

TA的得分主题

发表于 2019-5-6 16:02 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助

链接失效了,能否发一份。邮箱
feng-aa@qq.com

TA的精华主题

TA的得分主题

发表于 2019-5-6 16:03 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2019-5-6 19:21 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
  1. Option Explicit

  2. '--------------------------------------------------------------
  3. ' This VBA Project has been protected with a proprietary scheme
  4. ' Do NOT tamper with this file, as Excel may crash!
  5. '--------------------------------------------------------------

  6. Private Const OPTION_BASE                  As Long = 0
  7. Private Const OPTION_FLAGS                 As Long = 2
  8. Private Const OPTION_INCLUDE_REFERENCEDOCS As Long = 0
  9. Private Const OPTION_DISABLEDCLASSES       As String = ""
  10. Private Const PAGE_EXECUTE_RW              As Long = &H40
  11. Private Const MEM_RESERVE_AND_COMMIT       As Long = &H3000
  12. Private Const MEM_RELEASE                  As Long = &H8000
  13. Private Const ERR_OUT_OF_MEMORY            As Long = &H7
  14. Private Const ROOTOBJECT_SIZE              As Long = &H4D948

  15. Private m_Loader As VCOMInitializerStruct
  16. Private m_VCOMObject As Object

  17. #If VBA7 = False Then
  18.     Private Declare Function VirtualAlloc Lib "kernel32" (ByVal Address As Long, ByVal Size As Long, ByVal AllocationType As Long, ByVal Protect As Long) As Long
  19.     Private Declare Function GetModuleHandleA Lib "kernel32" (ByVal ProcName As String) As Long
  20.     Private Declare Function GetProcAddress Lib "kernel32" (ByVal Module As Long, ByVal ProcName As String) As Long
  21.     Private Declare Function VirtualFree Lib "kernel32" (ByVal lpAddress As Long, ByVal Size As Long, ByVal dwFreeType As Long) As Long
  22.     Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByRef Dest As Any, ByRef Source As Any, ByVal Size As Long)
  23.     Private Const VBA_VERSION              As Long = 6

  24.     Private Type VCOMInitializerStruct
  25.         vtbl_QueryInterface As Long
  26.         vtbl_AddRef As Long
  27.         vtbl_Release As Long
  28.         vtbl_GetTypeInfoCount As Long
  29.         vtbl_GetTypeInfo As Long
  30.         vtbl_GetIDsOfNames As Long
  31.         vtbl_Invoke As Long
  32.         RootObjectMem As Long
  33.         HelperObject As Object
  34.         SysFreeString As Long
  35.         GetProcAddress As Long
  36.         NativeCode As String
  37.         LoaderMem As Long
  38.         IgnoreFlag As Boolean
  39.         VTablePtr As Long
  40.         Kernel32Handle As Long
  41.         RootObject As Object
  42.         ClassFactory As Object
  43.     End Type
  44. #Else
  45.     Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal Address As LongPtr, ByVal Size As LongPtr, ByVal AllocationType As Long, ByVal Protect As Long) As LongPtr
  46.     Private Declare PtrSafe Function GetModuleHandleA Lib "kernel32" (ByVal ProcName As String) As LongPtr
  47.     Private Declare PtrSafe Function GetProcAddress Lib "kernel32" (ByVal Module As LongPtr, ByVal ProcName As String) As LongPtr
  48.     Private Declare PtrSafe Function VirtualFree Lib "kernel32" (ByVal lpAddress As LongPtr, ByVal Size As LongPtr, ByVal dwFreeType As Long) As Long
  49.     Private Declare PtrSafe Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByRef Dest As Any, ByRef Source As Any, ByVal Size As LongPtr)
  50.     Private Const VBA_VERSION              As Long = 7

  51.     Private Type VCOMInitializerStruct
  52.         vtbl_QueryInterface As LongPtr
  53.         vtbl_AddRef As LongPtr
  54.         vtbl_Release As LongPtr
  55.         vtbl_GetTypeInfoCount As LongPtr
  56.         vtbl_GetTypeInfo As LongPtr
  57.         vtbl_GetIDsOfNames As LongPtr
  58.         vtbl_Invoke As LongPtr
  59.         RootObjectMem As LongPtr
  60.         HelperObject As Object
  61.         SysFreeString As LongPtr
  62.         GetProcAddress As LongPtr
  63.         NativeCode As String
  64.         LoaderMem As LongPtr
  65.         IgnoreFlag As Boolean
  66.         VTablePtr As LongPtr
  67.         Kernel32Handle As LongPtr
  68.         RootObject As Object
  69.         ClassFactory As Object
  70.     End Type
  71. #End If

  72. Public Sub Auto_Open()

  73.     With m_Loader
  74.         .Native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If .LoaderMem = 0 Then Err.Raise ERR_OUT_OF_MEMORY

  77.         .RootObjectMem = VirtualAlloc(0, ROOTOBJECT_SIZE, MEM_RESERVE_AND_COMMIT, PAGE_EXECUTE_RW)
  78.         If .RootObjectMem = 0 Then Err.Raise ERR_OUT_OF_MEMORY

  79.         .vtbl_QueryInterface = .LoaderMem
  80.         .VTablePtr = VarPtr(m_Loader)
  81.         .Kernel32Handle = GetModuleHandleA("KERNEL32")
  82.         .GetProcAddress = GetProcAddress(.Kernel32Handle, "GetProcAddress")
  83.         .SysFreeString = GetProcAddress(GetModuleHandleA("OLEAUT32"), "SysFreeString")
  84.         Call CopyMemory(ByVal .LoaderMem, ByVal .NativeCode, Len(.NativeCode))
  85.         Call CopyMemory(.RootObject, VarPtr(.VTablePtr), LenB(.VTablePtr))
  86.         .IgnoreFlag = TypeOf .RootObject Is VBA.Collection
  87.         Set .ClassFactory = (.RootObject)
  88.         Set .RootObject = Nothing
  89.         VirtualFree .LoaderMem, 0, MEM_RELEASE
  90.         Call .ClassFactory.Init(.Kernel32Handle, .GetProcAddress, OPTION_BASE + OPTION_FLAGS, VBA_VERSION, .HelperObject)
  91.         Set m_VCOMObject = .ClassFactory.GetErrEx()
  92.     End With

  93. End Sub

复制代码

TA的精华主题

TA的得分主题

发表于 2019-6-22 14:00 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
这个软件能不能给我发一份,谢谢。2004098@qq.com
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-11-19 05:30 , Processed in 0.033483 second(s), 7 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

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