Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Help]Convert VB6 code to VB.NET[Solved]

[Help]Convert VB6 code to VB.NET[Solved]

Posts 1–14 of 14 · Page 1 of 1
nathanael890
nathanael890
[Help]Convert VB6 code to VB.NET[Solved]
Hey guys.

I have tried this code [Memory Editing VB6]
but it didn't work on VB.NET when it is debugged..

Can please someone convert it? so I can create my basic trainer ^^

Link : http://www.mpgh.net/forum/33-visual-...s-vault-*****ml
#1 · 16y ago
Hassan
Hassan
Quote Originally Posted by nathanael890 View Post
Hey guys.

I have tried this code [Memory Editing VB6]
but it didn't work on VB.NET when it is debugged..

Can please someone convert it? so I can create my basic trainer ^^

Link : http://www.mpgh.net/forum/33-visual-...s-vault-*****ml




#2 · 16y ago
nathanael890
nathanael890
Oh. A really great thanks!!!

I didn't know there is a function like that XD

*Solved by FLAMESABER
#3 · 16y ago
QD
qddW$#%^jtyjtyj
@FlameSaber there you pwned him

LOL if you just think about it you are gonna lol at the explenation cause he asked if he could convert and how and you comes with picture about 2 simple clicks lol
#4 · 16y ago
nathanael890
nathanael890
Oops...

In my tools, there is nothing like that...
#5 · 16y ago
Hassan
Hassan
Quote Originally Posted by nathanael890 View Post
Oops...

In my tools, there is nothing like that...
You need to get Visual Studio not Visual Basic Express for this to work

Edit: Also make sure you are on the code window xD
#6 · edited 16y ago · 16y ago
Jason
Jason
I have VB express 2008 and it has the convert option
#7 · 16y ago
Hassan
Hassan
Good Deezy xD.

@nathanael890: Be sure you are on the code window before clicking the tools menu

950th post
#8 · 16y ago
Lonely Tedy Bear
Lonely Tedy Bear
very nice i didn't know you could convert vb6 code to .net , well now i know thank's alot =p FLAMESABER
#9 · 16y ago
Hassan
Hassan
Quote Originally Posted by Lonely Tedy Bear View Post
very nice i didn't know you could convert vb6 code to .net , well now i know thank's alot =p FLAMESABER
No problem ... No body knew but now they do
#10 · 16y ago
Lolland
Lolland
Soo... solved then.

Don't post if older than 7 days, unless completely necessary.
#11 · 16y ago
nathanael890
nathanael890
Okay. its now really solved!!

a really good thanks to flamesaber ^^.
#12 · 16y ago
nathanael890
nathanael890
Sorry for double posting...
I just want to notify this thread again.

when I convert it to vb8, it seems some codes can't be converted..

could someone can post it here?
#13 · 16y ago
Blubb1337
Blubb1337
Screw that code, I've posted a module in the CoD Section:

Create a new module.

Code:
Module Module1

#region "Declarations"

    Private Declare Function OpenProcess Lib "kernel32" Alias "OpenProcess" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
    Private Declare Function WriteProcessMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function WriteFloatMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function ReadFloat Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByRef buffer As Single, ByVal size As Int32, ByRef lpNumberOfBytesRead As Int32) As Boolean
    Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Integer) As Integer

    Private string1 As Long
    Private string2 As Integer
    Private RBuff1 As Long
    Private RBuff2 As Single
    Private RBuff3 As Integer

#end region

#Region "Check Process/ReadDll"

  Private Function readdll(ByVal modulename As String)
        Dim procmodule As ProcessModule
        Dim constant1 As Integer
        Dim constant2 As Long
        Dim constant3 As Process() = Process.GetProcessesByName("iw4mp")
        If constant3.Length = 0 Then
            Return 0
        End If
        For Each procmodule In constant3(0).Modules
            If modulename = procmodule.ModuleName Then
                constant1 = procmodule.BaseAddress
            End If
        Next
        constant2 = constant1
        Return constant2
    End Function

