Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.43 KB | None | 0 0
  1. Imports System.IO
  2. Imports System.Net
  3. Imports System.Threading
  4. Imports System.Management
  5. Imports System.Security
  6.  
  7. Public Class Form1
  8.  
  9. Dim login As Integer
  10. Dim confirm As Integer
  11. Dim runlogin As Integer
  12. Dim updateneeded As Integer
  13. Dim firstlaunch As Integer
  14. Dim confirmhwid As Integer
  15. Dim updatecolor As Integer
  16.  
  17. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  18. WebBrowser1.Navigate("http://yuth1337.bplaced.net/mybb/member.php?action=login")
  19. WebBrowser2.Navigate("http://yuth1337.bplaced.net/usercheck.php")
  20. WebBrowser3.Navigate("http://yuth1337.bplaced.net/hwid.php")
  21.  
  22. 'Loads user settings
  23. If My.Settings.check = True Then
  24. TextBox1.Text = My.Settings.username
  25. TextBox2.Text = My.Settings.password
  26. CheckBox1.Checked = My.Settings.check
  27. Else
  28. 'Do nothing
  29. End If
  30.  
  31.  
  32.  
  33. 'Generate HWID
  34. Dim hw As New clsComputerInfo
  35.  
  36. Dim cpu As String
  37. Dim mb As String
  38. Dim mac As String
  39. Dim hwid As String
  40.  
  41. cpu = hw.GetProcessorId()
  42. mb = hw.GetMotherboardID()
  43. mac = hw.GetMACAddress()
  44. hwid = cpu + mb + mac
  45.  
  46. Dim hwidEncrypted As String = Strings.UCase(hw.getMD5Hash(cpu & mb & mac))
  47.  
  48. txtHWID.Text = hwidEncrypted
  49. 'HWID Generated
  50.  
  51. Timer1.Start()
  52. Timer2.Start()
  53.  
  54. 'Local Version
  55. Dim currentVerison As String
  56. currentVerison = "1.0.0.0"
  57.  
  58. 'Web Version
  59. Dim address As String = "http://yuth1337.bplaced.net/version.txt"
  60. Dim client As WebClient = New WebClient()
  61. Dim reader As StreamReader = New StreamReader(client.OpenRead(address))
  62. Label4.Text = reader.ReadToEnd
  63. Label4.ForeColor = Color.Transparent
  64. Label4.Location = New Point(1000, 2000)
  65.  
  66. If (currentVerison < Label4.Text) Then
  67. updateneeded = 1
  68. ElseIf (currentVerison > Label4.Text) Then
  69. updateneeded = 1
  70. Else
  71. updateneeded = 0
  72. End If
  73.  
  74. Label6.Text = "Current Status: Waiting for input"
  75.  
  76. If My.Computer.FileSystem.FileExists("C:\temp\GW\Greeen.Ware") Then
  77. Else
  78. firstlaunch = 1
  79. System.IO.Directory.CreateDirectory("C:\temp\GW\")
  80. My.Computer.FileSystem.WriteAllText("c:\temp\GW\Greeen.Ware", "", False)
  81. Dim ToHideDir As New System.IO.DirectoryInfo("C:\temp\GW\")
  82. ToHideDir.Attributes = IO.FileAttributes.Hidden
  83. End If
  84.  
  85.  
  86. 'Dim pName As String = "Steam"
  87. 'Dim psList() As Process
  88. 'Try
  89. 'psList = Process.GetProcesses()
  90. 'For Each p As Process In psList
  91. 'If (pName = p.ProcessName) Then
  92. 'MsgBox("Steam is currently running! Please close steam before using the loader", MsgBoxStyle.Exclamation)
  93. 'Me.Close()
  94. 'End If
  95. 'Next p
  96.  
  97. 'Catch ex As Exception
  98. 'MsgBox(ex.Message)
  99. 'End Try
  100.  
  101. 'Dim appPath As String = My.Application.Info.DirectoryPath
  102. 'If appPath.Contains("C:\") Then
  103. 'MsgBox("The loader must be run from a USB! Please move the loader's .exe onto a USB then execute!")
  104. 'Me.Close()
  105. 'End If
  106. End Sub
  107. ' Confirm HWID
  108. Private Class clsComputerInfo
  109. 'Get processor ID
  110. Friend Function GetProcessorId() As String
  111. Dim strProcessorID As String = String.Empty
  112. Dim query As New SelectQuery("Win32_processor")
  113. Dim search As New ManagementObjectSearcher(query)
  114. Dim info As ManagementObject
  115. For Each info In search.Get()
  116. strProcessorID = info("processorID").ToString()
  117. Next
  118. Return strProcessorID
  119. End Function
  120. ' Get MAC Address
  121. Friend Function GetMACAddress() As String
  122. Dim mc As ManagementClass = New ManagementClass("Win32_NetworkAdapterConfiguration")
  123. Dim moc As ManagementObjectCollection = mc.GetInstances()
  124. Dim MacAddress As String = String.Empty
  125. For Each mo As ManagementObject In moc
  126. If (MacAddress.Equals(String.Empty)) Then
  127. If CBool(mo("IPEnabled")) Then MacAddress = mo("MacAddress").ToString()
  128. mo.Dispose()
  129. End If
  130. MacAddress = MacAddress.Replace(":", String.Empty)
  131. Next
  132. Return MacAddress
  133. End Function
  134. ' Get Motherboard ID
  135. Friend Function GetMotherboardID() As String
  136. Dim strMotherboardID As String = String.Empty
  137. Dim query As New SelectQuery("Win32_BaseBoard")
  138. Dim search As New ManagementObjectSearcher(query)
  139. Dim info As ManagementObject
  140. For Each info In search.Get()
  141. strMotherboardID = info("product").ToString()
  142. Next
  143. Return strMotherboardID
  144. End Function
  145. ' Encrypt HWID
  146. Friend Function getMD5Hash(ByVal strToHash As String) As String
  147. Dim md5Obj As New System.Security.Cryptography.MD5CryptoServiceProvider
  148. Dim bytesToHash() As Byte = System.Text.Encoding.ASCII.GetBytes(strToHash)
  149. bytesToHash = md5Obj.ComputeHash(bytesToHash)
  150. Dim strResult As String = ""
  151. For Each b As Byte In bytesToHash
  152. strResult += b.ToString("x2")
  153. Next
  154. Return strResult
  155. End Function
  156. End Class
  157. ' Timer start
  158. Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  159. If (firstlaunch = 1) Then
  160. Form6.Show()
  161. Timer1.Stop()
  162. Else
  163. Timer1.Stop()
  164. End If
  165. End Sub
  166. ' Login button
  167. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  168. Button1.Enabled = False
  169. login = 1
  170.  
  171. Try
  172. WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
  173. WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text)
  174. WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
  175. Catch
  176. MsgBox("Error: Login function not setup right. Yell at the 'dev' until he figures out how to read the README.md", vbCritical)
  177. End Try
  178.  
  179. Try
  180. WebBrowser2.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
  181. WebBrowser2.Document.GetElementById("submit").InvokeMember("click")
  182. Catch
  183. MsgBox("Error: Usercheck function not setup right. Yell at the 'dev' until he figures out how to read the README.md", vbCritical)
  184. End Try
  185.  
  186. Try
  187. WebBrowser3.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
  188. WebBrowser3.Document.GetElementById("hwidin").SetAttribute("value", txtHWID.Text)
  189. WebBrowser3.Document.GetElementById("submit").InvokeMember("click")
  190. Catch
  191. MsgBox("Error: HWID function not setup right. Yell at the 'dev' until he figures out how to read the README.md", vbCritical)
  192. End Try
  193. End Sub
  194.  
  195. ' Exit button
  196. Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  197. Application.Exit()
  198. End Sub
  199. ' Login check
  200. Private Sub WebBrowser1_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
  201. If login = 1 Then
  202. login = 0
  203. Try
  204. Label6.Text = "Current Status: Checking password"
  205. If WebBrowser1.DocumentText.Contains("<p>You have successfully been logged in") Then
  206. Label6.Text = "Current Status: Password accepted"
  207. confirm = 1
  208. Else
  209. Label6.ForeColor = Color.Red
  210. Label6.Text = "Current Status: Password rejected!"
  211. WebBrowser1.Navigate("http://yuth1337.bplaced.net/mybb/member.php?action=login")
  212. MsgBox("Error: Username or password is incorrect", vbCritical)
  213. Thread.Sleep(250)
  214. Button1.Enabled = True
  215. End If
  216. Catch ex As Exception
  217. MsgBox("Error: Forum login not working. Yell at the 'dev' until they learn to read the README.md", vbCritical)
  218. End Try
  219. End If
  220. End Sub
  221. ' Status check
  222. Private Sub WebBrowser2_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
  223. If confirm = 1 Then
  224. confirm = 0
  225. Try
  226. Label6.Text = "Current Status: Checking account status"
  227.  
  228. If WebBrowser2.DocumentText.Contains("2") Then ' Check if they are "registered"
  229. Label6.Text = "Current Status: User is not premium"
  230. Label6.ForeColor = Color.Red
  231. confirmhwid = 0
  232. Else
  233. If WebBrowser2.DocumentText.Contains("7") Then ' Check if they are "banned"
  234. Label6.Text = "Current Status: User is banned"
  235. Label6.ForeColor = Color.Red
  236. confirmhwid = 0
  237. Else
  238. If WebBrowser2.DocumentText.Contains("8") Then ' Check if they are "Premium CS:GO"
  239. Label6.Text = "Current Status: Group accepted"
  240. MsgBox("Premium CS:GO")
  241. confirmhwid = 0
  242. Else
  243. If WebBrowser2.DocumentText.Contains("10") Then ' Check if they are "Premium CS:GO Beta"
  244. Label6.Text = "Current Status: Group accepted"
  245. MsgBox("Premium CS:GO Beta")
  246. confirmhwid = 1
  247. Else
  248. If WebBrowser2.DocumentText.Contains("9") Then ' Check if they are "Premium CS:GO Lite"
  249. Label6.Text = "Current Status: Group accepted"
  250. MsgBox("Premium CS:GO Lite")
  251. confirmhwid = 0
  252. Else
  253. If WebBrowser2.DocumentText.Contains("11") Then ' Check if they are "Premium Garry's Mod"
  254. Label6.Text = "Current Status: Group accepted"
  255. MsgBox("Premium Garry's Mod")
  256. confirmhwid = 0
  257. Else
  258. If WebBrowser2.DocumentText.Contains("4") Then ' Check if they are "Admin"
  259. Label6.Text = "Current Status: Group accepted"
  260. MsgBox("Administrator")
  261. confirmhwid = 1
  262. End If
  263. End If
  264. End If
  265. End If
  266. End If
  267. End If
  268. End If
  269. Catch ex As Exception
  270. MsgBox("Error: usercheck_get.php not working. Yell at the 'dev' until they learn to read the README.md", vbCritical)
  271. End Try
  272. End If
  273.  
  274.  
  275. 'Admin---------------------4
  276. 'Premium Garry's Mod-------11
  277. 'Premium CS:GO Lite--------9
  278. 'Premium CS:GO Beta--------10
  279. 'Premium CS:GO-------------8
  280. 'Banned--------------------7
  281. 'Not-----------------------2
  282.  
  283. End Sub
  284. ' HWID check
  285. Private Sub WebBrowser3_DocumentCompleted_1(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser3.DocumentCompleted
  286. If confirmhwid = 1 Then
  287. confirmhwid = 0
  288. Try
  289. Label6.Text = "Current Status: Checking HWID"
  290. If WebBrowser3.DocumentText.Contains("HWID is correct") Then
  291. Label6.Text = "Current Status: HWID accepted!"
  292.  
  293. If (CheckBox1.Checked = True) Then
  294. My.Settings.check = True
  295. ElseIf (CheckBox1.Checked = False) Then
  296. My.Settings.check = False
  297. End If
  298.  
  299. My.Settings.username = TextBox1.Text
  300. My.Settings.password = TextBox2.Text
  301. My.Settings.Save()
  302. TextBox1.Text = ""
  303. TextBox2.Text = ""
  304. TextBox1.Focus()
  305. Form3.Show()
  306. Me.Hide()
  307. Button1.Enabled = True
  308. ElseIf WebBrowser3.DocumentText.Contains("HWID is not correct") Then
  309. WebBrowser1.Navigate("http://yuth1337.bplaced.net/mybb/member.php?action=login")
  310. WebBrowser2.Navigate("http://yuth1337.bplaced.net/usercheck.php")
  311. WebBrowser3.Navigate("http://yuth1337.bplaced.net/hwid.php")
  312. Label6.ForeColor = Color.Red
  313. Label6.Text = "Current Status: HWID rejected!"
  314. MsgBox("Error: HWID is incorrect", vbCritical)
  315. Thread.Sleep(250)
  316. Button1.Enabled = True
  317. ElseIf WebBrowser3.DocumentText.Contains("") Then
  318. WebBrowser1.Navigate("http://yuth1337.bplaced.net/mybb/member.php?action=login")
  319. WebBrowser2.Navigate("http://yuth1337.bplaced.net/usercheck.php")
  320. WebBrowser3.Navigate("http://yuth1337.bplaced.net/hwid.php")
  321. Label6.ForeColor = Color.Red
  322. Label6.Text = "Current Status: HWID rejected!"
  323. MsgBox("Error: No user with that name (HWID)", vbCritical)
  324. Thread.Sleep(250)
  325. Button1.Enabled = True
  326. End If
  327. Catch ex As Exception
  328. MsgBox("Error: hwid_get.php not working. Yell at the 'dev' until they learn to read the README.md", vbCritical)
  329. End Try
  330. End If
  331. End Sub
  332. ' Login fix
  333. Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
  334. Me.Hide()
  335. Form2.Show()
  336. End Sub
  337. ' Update Script
  338.  
  339. Private Sub Button3_Click(sender As Object, e As EventArgs)
  340.  
  341. End Sub
  342.  
  343. Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
  344.  
  345. End Sub
  346.  
  347. Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged
  348.  
  349. End Sub
  350.  
  351. Private Sub Label6_Click(sender As Object, e As EventArgs) Handles Label6.Click
  352.  
  353. End Sub
  354.  
  355.  
  356. End Class
  357.  
  358. '-----------------------------------------------------
  359. ' Coded by /id/Thaisen! Free loader source
  360. ' https://github.com/ThaisenPM/Cheat-Loader-CSGO
  361. ' Note to the person using this, removing this
  362. ' text is in violation of the license you agreed
  363. ' to by downloading. Only you can see this so what
  364. ' does it matter anyways.
  365. ' Copyright © ThaisenPM 2017
  366. ' Licensed under a MIT license
  367. ' Read the terms of the license here
  368. ' https://github.com/ThaisenPM/Cheat-Loader-CSGO/blob/master/LICENSE
  369. '-----------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement