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] MD5 Updater

[Help] MD5 Updater

Posts 1–8 of 8 · Page 1 of 1
Blubb1337
Blubb1337
[Help] MD5 Updater
As the title says, I'm searching for an updater that uses md5 hashes. Meaning like if I have 20 different files on my ftp...it does compare the md5 hashes and updates if necessary...

Any suggestions <.<?

This is what I've found so far:

Code:
  Public Sub CheckSumAndRun(ByVal filename As String)
        Try
            f = New System.IO.FileStream(filename, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read, 8192)
        Catch ex As Exception
            MsgBox(ex.Message)
            Exit Sub
        End Try
        md5 = New System.Security.Cryptography.MD5CryptoServiceProvider
        md5.ComputeHash(f)
        Dim hash As Byte() = md5.Hash
        Dim buff As System.Text.StringBuilder = New System.Text.StringBuilder
        Dim hashByte As Byte
        For Each hashByte In hash
            buff.Append(String.Format("{0:X2}", hashByte))
        Next
        f.Close()
        If buff.ToString = main_md5 Then
            p = Diagnostics.Process.Start(main_name, MainStartParam)
            Me.Close()
        Else
            If My.Computer.FileSystem.FileExists(currdir & main_name) = True Then
                My.Computer.FileSystem.DeleteFile(currdir & main_name, FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
            End If
            wrong_main = True
            BackgroundWorker1.RunWorkerAsync()
        End If
    End Sub
#1 · edited 16y ago · 16y ago
Hassan
Hassan
Here's the function that calculates the MD5 hash of a file:

[php]Public Function MD5CalcFile(ByVal filepath As String) As String

Using reader As New System.IO.FileStream(filepath, IO.FileMode.Open, IO.FileAccess.Read)
Using md5 As New System.Security.Cryptography.MD5CryptoServiceProvi der

Dim hash() As Byte = md5.ComputeHash(reader)
Return ByteArrayToString(hash)

End Using
End Using

End Function

[/php]

Convert the array to hex string:
[php]Private Function ByteArrayToString(ByVal arrInput() As Byte) As String

Dim sb As New System.Text.StringBuilder(arrInput.Length * 2)

For i As Integer = 0 To arrInput.Length - 1
sb.Append(arrInput(i).ToString("X2"))
Next

Return sb.ToString().ToLower

End Function

[/php]

Finally call the MD5CalcFile function to get the hash. Loop through all files and calculate it.
#2 · edited 16y ago · 16y ago
Blubb1337
Blubb1337
That does not help me in getting a updater to work =D

/Haz idea.

But go ahead and help xD
#3 · 16y ago
Hassan
Hassan
Quote Originally Posted by Blubb1337 View Post
That does not help me in getting a updater to work =D
You don't know how to retrieve the files in a folder from FTP ? If you do, then this would be working !!
#4 · 16y ago
Blubb1337
Blubb1337
I don't know exactly, unfortunately, can you tell me? I've never done this before.
#5 · 16y ago
Hassan
Hassan
Quote Originally Posted by Blubb1337 View Post
I don't know exactly, unfortunately, can you tell me? I've never done this before.
Hmm...ok give me a minute to write MD5 Updater for u !!
#6 · 16y ago
NextGen1
NextGen1
Wow does everyone insist on using coded updates? I do , but I do it commercially... If your developing a release or practice code etc... Use VB's built in Update feature...

@Flamestabber , Maybe it's just me, but something familiar about you.... , in either case... no need to be so aggressive in your responses, if you want to help...then help... if not, and you feel you know the answer and you are 100% correct, then don't bother ..
#7 · 16y ago
Hassan
Hassan
Quote Originally Posted by NextGen1 View Post
Wow does everyone insist on using coded updates? I do , but I do it commercially... If your developing a release or practice code etc... Use VB's built in Update feature...

@Flamestabber , Maybe it's just me, but something familiar about you.... , in either case... no need to be so aggressive in your responses, if you want to help...then help... if not, and you feel you know the answer and you are 100% correct, then don't bother ..
Lol, its Flame Sabber.

Ya we have a heavenly connection lol...

I was not aggressive, just trying to help him out ASAP coz I wanted to complete my project I was writing...

Anywayz, I talked to him on MSN, and he don't want to login to FTP and still wants to compare hashes !!
#8 · 16y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • Help to updateBy miladkingpro in Combat Arms Help
    2Last post 15y ago
  • [Please Help] Auto-UpdatingBy twistedswift in Hack Requests
    0Last post 18y ago
  • Need help with updating my old Engine.Exe fileBy bobs__bees in Combat Arms Help
    7Last post 16y ago
  • Help Me Update my AFK BotBy User1 in Combat Arms Discussions
    2Last post 16y ago
  • [Help]Auto UpdateBy snotpig in Visual Basic Programming
    7Last post 16y ago

Tags for this Thread

None