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

 

 


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Mensajes
Páginas: [1]
1  Programación / Scripting / Script para sacar la licencia de windows en: 30 Septiembre 2019, 14:55 pm
Muy buenas,

He encontrado un script que te da la licencia de windows ejecutándolo, pero me gustaría que el documento que se genera al final, se pudiera enviar directamente a un correo, como lo podria haceR?

Código
  1. Option Explicit
  2.  
  3. Dim objshell,path,DigitalID, Result, strComputerName, strUserName
  4. Set objshell = CreateObject("WScript.Shell")
  5. strComputerName = objshell.ExpandEnvironmentStrings( "%COMPUTERNAME%" )
  6. strUserName = objshell.ExpandEnvironmentStrings( "%USERNAME%" )
  7. 'WScript.Echo "Computer Name: " & strComputerName
  8. 'Set registry key path
  9. Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
  10. 'Registry key value
  11. DigitalID = objshell.RegRead(Path & "DigitalProductId")
  12. Dim ProductName,ProductID,ProductKey,ProductData, ComputerName, USERNAME
  13. 'Get ProductName, ProductID, ProductKey
  14. USERNAME= "User Name: " & strUserName
  15. ComputerName= "Computer Name: " & strComputerName
  16. ProductName = "Product Name: " & objshell.RegRead(Path & "ProductName")
  17. ProductID = "Product ID: " & objshell.RegRead(Path & "ProductID")
  18. ProductKey = "Installed Key: " & ConvertToKey(DigitalID)
  19. ProductData = ProductName  & vbNewLine & ProductID  & vbNewLine & ProductKey & vblf &  ComputerName & vblf & username
  20. 'Show messbox if save to a file
  21. If vbYes = MsgBox(ProductData & vblf & vblf & vblf &"Save to a file?", vbYesNo + vbQuestion, "BackUp Windows Key Information") then
  22.   Save ProductData
  23. End If
  24.  
  25.  
  26.  
  27. 'Convert binary to chars
  28. Function ConvertToKey(Key)
  29.    Const KeyOffset = 52
  30.    Dim isWin8, Maps, i, j, Current, KeyOutput, Last, keypart1, insert
  31.    'Check if OS is Windows 8
  32.    isWin8 = (Key(66) \ 6) And 1
  33.    Key(66) = (Key(66) And &HF7) Or ((isWin8 And 2) * 4)
  34.    i = 24
  35.    Maps = "BCDFGHJKMPQRTVWXY2346789"
  36.    Do
  37.       Current= 0
  38.        j = 14
  39.        Do
  40.           Current = Current* 256
  41.           Current = Key(j + KeyOffset) + Current
  42.           Key(j + KeyOffset) = (Current \ 24)
  43.           Current=Current Mod 24
  44.            j = j -1
  45.        Loop While j >= 0
  46.        i = i -1
  47.        KeyOutput = Mid(Maps,Current+ 1, 1) & KeyOutput
  48.        Last = Current
  49.    Loop While i >= 0
  50.    keypart1 = Mid(KeyOutput, 2, Last)
  51.    insert = "N"
  52.    KeyOutput = Replace(KeyOutput, keypart1, keypart1 & insert, 2, 1, 0)
  53.    If Last = 0 Then KeyOutput = insert & KeyOutput
  54.    ConvertToKey = Mid(KeyOutput, 1, 5) & "-" & Mid(KeyOutput, 6, 5) & "-" & Mid(KeyOutput, 11, 5) & "-" & Mid(KeyOutput, 16, 5) & "-" & Mid(KeyOutput, 21, 5)
  55.  
  56.  
  57. End Function
  58. 'Save data to a file
  59. Function Save(Data)
  60.    Dim fso, fName, txt,objshell,UserName
  61.    Set objshell = CreateObject("wscript.shell")
  62. 'Get current user name
  63.    UserName = objshell.ExpandEnvironmentStrings("%UserName%")
  64.    'Create a text file on desktop
  65.    fName = "C:\Users\" & UserName & "\Desktop\WindowsKeyInfo.txt"
  66.    Set fso = CreateObject("Scripting.FileSystemObject")
  67.    Set txt = fso.CreateTextFile(fName)
  68.    txt.Writeline Data
  69.    txt.Close
  70. End Function
  71.  
  72.  

Muchas GRacias
2  Programación / Ingeniería Inversa / Re: Crear Un generador de llaves (Pregunta/Ayuda) en: 17 Junio 2015, 01:46 am
Pensaba que al tener un numero determinado de codigos seguidos, se podría descifrar fácilmente  :-( :-(
3  Programación / Ingeniería Inversa / Crear Un generador de llaves (Pregunta/Ayuda) en: 17 Junio 2015, 01:00 am
Buenas, antes de todo, soy muy novato en todo esto y si este post no va aquí. lo siento, pero.. me gustaría poder generar mis propios códigos para un juego, son unas tarjetas con un código que rascas, la cosa es que cada código es un numero + letras aleatorias.
Hasta allí, es algo difícil de adivinar cual seria la secuencia para saber el siguiente código, pero.. tengo algo que puede facilitar.
Cada tarjeta que tengo tiene un numero de serie eso quiere decir, que si relacionamos un código con otro, al final llegaremos a encontrar el cifrado que utilizan para generar estos códigos.
Para que lo entendáis:
-nº de serie : 2690
-código del juego: BCT9KCS68PWGIAQ

-nº de serie : 2691
-código del juego: WGIAR59VPT3RRG4

-nº de serie : 2692
-código del juego: 2UAPU4V8B13BCQR

-nº de serie : 2693
-código del juego: MUHTP37Q6H2NEV9

-nº de serie : 2694
-código del juego: LCT8HW4PABMDT4X

Como veis es una secuencia de 15 cifras.

Mi pregunta es: Se podría crear un generador de códigos, con esta información? Con que cantidad de secuencias, podríamos sacar el siguiente código?

PD:
También tengo estos códigos que siguiente el siguiente orden, lo único que no son los mismos, son de 11 cifras:

1-AUNI6VG6QU7
2-7RJ1HHX69CT
3-H6QUU6BFM9J
4-8QIX4HGLUK1
5-7CHP3TDNCCS
6-XW94Q8R8RUU
7-RQX2E1I8892
8-QR3IT8FBDTL
9-2XXW94ELKQE
10-N4JKR49P5W8
11-C9LBBPF7679
12-LGVNS6BGC42
13-WHH1H75SBVQ
14-IFUM6NFSVIA
15-LFHPNJ28CTA

Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines