在内存中运行exe的Visual基本示例,不提取它 [英] Visual basic example for run exe in memory with out extract it

查看:83
本文介绍了在内存中运行exe的Visual基本示例,不提取它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在问题中,所有我需要的是一个代码示例,在Visual Basic中运行内存中的文件,然后以高清格式提取它,以便保护我的原始内容



我的尝试:



 Imports System,Microsoft.VisualBasic .CompilerServices 

Dim ok As Object = LateBinding.LateGet(New AppDomainManager()。EntryAssembly,Nothing,load,New Object(){this is some byte is my file},Nothing,Nothing)
Dim方法As RuntimeMethodHandle = LateBinding.LateGet(ok.EntryPoint,Nothing,MethodHandle,Nothing,Nothing,Nothing)
Dim Go As Object = Reflection.Emit.MethodBuilder.GetMethodFromHandle(method)
LateBinding.LateCall(Go,Go.GetType,invoke,New Object(){(0 + 0 + 0 + 0),Nothing},Nothing,Nothing)





但是我得到了这个erorr

未找到类型'Assembly'的公共成员'。

我认为app-domain manager .entry部分中的问题

解决方案

请参阅 LateBinding.LateGet方法(Object,Type,String,Object [],String [],Boolean [])(Microsoft.VisualBasic.CompilerServices) [ ^ ]。

As in the Question all what i need is an example of code that run file in memory in visual basic with out extract it in HD so that i protect my original content

What I have tried:

Imports System, Microsoft.VisualBasic.CompilerServices

Dim ok As Object = LateBinding.LateGet(New AppDomainManager().EntryAssembly, Nothing, load, New Object() {this is some byte which is my file}, Nothing, Nothing)
Dim method As RuntimeMethodHandle = LateBinding.LateGet(ok.EntryPoint, Nothing, "MethodHandle", Nothing, Nothing, Nothing)
Dim Go As Object = Reflection.Emit.MethodBuilder.GetMethodFromHandle(method)
LateBinding.LateCall(Go, Go.GetType, invoke, New Object() {(0 + 0 + 0 + 0), Nothing}, Nothing, Nothing)



but i get this erorr

Public member '' on type 'Assembly' not found.

which i believe that the problem in "app-domain manager .entry" part

解决方案

See the comments at LateBinding.LateGet Method (Object, Type, String, Object[], String[], Boolean[]) (Microsoft.VisualBasic.CompilerServices)[^].


这篇关于在内存中运行exe的Visual基本示例,不提取它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