Thread: mac

Results 1 to 6 of 6
  1. #1
    ZeaS's Avatar
    Join Date
    Feb 2007
    Posts
    738
    Reputation
    15
    Thanks
    265

    mac

    hello, i have one question, how to get in vb6 own mac?? because i wan`t to make trainer safly... ip i get, but i wan`t mac, how to get mac in vb6 ??

  2. #2
    XqwertyX's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Posts
    437
    Reputation
    19
    Thanks
    71
    1. Get a undetected module (or make 1)
    2. Find the item shop value in a UCE
    3. find the value for mac
    4. Look for a tut, say weapon hack, and then edit the address and value to what u want


    § [=

    edit: Oooo not the gun, as in phsical address

    start>run>cmd>ipconfig/all

  3. #3
    Threadstarter
    Expert Member
    ZeaS's Avatar
    Join Date
    Feb 2007
    Posts
    738
    Reputation
    15
    Thanks
    265
    Quote Originally Posted by XqwertyX View Post
    1. Get a undetected module (or make 1)
    2. Find the item shop value in a UCE
    3. find the value for mac
    4. Look for a tut, say weapon hack, and then edit the address and value to what u want


    § [=

    edit: Oooo not the gun, as in phsical address

    start>run>cmd>ipconfig/all
    i know, cmd... but how to make it in vb?? i get, ip,pcname, windows id, cpu, cpu speed, servispack, version... but i donno how to add mac :X

  4. #4
    XqwertyX's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Posts
    437
    Reputation
    19
    Thanks
    71
    Code:
    Option Explicit
    
    Private Const NO_ERROR = 0
    
    Private Declare Function inet_addr Lib "wsock32.dll" _
      (ByVal s As String) As Long
    
    Private Declare Function SendARP Lib "iphlpapi.dll" _
      (ByVal DestIP As Long, _
       ByVal SrcIP As Long, _
       pMacAddr As Long, _
       PhyAddrLen As Long) As Long
    
    Private Declare Sub CopyMemory Lib "kernel32" _
       Alias "RtlMoveMemory" _
      (dst As Any, _
       src As Any, _
       ByVal bcount As Long)
       
    
    
    Private Sub Form_Load()
    
       Text1.Text = "192.168.1.101"
       Text2.Text = ""
       Command1.Caption = "Get Remote Mac Address"
       
    End Sub
    
    
    Private Sub Command1_Click()
    
       Dim sRemoteMacAddress As String
       
       If Len(Text1.Text) > 0 Then
       
          If GetRemoteMACAddress(Text1.Text, sRemoteMacAddress) Then
             Text2.Text = sRemoteMacAddress
          Else
             Text2.Text = "(SendARP call failed)"
          End If
         
       End If
    
    End Sub
    
    
    Private Function GetRemoteMACAddress(ByVal sRemoteIP As String, _
                                         sRemoteMacAddress As String) As Boolean
    
       Dim dwRemoteIP As Long
       Dim pMacAddr As Long
       Dim bpMacAddr() As Byte
       Dim PhyAddrLen As Long
       Dim cnt As Long
       Dim tmp As String
       
      'convert the string IP into
      'an unsigned long value containing
      'a suitable binary representation
      'of the Internet address given
       dwRemoteIP = inet_addr(sRemoteIP)
       
       If dwRemoteIP <> 0 Then
       
         'set PhyAddrLen to 6
          PhyAddrLen = 6
       
         'retrieve the remote MAC address
          If SendARP(dwRemoteIP, 0&, pMacAddr, PhyAddrLen) = NO_ERROR Then
         
             If pMacAddr <> 0 And PhyAddrLen <> 0 Then
         
               'returned value is a long pointer
               'to the mac address, so copy data
               'to a byte array
                ReDim bpMacAddr(0 To PhyAddrLen - 1)
                CopyMemory bpMacAddr(0), pMacAddr, ByVal PhyAddrLen
             
               'loop through array to build string
                For cnt = 0 To PhyAddrLen - 1
                   
                   If bpMacAddr(cnt) = 0 Then
                      tmp = tmp & "00-"
                   Else
                      tmp = tmp & Hex$(bpMacAddr(cnt)) & "-"
                   End If
             
                Next
               
               'remove the trailing dash
               'added above and return True
                If Len(tmp) > 0 Then
                   sRemoteMacAddress = Left$(tmp, Len(tmp) - 1)
                   GetRemoteMACAddress = True
                End If
    
                Exit Function
             
             Else
                GetRemoteMACAddress = False
             End If
               
          Else
             GetRemoteMACAddress = False
          End If  'SendARP
         
       Else
          GetRemoteMACAddress = False
       End If  'dwRemoteIP
         
    End Function

  5. #5
    unseenss's Avatar
    Join Date
    Jun 2007
    Posts
    426
    Reputation
    12
    Thanks
    3
    theres no way to get it 100% for sure

    but you can try hooking cmd.exe

  6. #6
    Threadstarter
    Expert Member
    ZeaS's Avatar
    Join Date
    Feb 2007
    Posts
    738
    Reputation
    15
    Thanks
    265
    thanks to XqwertyX very good, it works fine

Similar Threads

  1. PC vs Mac
    By arunforce in forum General
    Replies: 0
    Last Post: 02-06-2007, 06:31 PM
  2. Changing MAC and Dynamic IP Manually
    By MagikBullet in forum WarRock - International Hacks
    Replies: 32
    Last Post: 12-27-2006, 10:33 PM
  3. Mac Sandwitch Anyone?
    By Dave84311 in forum General
    Replies: 3
    Last Post: 05-24-2006, 02:12 PM