Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    GameTrainerMaker's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    465
    Reputation
    17
    Thanks
    514

    [HELP] Getting Windows Product ID

    How Would i make a form that tells u the Windows Product ID

    (eg) Button1 gets clicked then textBox1 tells u the Windows product ID

  2. #2
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Windows product ID?

    Do you mean HWID?

  3. #3
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    No lolland, HWID is PC specific and exisits on all machines (including non windows OS) he physically means your Windows OEM or Standard Product key, it is quite simple actually.

    This is not my code, but should help, it is MSDN and modified by a programmer named Brandon

    [php]
    Public Function GetProductKey(ByVal KeyPath As String, ByVal ValueName As String) As String

    Dim HexBuf As Object = My.Computer.Registry.GetValue(KeyPath, ValueName, 0)

    If HexBuf Is Nothing Then Return "N/A"

    Dim tmp As String = ""

    For l As Integer = LBound(HexBuf) To UBound(HexBuf)
    tmp = tmp & " " & Hex(HexBuf(l))
    Next

    Dim StartOffset As Integer = 52
    Dim EndOffset As Integer = 67
    Dim Digits(24) As String

    Digits(0) = "B" : Digits(1) = "C" : Digits(2) = "D" : Digits(3) = "F"
    Digits(4) = "G" : Digits(5) = "H" : Digits(6) = "J" : Digits(7) = "K"
    Digits(8) = "M" : Digits(9) = "P" : Digits(10) = "Q" : Digits(11) = "R"
    Digits(12) = "T" : Digits(13) = "V" : Digits(14) = "W" : Digits(15) = "X"
    Digits(16) = "Y" : Digits(17) = "2" : Digits(18) = "3" : Digits(19) = "4"
    Digits(20) = "6" : Digits(21) = "7" : Digits(22) = "8" : Digits(23) = "9"

    Dim dLen As Integer = 29
    Dim sLen As Integer = 15
    Dim HexDigitalPID(15) As String
    Dim Des(30) As String

    Dim tmp2 As String = ""

    For i = StartOffset To EndOffset
    HexDigitalPID(i - StartOffset) = HexBuf(i)
    tmp2 = tmp2 & " " & Hex(HexDigitalPID(i - StartOffset))
    Next

    Dim KEYSTRING As String = ""

    For i As Integer = dLen - 1 To 0 Step -1
    If ((i + 1) Mod 6) = 0 Then
    Des(i) = "-"
    KEYSTRING = KEYSTRING & "-"
    Else
    Dim HN As Integer = 0
    For N As Integer = (sLen - 1) To 0 Step -1
    Dim Value As Integer = ((HN * 2 ^ 8) Or HexDigitalPID(N))
    HexDigitalPID(N) = Value \ 24
    HN = (Value Mod 24)

    Next

    Des(i) = Digits(HN)
    KEYSTRING = KEYSTRING & Digits(HN)
    End If
    Next

    Return StrReverse(KEYSTRING)

    End Function
    [/php]

    Just create a module, add this code then call the function inside your source.

    Example

    For windows XP
    [php]
    'the key location is
    GetProductKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microso ft\Windows NT\CurrentVersion\", "DigitalProductId")
    [/php]

    You can also use some basic code to determine what version of windows is running then use Google to find out the registry location




    Last edited by Lolland; 06-24-2010 at 04:42 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  4. The Following 3 Users Say Thank You to NextGen1 For This Useful Post:

    GameTrainerMaker (06-24-2010),Hassan (06-24-2010),Lolland (06-24-2010)

  5. #4
    GameTrainerMaker's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    465
    Reputation
    17
    Thanks
    514
    Thanks NextGen1 Was really helpful

    it said
    Statement is Not Valid In NameSpace
    Last edited by GameTrainerMaker; 06-24-2010 at 04:22 PM.

  6. The Following User Says Thank You to GameTrainerMaker For This Useful Post:

    NextGen1 (06-24-2010)

  7. #5
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Not a problem , anytime.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  8. #6
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Quote Originally Posted by GameTrainerMaker View Post
    Thanks NextGen1 Was really helpful

    it said
    Statement is Not Valid In NameSpace
    He made an error in the code, try it now.

  9. #7
    GameTrainerMaker's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    465
    Reputation
    17
    Thanks
    514
    i already put the " P " on public once i C&Ped it, but it still said :S

  10. #8
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Yeah, Forgot the P in Public function.

    Statement not valid in namespace however means you put the code above the
    Public Class yada, it should be in between Public Class ModuleName and End Class.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  11. #9
    qddW$#%^jtyjtyj's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    721
    Reputation
    7
    Thanks
    148
    My Mood
    Mellow
    Quote Originally Posted by NextGen1 View Post
    Yeah, Forgot the P in Public function.

    Statement not valid in namespace however means you put the code above the
    Public Class yada, it should be in between Public Class ModuleName and End Class.
    lol Namespace sounds kinda c++ like

  12. #10
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    A namespace is universal, not language specific btw.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  13. #11
    qddW$#%^jtyjtyj's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    721
    Reputation
    7
    Thanks
    148
    My Mood
    Mellow
    Quote Originally Posted by J-Deezy View Post
    A namespace is universal, not language specific btw.
    but i mean in every c++ program it is using namespace

  14. #12
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by techial2 View Post
    but i mean in every c++ program it is using namespace
    Only uses it 1 time in the beginning: using namespace std;
    or if you're coding more advanced there are a few others you need :O

  15. #13
    SpamFag's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    2
    My Mood
    Aggressive
    Guys, this is vb section, not c++

  16. #14
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by SpamFag View Post
    Guys, this is vb section, not c++
    did you miss something?
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  17. #15
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by Brinuz View Post
    did you miss something?
    Probably the part where you get a brain

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help Request] Need help getting to prestige 1
    By NeedPrestigedinMW2 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 11-07-2011, 09:25 AM
  2. [Help Request] Need help getting hacks to work
    By VpChris in forum Vindictus Help
    Replies: 5
    Last Post: 08-13-2011, 03:00 AM
  3. [Help Request] Need help, Get this when i start crossfire with injector.
    By -zZz- in forum CrossFire Help
    Replies: 4
    Last Post: 07-10-2011, 03:26 PM
  4. How to get windowed combat arms. Plz Help
    By MiRrOR2025 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 2
    Last Post: 02-21-2010, 10:28 PM
  5. [HELP] Warrock/ Windows Vista
    By Steven990 in forum WarRock - International Hacks
    Replies: 11
    Last Post: 05-01-2007, 07:08 PM