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 › HWID LOGIN help

HWID LOGIN help

Posts 1–14 of 14 · Page 1 of 1
S_
S_M_E_X_Y
HWID LOGIN help
Hey guys I have just started with VB 2008 and found some tuts and made this

Code:
Imports System.IO
Imports System.Management
Imports System.Net
'imports

Public Class Form1
    'string used to store the HWID
    Dim HWID As String = ""
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'sets the form text to the current HWID
        Me.Text = "HWID: " & getHWID()
    End Sub
    Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
        'checkLogin() returns a boolean/this checks if login worked or failed
        'it passes the username and password to the function
        Select Case checkLogin(txtLogin.Text, txtPass.Text)
            Case True
                MessageBox.Show("Login Successful")
                Try
                    Process.Start("C:\Nexon\Combat Arms\CombatArms.exe\")
                    Close()
                Catch ex As Exception
                End Try
            Case False
                MessageBox.Show("Login Failed")
                Dim webAddress As String = "http://www.nexon.net"
                Process.Start(webAddress)
                Close()
        End Select
    End Sub
    Private Function getHWID()
        'not going to explain this, in short it grabs
        'the HWID from the system you are on
        Dim mc As New ManagementClass("win32_processor")
        Dim moc As ManagementObjectCollection = mc.GetInstances()
        For Each mo As ManagementObject In moc
            If HWID = "" Then
                HWID = mo.Properties("processorID").Value.ToString()
                Exit For
            End If
        Next
        Return HWID
    End Function
    Private Function checkLogin(ByVal sUser As String, ByVal sPass As String) As Boolean
        'this array reads HWID|user|pass from the txt file
        Dim login As String()
        'I used HttpWebRequest to loop through each line indvidually
        'I figured it would be easier that using WebClient
        'HttpWebRequest.Create("") opens our text file
        'Replace your the URL with the URL path to your txt
        Dim wr As HttpWebRequest = HttpWebRequest.Create("http://*************.com/HWID.txt")
        'HttpWebResponse downloads the txt as a stream
        Dim response As HttpWebResponse = wr.GetResponse()
        'StreamReader reads the stream
        Dim sr As StreamReader = New StreamReader(response.GetResponseStream())
        'this loop goes through each line of the stream and checks
        'the HWID and login information
        While Not sr.EndOfStream
            'inside the txt, each lines reads HWID|user|pass
            'this is split up into the array like so
            'login(0) = HWID, login(1) = user, login(2) = pass
            login = sr.ReadLine.Split("|")
            'checks the login information
            If login(0) = HWID Then
                If sUser = login(1) Then
                    If sPass = login(2) Then
                        'if all three are correct the function returns true
                        Return True
                    End If
                End If
            End If
        End While
        'if none worked, it returns false
        Return False
    End Function

End Class
This is basicly making a hwid login system for what I want to be some sort of another program. I want to make it so the other program is in the same folder but cant be opened unless opened though this system.

I know how to make it open the program on login succesful but im not sure how to make it so the program cant be opened without logging in first.

I would love to learn so any help would be lovely!
#1 · 15y ago
Jason
Jason
Attach the two programs together. So that when the main one starts it asks for login info.
#2 · 15y ago
S_
S_M_E_X_Y
How do i attatch them> sorry im really new at this but evyerones gotta learn right!
#3 · 15y ago
Jason
Jason
Quote Originally Posted by S_M_E_X_Y View Post
How do i attatch them> sorry im really new at this but evyerones gotta learn right!
Wait did you write both programs?
#4 · 15y ago
S_
S_M_E_X_Y
Yea there just simple forms. Like ones the login and ones a button that closes it xD
#5 · 15y ago
Jason
Jason
Quote Originally Posted by S_M_E_X_Y View Post
Yea there just simple forms. Like ones the login and ones a button that closes it xD
Well if you wrote both programs, why do they have to be separate? Just put the login junk on the main programs startup, and don't provide access to the rest of the program unless they get past login?
#6 · 15y ago
S_
S_M_E_X_Y
Yea thats what I want to do! But im really confused on how like after they push ok from susseful login, how do i made it so it shows the new write like the button i made that opens a webbrowser instead of showing the login thing
#7 · 15y ago
Jason
Jason
Quote Originally Posted by S_M_E_X_Y View Post
Yea thats what I want to do! But im really confused on how like after they push ok from susseful login, how do i made it so it shows the new write like the button i made that opens a webbrowser instead of showing the login thing
Just do multiple forms. Show the login form first, if login is successful show the main form.
#8 · 15y ago
S_
S_M_E_X_Y
Whats the command to make it show that i put after the login sussecfull i know where to puyt it but i dont know were ro put it.
#9 · 15y ago
edub18
edub18
Use this to show Form2:
Code:
Form2.Show
#10 · 15y ago
S_
S_M_E_X_Y
Thanks for the help! Coding seems so fun! xD.

Now im going to try to make a hack which i have NO CLUE of how to do it. Are there any good tuts you know of without me having to look around. I read a little about C++ and i found a source code, i pasted it into the dll in vb 2009 and it said there were like 109 errors
#11 · 15y ago
NA
Nathan
Quote Originally Posted by S_M_E_X_Y View Post
Thanks for the help! Coding seems so fun! xD.

Now im going to try to make a hack which i have NO CLUE of how to do it. Are there any good tuts you know of without me having to look around. I read a little about C++ and i found a source code, i pasted it into the dll in vb 2009 and it said there were like 109 errors
C++ isn't the same as vb.

And why are you leeching source codes the whole time?
#12 · 15y ago
S_
S_M_E_X_Y
Im learning xD insterad of copying and pasting im tpying it all out!
#13 · 15y ago
Jason
Jason
Quote Originally Posted by S_M_E_X_Y View Post
Im learning xD insterad of copying and pasting im tpying it all out!
You need to learn the differences between languages first of all.

Number 1, C++ and Visual Basic are about as opposite as two languages can get. One uses C-Style Syntax, one uses Visual Basic syntax. One is unmanaged, one is managed. Trying to "translate" C++ to VB will leave you many many MANY headaches, as there's a huuuge difference between the two.

Just because both can compile to a .dll doesn't mean they both work the same as dll. To execute a .dlls code you need to use a CLR loader (or have it referenced to your project, I mean if you inject it) because there is no "DllMain" entry point that LoadLibrary will call.

Learn the basics before copying and pasting. Actually, screw that, just don't copy and paste at all.
#14 · 15y ago
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Tags for this Thread

None