Public Function IsProcessOpen(ByVal name As String) As Boolean

        For Each clsProcess As Process In Process.GetProcesses

            If clsProcess.ProcessName.Contains(name) Then


                Return True

            End If
        Next
        ' Do nothing 
        Return False
    End Function


#end region

#Region "Hacks"

    'WriteMemory
    Private Function WriteMemory(ByVal Address As Integer, ByVal Value As Long, ByVal Bytes As Integer)
        Dim iw4mpLookUp As Process() = Process.GetProcessesByName("iw4mp")
        If iw4mpLookUp.Length = 0 Then
            End
        End If
        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
        WriteProcessMemory(processHandle, Address, Value, Bytes, Nothing)
        CloseHandle(processHandle)

        Return Nothing
    End Function

    'WriteFloat
    Private Function WriteFloat(ByVal Address As Integer, ByVal Value As Single)
        Dim iw4mpLookUp As Process() = Process.GetProcessesByName("iw4mp")
        If iw4mpLookUp.Length = 0 Then
            End
        End If
        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
        WriteFloatMemory(processHandle, Address, Value, 4, Nothing)
        CloseHandle(processHandle)

        Return Nothing
    End Function

    'NOP
    Private Function NOP(ByVal Address As Integer, ByVal value As Integer)
        Dim iw4mpLookUp As Process() = Process.GetProcessesByName("iw4mp")
        If iw4mpLookUp.Length = 0 Then
            End
        End If
        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
        WriteProcessMemory(processHandle, Address, value, 1, Nothing)
        CloseHandle(processHandle)

        Return Nothing
    End Function

#End region

#Region "Functions"

    Public Function memoryh4x(ByVal address As String, ByVal value As Long, ByVal bytes As Byte)
        If IsProcessOpen("iw4mp") Then

            string1 = readdll("cshell.dll")
            string2 = "&H" & Hex(string1 + address)
            WriteMemory(string2, value, bytes)
        End If
        Return Nothing
    End Function

    Public Function floath4x(ByVal address As String, ByVal value As Long)
        If IsProcessOpen("iw4mp") Then

            string1 = readdll("cshell.dll")
            string2 = "&H" & Hex(string1 + address)
            WriteFloat(string2, value)
        End If
        Return Nothing
    End Function

    Public Function noph4x(ByVal address As String, ByVal value As Long)
        If IsProcessOpen("iw4mp") Then
            string1 = readdll("cshell.dll")
            string2 = "&H" & Hex(string1 + address)
            NOP(string2, value)


        End If
        Return Nothing
    End Function

#end region
End Module
Unlike C++ the address is buildt like this &HADRESS

C++ = 0xADDRESS
VB = &HADDRESS

Writing to memory:

Code:
memoryh4x(&H12BC89F, 1337, 4)
-> Address 12BC89F (4 bytes as datatype) -> Insert the value 1337

Write Float:

Code:
floath4x(&H12BC89F, 1337)
Nop:

Code:
noph4x(&H12BC89F, 6)
The only thing you gotta do is replace iw4mp with the name of your process. I.e. engine.

Easy. Have fun with it.
#14 · 16y ago
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Similar Threads

  • need help plz vb6 codeing fast registrationBy cjg333 in WarRock - International Hacks
    3Last post 19y ago
  • Need help converting code.By youngbucks in C++/C Programming
    16Last post 16y ago
  • [Help]Register Vb.net[Solved]By HaxPro in Visual Basic Programming
    3Last post 16y ago
  • [ Help ] VB6 Coding not workingBy ilovepie21 in Visual Basic Programming
    17Last post 18y ago
  • [help]Convert String to Color[Solved]By mnpeepno2 in Visual Basic Programming
    10Last post 16y ago

Tags for this Thread

None