吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 6351|回复: 11
收起左侧

[其他转载] 程序自我销毁(vb)

  [复制链接]
15193643451 发表于 2014-10-23 11:53
Form窗体:
  --------------------------------------------------------------------
  Private Sub Form_Load()
  Me.Hide
  '可以在这中间插入你需要程序增加的功能和指令
  Call KillMe
  End
  End Sub
  ---------------------------------------------------------------------
  Module代码:
  Private Declare Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (ByVal hModule As Long, ByVal lpFileName As String, ByVal nSize As Long) As Long
  Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
  Public Sub KillMe()
  Dim MyFilename As String
  Dim tmp As String * 255
  Dim l As Integer
  l = GetModuleFileName(0, tmp, 255)
  MyFilename = Mid(tmp, 1, l)
  Shell "cmd /c ping 127.0.0.1 -n 1 && del """ & MyFilename & """", vbHide:     ExitProcess (0)
  End Sub

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

酒桶里的提莫 发表于 2014-10-23 13:56
del     感觉差不多
ruoxin 发表于 2014-10-23 13:35
头像被屏蔽
yyz219 发表于 2014-10-23 12:45
Zde_Hui 发表于 2014-10-23 11:59
渣渣表示看不明,求大牛
Monitor 发表于 2014-10-23 14:29
延时删除自身
beta 发表于 2014-10-23 22:48
VB自毁,看一下
iamprole 发表于 2014-10-24 09:05
本帖最后由 iamprole 于 2014-10-24 09:10 编辑

执行个批处理删除程序文件吧。很久没玩VB了。
manbajie 发表于 2014-10-24 09:46
这是有多么厉害啊
头像被屏蔽
net_007 发表于 2015-3-20 17:47
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-9-22 19:33

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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