elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Sigue las noticias más importantes de seguridad informática en el Twitter! de elhacker.NET


  Mostrar Mensajes
Páginas: 1 ... 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 [61] 62 63 64 65
601  Programación / Programación Visual Basic / Re: (ayuda) product key de windows en: 6 Abril 2009, 23:16 pm
perdon, pero me quede dormido.

con respecto a lo de si es legal?
el codigo mismo te lo da Microsoft, es de acceso public0. Microsoft mismo hizo un prog para Cambiar el serial (Windows Product Key Update Tool), lo ilegal no es cambiar el seria , si no el como obtuviste ese serial  (si no fue atraves de Microsoft). y lo de msoobe, seria la forma adecuada de cambiarlo pero ...

guidosl ojo con los caracteres del serial como te abras dado cuenta en el codigo del modulo de cobein hay caracteres no validadios...

Antes de cambiar la clave hay que modificar el valor OOBETIMER para que desactivarlo, y asi poder meter el serial nuevo.

Editado { el timer esta de mas, no se si viste pero cada textbox tiene su evento change(sino lo tiene poneselo), ahi es donde tendrias que verificar si todos los textBox tienen 5 caracteres, y si estan todos con 5 habilitar o deshabilitar en Command1.
}

PD: para el que quiera informarse al respecto: http://support.microsoft.com/kb/328874/es

602  Programación / Programación Visual Basic / Re: (ayuda) product key de windows en: 6 Abril 2009, 14:52 pm
Código
  1. Public Sub NewSerial(VOL_PROD_KEY As String)
  2. 'Dim VOL_PROD_KEY As String
  3. Dim Obj As Object
  4. Dim result As Variant
  5.    VOL_PROD_KEY = UCase(VOL_PROD_KEY)
  6.    VOL_PROD_KEY = Replace(VOL_PROD_KEY, "-", "") 'remove hyphens if any
  7.    For Each Obj In GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("win32_WindowsProductActivation")
  8.    result = Obj.SetProductKey(VOL_PROD_KEY)
  9.    Next
  10. End Sub
603  Programación / Programación Visual Basic / Re: (ayuda) leer serial de windows en: 6 Abril 2009, 11:36 am
 si ya se, hice un programa para cambiar el serial de XP, y se que en esa clave no esta el serial de XP, esa clave OOBETimer se usa para otra cosa. solo que no se si puedo poner el codigo aca. busca en Planet Source code que hay vas a encontrar lo que buscas
604  Programación / Programación Visual Basic / Re: (ayuda) leer serial de windows en: 6 Abril 2009, 11:18 am
es que el serial de Windows no esta en esa clave
605  Programación / Programación Visual Basic / Re: (ayuda) leer serial de windows en: 6 Abril 2009, 11:00 am
usando api ovbias el tener que usar referencia a Script Host
ejemplo del API-Guide:

Código
  1. Const REG_SZ = 1 ' Unicode nul terminated string
  2. Const REG_BINARY = 3 ' Free form binary
  3. Private Const HKEY_LOCAL_MACHINE As Long = &H80000002
  4. Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
  5. Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
  6. Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long
  7. Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
  8. Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
  9. Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
  10. Function RegQueryStringValue(ByVal hKey As Long, ByVal strValueName As String) As String
  11.    Dim lResult As Long, lValueType As Long, strBuf As String, lDataBufSize As Long
  12.    'retrieve nformation about the key
  13.    lResult = RegQueryValueEx(hKey, strValueName, 0, lValueType, ByVal 0, lDataBufSize)
  14.    If lResult = 0 Then
  15.        If lValueType = REG_SZ Then
  16.            'Create a buffer
  17.            strBuf = String(lDataBufSize, Chr$(0))
  18.            'retrieve the key's content
  19.            lResult = RegQueryValueEx(hKey, strValueName, 0, 0, ByVal strBuf, lDataBufSize)
  20.            If lResult = 0 Then
  21.                'Remove the unnecessary chr$(0)'s
  22.                RegQueryStringValue = Left$(strBuf, InStr(1, strBuf, Chr$(0)) - 1)
  23.            End If
  24.        ElseIf lValueType = REG_BINARY Then
  25.            Dim strData As Integer
  26.            'retrieve the key's value
  27.            lResult = RegQueryValueEx(hKey, strValueName, 0, 0, strData, lDataBufSize)
  28.            If lResult = 0 Then
  29.                RegQueryStringValue = strData
  30.            End If
  31.        End If
  32.    End If
  33. End Function
  34. Function GetString(hKey As Long, strPath As String, strValue As String)
  35.    Dim Ret
  36.    'Open the key
  37.    RegOpenKey hKey, strPath, Ret
  38.    'Get the key's content
  39.    GetString = RegQueryStringValue(Ret, strValue)
  40.    'Close the key
  41.    RegCloseKey Ret
  42. End Function
  43.  
  44. Private Sub Form_Load()
  45.    'KPD-Team 1998
  46.    'URL: http://www.allapi.net/
  47.    'E-Mail: KPDTeam@Allapi.net
  48.    Ret = GetString(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents", "OOBETimer")
  49.    If Ret = "" Then MsgBox "No value found !", vbExclamation + vbOKOnly, App.Title: Exit Sub
  50.    MsgBox "The value is " + Ret, vbOKOnly + vbInformation, App.Title
  51. End Sub

aca te pongo un módulo clase para manipular el registro muy completo: Lightning! Registry
606  Programación / Programación Visual Basic / Re: (ayuda) leer serial de windows en: 6 Abril 2009, 10:31 am
yo te diria que es mejor hacerlo con API, usa el ejemplo que te pase ahi, solo tenes que agregar esta constante a ese code

Private Const HKEY_LOCAL_MACHINE As Long = &H80000002
607  Programación / Programación Visual Basic / Re: (ayuda) leer serial de windows en: 6 Abril 2009, 10:09 am
hola tenes que leerlo como Binary con: RegOpenKey
608  Programación / Programación Visual Basic / Re: Ejecutar cosas solas desde vb en: 6 Abril 2009, 04:28 am
un ejemplo muy basico y simple:

Código
  1. Dim HoraDeEjecucion As String
  2. Dim sFile As String
  3.  
  4. Private Sub Form_Load()
  5. Timer1.Interval = 1000
  6. HoraDeEjecucion = "05:15:00" ' hora de ejecucion
  7. sFile = App.Path & "\archivo.bat" ' ubicacion del archivo a ejecutar
  8. End Sub
  9.  
  10. Private Sub Timer1_Timer()
  11. If Time = HoraDeEjecucion Then Shell sFile
  12. End Sub
609  Programación / Programación Visual Basic / Re: Duda sobre recibir datos de logueo en: 5 Abril 2009, 12:35 pm
aca e paso en ejemplo sobre esto: Simple formulario de Login usando base de datos

tambien podrias usar un archivo .ini para guadar y recuperar los datos: INI Expert - Manipulate INIFiles like never before
610  Programación / Programación Visual Basic / Re: Editando memoria de un juego @ Cheat en: 5 Abril 2009, 00:26 am
mira esto aver si te sirve para orientarte un poco:

Text converter (Binary/Hex/Asc/Oct)
Páginas: 1 ... 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 [61] 62 63 64 65
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines