Advertisement
Guest User

saw

a guest
Jul 30th, 2017
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.77 KB | None | 0 0
  1. Imports System
  2. Imports System.ComponentModel
  3. Imports System.Diagnostics
  4. Imports System.Drawing
  5. Imports System.IO
  6. Imports System.Net
  7. Imports System.Net.Security
  8. Imports System.Net.Sockets
  9. Imports System.Runtime.CompilerServices
  10. Imports System.Security.Cryptography
  11. Imports System.Security.Cryptography.X509Certificates
  12. Imports System.Text
  13. Imports System.Text.RegularExpressions
  14. Imports System.Threading
  15. Imports System.Web
  16. Imports System.Windows.Forms
  17. Imports Microsoft.VisualBasic
  18. Imports Microsoft.VisualBasic.CompilerServices
  19. Public Class Form1
  20.  
  21. Private OFF As Boolean
  22.  
  23. Private OFF2 As Boolean
  24.  
  25. Private m1 As String
  26.  
  27. Private c1 As String
  28.  
  29. Private lgcsrftoken As String
  30.  
  31. Private lgsessionid As String
  32.  
  33. Private lgds_user As String
  34.  
  35. Private lgmid As String
  36.  
  37. Private point_0 As Point
  38.  
  39. Private lgds_user_id As String
  40.  
  41. Private cook As String
  42.  
  43. Private iu As String
  44.  
  45. Private ip As String
  46.  
  47. Private logged_in As Boolean
  48.  
  49. Private Email As String
  50.  
  51. Private Bio As String
  52.  
  53. Private External As String
  54.  
  55. Private Phone As String
  56.  
  57. Private bool_0 As Boolean
  58.  
  59. Private Bio0 As String
  60.  
  61. Private csrftoken As String
  62.  
  63. Private resc As Integer
  64.  
  65. Private once As Integer
  66.  
  67. Private tr2 As Thread
  68.  
  69. Public Sub New()
  70. AddHandler MyBase.Load, New EventHandler(AddressOf Me.Form1_Load)
  71. Me.resc = 0
  72. Me.once = 0
  73. Me.InitializeComponent()
  74. End Sub
  75.  
  76. Public Function Edit() As Boolean
  77. ' The following expression was wrapped in a checked-statement
  78. Dim result As Boolean
  79. While True
  80. Try
  81. Dim text As String = Guid.NewGuid().ToString()
  82. Dim text2 As String = String.Concat(New String() {"{""gender"":""3"",""_csrftoken"":""", Me.lgcsrftoken, """,""_uuid"":""", text, """,""_uid"":""", Me.lgds_user_id, """,""external_url"":""", Me.External, """,""username"":""", Me.TextBox5.Text, """,""email"":""", Me.Email, """,""phone_number"":""", Me.Phone, """,""biography"":""", Me.Bio0, """,""first_name"":""Turbo.E @5f5""}"})
  83. Dim text3 As String = "signed_body=" + WebUtility.UrlEncode(Me.Code(text2) + "." + text2) + "&ig_sig_key_version=4"
  84. Dim expression As String = String.Concat(New String() {"POST /api/v1/accounts/edit_profile/ HTTP/1.1" & vbCrLf & "Host: i.instagram.com" & vbCrLf & "Accept: */*" & vbCrLf & "Accept-Encoding: gzip, deflate" & vbCrLf & "Accept-Language: en;q=1, fr;q=0.9, de;q=0.8, zh-Hans;q=0.7, zh-Hant;q=0.6, ja;q=0.5" & vbCrLf & "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" & vbCrLf & "Content-Length: ", Conversions.ToString(Encoding.ASCII.GetBytes(text3).Length), vbCrLf & "X-IG-Capabilities: 3Q==" & vbCrLf & "User-Agent: Instagram 9.7.0 Android" & vbCrLf & "Cookie: ", Me.cook, vbCrLf & vbCrLf, text3})
  85. Dim tcpClient As TcpClient = New TcpClient()
  86. tcpClient.Connect("i.instagram.com", 443)
  87. tcpClient.ReceiveBufferSize = 5000
  88. tcpClient.SendTimeout = 5000
  89. Dim obj As Object = New SslStream(tcpClient.GetStream(), False, Function(a0 As Object, a1 As X509Certificate, a2 As X509Chain, a3 As SslPolicyErrors) Me.thessl(), Nothing)
  90. NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(obj), Nothing, "AuthenticateAsClient", New Object() {"i.instagram.com"}, Nothing, Nothing, Nothing, True)
  91. Dim aSCIIEncoding As ASCIIEncoding = New ASCIIEncoding()
  92. Dim array As String() = Strings.Split(expression, vbCrLf & vbCrLf, -1, CompareMethod.Binary)
  93. Dim array4 As Boolean()
  94. For i As Integer = 0 To array.Length - 1
  95. Dim str As String = array(i)
  96. Dim array2 As Byte() = Encoding.[Default].GetBytes(str + vbCrLf & vbCrLf)
  97. Dim array3 As Object() = New Object() {array2, 0, array2.Length}
  98. Dim expr_1FD As Boolean() = New Boolean(2) {}
  99. expr_1FD(0) = True
  100. array4 = expr_1FD
  101. NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(obj), Nothing, "Write", array3, Nothing, Nothing, array4, True)
  102. Dim flag As Boolean = array4(0)
  103. If flag Then
  104. array2 = CType(Conversions.ChangeType(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(array3(0))), GetType(Byte())), Byte())
  105. End If
  106. NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(obj), Nothing, "Flush", New Object(-1) {}, Nothing, Nothing, Nothing, True)
  107. Next
  108. Dim array5 As Byte() = New Byte(20000) {}
  109. Dim array6 As Object() = New Object() {array5, 0, array5.Length}
  110. Dim expr_2B6 As Boolean() = New Boolean(2) {}
  111. expr_2B6(0) = True
  112. array4 = expr_2B6
  113. Try
  114. NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(obj), Nothing, "Read", array6, Nothing, Nothing, array4, True)
  115. Catch expr_2D9 As Exception
  116. ProjectData.SetProjectError(expr_2D9)
  117. ProjectData.ClearProjectError()
  118. End Try
  119. Dim flag2 As Boolean = array4(0)
  120. If flag2 Then
  121. array5 = CType(Conversions.ChangeType(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(array6(0))), GetType(Byte())), Byte())
  122. End If
  123. result = Not aSCIIEncoding.GetString(array5).Contains("""status"":")
  124. Me.Label2.Text = "Fuck You @" + TextBox5.Text
  125. Me.OFF = True
  126. Catch expr_333 As Exception
  127. ProjectData.SetProjectError(expr_333)
  128. ProjectData.ClearProjectError()
  129. Continue While
  130. End Try
  131. Exit While
  132. End While
  133. Return result
  134. End Function
  135.  
  136. Public Function Code(Txt As String) As String
  137. ' The following expression was wrapped in a checked-statement
  138. Dim result As String
  139. Try
  140. Dim s As String = "2f6dcdf76deb0d3fd008886d032162a79b88052b5f50538c1ee93c4fe7d02e60"
  141. Dim hMACSHA As HMACSHA256 = New HMACSHA256(Encoding.ASCII.GetBytes(s))
  142. Dim array As Byte() = hMACSHA.ComputeHash(Encoding.ASCII.GetBytes(Txt))
  143. Dim stringBuilder As StringBuilder = New StringBuilder(array.Length * 2)
  144. Dim array2 As Byte() = array
  145. For i As Integer = 0 To array2.Length - 1
  146. Dim number As Byte = array2(i)
  147. stringBuilder.Append(Conversion.Hex(number).PadLeft(2, "0"c))
  148. Next
  149. result = stringBuilder.ToString().ToLower()
  150. Catch expr_81 As Exception
  151. ProjectData.SetProjectError(expr_81)
  152. result = Nothing
  153. ProjectData.ClearProjectError()
  154. End Try
  155. Return result
  156. End Function
  157.  
  158. Public Function Info() As String
  159. Dim result As String
  160. Try
  161. Dim httpWebRequest As HttpWebRequest = CType(WebRequest.Create("https://i.instagram.com/api/v1/accounts/current_user/?edit=true"), HttpWebRequest)
  162. httpWebRequest.UserAgent = "Instagram 8.2.0 Android (18/4.3; 320dpi; 720x1280; Xiaomi; HM 1SW; armani; qcom; en_US)"
  163. httpWebRequest.Headers.Add("Cookie", Me.cook)
  164. httpWebRequest.Credentials = CredentialCache.DefaultCredentials
  165. Dim httpWebResponse As HttpWebResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
  166. Dim responseStream As Stream = httpWebResponse.GetResponseStream()
  167. Dim streamReader As StreamReader = New StreamReader(responseStream)
  168. Dim text As String = streamReader.ReadToEnd()
  169. streamReader.Close()
  170. httpWebResponse.Close()
  171. result = text
  172. Catch expr_79 As WebException
  173. ProjectData.SetProjectError(expr_79)
  174. Dim ex As WebException = expr_79
  175. result = New StreamReader(ex.Response.GetResponseStream()).ReadToEnd()
  176. ProjectData.ClearProjectError()
  177. End Try
  178. Return result
  179. End Function
  180.  
  181. Public Function hsha(Txt As String) As String
  182. ' The following expression was wrapped in a checked-statement
  183. Dim result As String
  184. Try
  185. Dim s As String = "55e91155636eaa89ba5ed619eb4645a4daf1103f2161dbfe6fd94d5ea7716095"
  186. Dim hMACSHA As HMACSHA256 = New HMACSHA256(Encoding.ASCII.GetBytes(s))
  187. Dim array As Byte() = hMACSHA.ComputeHash(Encoding.ASCII.GetBytes(Txt))
  188. Dim stringBuilder As StringBuilder = New StringBuilder(array.Length * 2)
  189. Dim array2 As Byte() = array
  190. For i As Integer = 0 To array2.Length - 1
  191. Dim number As Byte = array2(i)
  192. stringBuilder.Append(Conversion.Hex(number).PadLeft(2, "0"c))
  193. Next
  194. result = stringBuilder.ToString().ToLower()
  195. Catch expr_81 As Exception
  196. ProjectData.SetProjectError(expr_81)
  197. result = Nothing
  198. ProjectData.ClearProjectError()
  199. End Try
  200. Return result
  201. End Function
  202.  
  203. Public Function login(username As String, password As String) As String
  204. ' The following expression was wrapped in a checked-statement
  205. Dim result As String
  206. While True
  207. Try
  208. Dim text As String = Guid.NewGuid().ToString().ToUpper()
  209. Dim text2 As String = String.Concat(New String() {"{""username"":""", username, """,""password"":""", password, """,""_csrftoken"":""missing"",""device_id"":""", text, """,""login_attempt_count"":""0""}"})
  210. Dim text3 As String = String.Concat(New String() {"signed_body=", Me.hsha(text2), ".", text2, "&ig_sig_key_version=4"})
  211. Dim bytes As Byte() = Encoding.ASCII.GetBytes(text3)
  212. Dim expression As String = "POST /api/v1/accounts/login/ HTTP/1.1" & vbCrLf & "Host: i.instagram.com" & vbCrLf & "User-Agent: Instagram 8.2.0 Android (18/4.3; 320dpi; 720x1280; Xiaomi; HM 1SW; armani; qcom; en_US)" & vbCrLf & "Accept: */*" & vbCrLf & "Accept-Language: ar-SA;q=1, en-SA;q=0.9" & vbCrLf & "Accept-Encoding: gzip, deflate" & vbCrLf & "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" & vbCrLf & "Content-Length: " + Conversions.ToString(bytes.Length) + vbCrLf & "Connection: Keep-Alive" & vbCrLf & vbCrLf + text3
  213. Dim tcpClient As TcpClient = New TcpClient()
  214. tcpClient.Connect("i.instagram.com", 443)
  215. tcpClient.ReceiveBufferSize = 5000
  216. tcpClient.SendTimeout = 5000
  217. Dim obj As Object = New SslStream(tcpClient.GetStream(), False, Function(a0 As Object, a1 As X509Certificate, a2 As X509Chain, a3 As SslPolicyErrors) Me.thessl(), Nothing)
  218. NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(obj), Nothing, "AuthenticateAsClient", New Object() {"i.instagram.com"}, Nothing, Nothing, Nothing, True)
  219. Dim aSCIIEncoding As ASCIIEncoding = New ASCIIEncoding()
  220. Dim array As String() = Strings.Split(expression, vbCrLf & vbCrLf, -1, CompareMethod.Binary)
  221. Dim array4 As Boolean()
  222. For i As Integer = 0 To array.Length - 1
  223. Dim str As String = array(i)
  224. Dim array2 As Byte() = Encoding.[Default].GetBytes(str + vbCrLf & vbCrLf)
  225. Dim array3 As Object() = New Object() {array2, 0, array2.Length}
  226. Dim expr_189 As Boolean() = New Boolean(2) {}
  227. expr_189(0) = True
  228. array4 = expr_189
  229. NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(obj), Nothing, "Write", array3, Nothing, Nothing, array4, True)
  230. Dim flag As Boolean = array4(0)
  231. If flag Then
  232. array2 = CType(Conversions.ChangeType(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(array3(0))), GetType(Byte())), Byte())
  233. End If
  234. NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(obj), Nothing, "Flush", New Object(-1) {}, Nothing, Nothing, Nothing, True)
  235. Next
  236. Dim array5 As Byte() = New Byte(20000) {}
  237. Dim array6 As Object() = New Object() {array5, 0, array5.Length}
  238. Dim expr_242 As Boolean() = New Boolean(2) {}
  239. expr_242(0) = True
  240. array4 = expr_242
  241. Try
  242. NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(obj), Nothing, "Read", array6, Nothing, Nothing, array4, True)
  243. Catch expr_265 As Exception
  244. ProjectData.SetProjectError(expr_265)
  245. ProjectData.ClearProjectError()
  246. End Try
  247. Dim flag2 As Boolean = array4(0)
  248. If flag2 Then
  249. array5 = CType(Conversions.ChangeType(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(array6(0))), GetType(Byte())), Byte())
  250. End If
  251. Dim flag3 As Boolean = Not aSCIIEncoding.GetString(array5).Contains("""status""")
  252. If flag3 Then
  253. Me.lgcsrftoken = Regex.Match(aSCIIEncoding.GetString(array5), "csrftoken=(.*?);").Groups(1).Value
  254. Me.lgds_user = Regex.Match(aSCIIEncoding.GetString(array5), "ds_user=(.*?);").Groups(1).Value
  255. Me.lgds_user_id = Regex.Match(aSCIIEncoding.GetString(array5), "ds_user_id=(.*?);").Groups(1).Value
  256. Me.lgmid = Regex.Match(aSCIIEncoding.GetString(array5), "mid=(.*?);").Groups(1).Value
  257. Me.lgsessionid = Regex.Match(aSCIIEncoding.GetString(array5), "sessionid=(.*?);").Groups(1).Value
  258. Me.cook = String.Concat(New String() {"csrftoken=", Me.lgcsrftoken, "; ds_user=", Me.iu, "; ds_user_id=", Me.lgds_user_id, "; is_starred_enabled=yes; mid=", Me.lgmid, "; s_network=; sessionid=", Me.lgsessionid})
  259. Dim input As String = Me.info()
  260. Me.Email = Regex.Match(input, """email"": ""(.*?)""").Groups(1).Value
  261. Me.Bio = Regex.Match(input, """biography"": ""(.*?)""").Groups(1).Value
  262. Me.External = Regex.Match(input, """external_url"": ""(.*?)""").Groups(1).Value
  263. Me.Bio0 = Regex.Match(input, """biography"": ""(.*?)""").Groups(1).Value
  264. Me.Phone = Regex.Match(input, """phone_number"": ""(.*?)""").Groups(1).Value
  265. Me.logged_in = True
  266. MsgBox("Logged in Successfully", MsgBoxStyle.Information, "Turbo.E")
  267. Me.TextBox3.Enabled = False
  268. Me.TextBox4.Enabled = False
  269. Else
  270. Interaction.MsgBox("Username or Password is incorrect", MsgBoxStyle.Critical, "Turbo.E")
  271. End If
  272. Catch expr_4CF As Exception
  273. ProjectData.SetProjectError(expr_4CF)
  274. ProjectData.ClearProjectError()
  275. Continue While
  276. End Try
  277. Exit While
  278. End While
  279. Return result
  280. End Function
  281.  
  282. Public Sub Turbo()
  283. ' The following expression was wrapped in a checked-statement
  284. Try
  285. If Not Me.OFF Then
  286. While Not Conversions.ToBoolean(Me.Check())
  287. If Me.OFF Then
  288. Return
  289. End If
  290. Me.once += 1
  291. Me.co.Text = Conversions.ToString(Me.once)
  292. End While
  293. Me.Edit()
  294. End If
  295. Catch expr_7B As Exception
  296. ProjectData.SetProjectError(expr_7B)
  297. Me.OFF = True
  298. ProjectData.ClearProjectError()
  299. End Try
  300. End Sub
  301.  
  302. Public Function Check() As Object
  303. Dim result As Object
  304. Try
  305. Dim text As String = "email=agfgfggnbadfgdfgfgfgfg%40gmail.com&password=123xxxs&username=" + Me.TextBox5.Text + "&first_name=Hook :)"
  306. Dim bytes As Byte() = Encoding.ASCII.GetBytes(text)
  307. Dim obj As Object = My.Resources.checker.Replace("#packet", text)
  308. obj = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(obj, Nothing, "Replace", New Object() {"##", bytes.Length}, Nothing, Nothing, Nothing))
  309. result = Me.S(Conversions.ToString(obj)).Contains(My.Resources.av3)
  310. Catch expr_86 As Exception
  311. ProjectData.SetProjectError(expr_86)
  312. result = False
  313. ProjectData.ClearProjectError()
  314. End Try
  315. Return result
  316. End Function
  317.  
  318. Public Function S(pk As String) As String
  319. Dim tcpClient As TcpClient = New TcpClient()
  320. tcpClient.Connect("i.instagram.com", 443)
  321. tcpClient.ReceiveBufferSize = 3000
  322. tcpClient.SendTimeout = 3000
  323. Dim obj As Object = New SslStream(tcpClient.GetStream(), False, AddressOf Me.ValidateServerCertificate, Nothing)
  324. NewLateBinding.LateCall(obj, Nothing, "AuthenticateAsClient", New Object() {"i.instagram.com"}, Nothing, Nothing, Nothing, True)
  325. Dim aSCIIEncoding As ASCIIEncoding = New ASCIIEncoding()
  326. Dim array As String() = Strings.Split(pk, vbCrLf, -1, CompareMethod.Binary)
  327. ' The following expression was wrapped in a checked-statement
  328. Dim array4 As Boolean()
  329. For i As Integer = 0 To array.Length - 1
  330. Dim str As String = array(i)
  331. Dim array2 As Byte() = Encoding.[Default].GetBytes(str + vbCrLf)
  332. Dim arg_FD_0 As Object = obj
  333. Dim arg_FD_1 As Type = Nothing
  334. Dim arg_FD_2 As String = "Write"
  335. Dim array3 As Object() = New Object() {array2, 0, array2.Length}
  336. Dim arg_FD_3 As Object() = array3
  337. Dim arg_FD_4 As String() = Nothing
  338. Dim arg_FD_5 As Type() = Nothing
  339. array4 = New Boolean() {True, False, False}
  340. NewLateBinding.LateCall(arg_FD_0, arg_FD_1, arg_FD_2, arg_FD_3, arg_FD_4, arg_FD_5, array4, True)
  341. If array4(0) Then
  342. array2 = CType(Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array3(0)), GetType(Byte())), Byte())
  343. End If
  344. NewLateBinding.LateCall(obj, Nothing, "Flush", New Object(0 - 1) {}, Nothing, Nothing, Nothing, True)
  345. Next
  346. Dim array5 As Byte() = New Byte(20001 - 1) {}
  347. Dim arg_1B1_0 As Object = obj
  348. Dim arg_1B1_1 As Type = Nothing
  349. Dim arg_1B1_2 As String = "Read"
  350. Dim array6 As Object() = New Object() {array5, 0, array5.Length}
  351. Dim arg_1B1_3 As Object() = array6
  352. Dim arg_1B1_4 As String() = Nothing
  353. Dim arg_1B1_5 As Type() = Nothing
  354. array4 = New Boolean() {True, False, False}
  355. NewLateBinding.LateCall(arg_1B1_0, arg_1B1_1, arg_1B1_2, arg_1B1_3, arg_1B1_4, arg_1B1_5, array4, True)
  356. If array4(0) Then
  357. array5 = CType(Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array6(0)), GetType(Byte())), Byte())
  358. End If
  359. Return aSCIIEncoding.GetString(array5)
  360. End Function
  361.  
  362. Private Function ValidateServerCertificate(sender As Object, certificate As X509Certificate, chain As X509Chain, sslPolicyErrors__1 As SslPolicyErrors) As Boolean
  363. Return sslPolicyErrors__1 = SslPolicyErrors.None
  364. End Function
  365.  
  366. Public Function HTTP(url As String, cookies As CookieContainer) As String
  367. ' The following expression was wrapped in a checked-statement
  368. Dim result As String
  369. Try
  370. Dim httpWebRequest As HttpWebRequest = CType(WebRequest.Create(url), HttpWebRequest)
  371. httpWebRequest.CookieContainer = cookies
  372. httpWebRequest.Credentials = CredentialCache.DefaultCredentials
  373. Dim httpWebResponse As HttpWebResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
  374. Dim responseStream As Stream = httpWebResponse.GetResponseStream()
  375. Dim streamReader As StreamReader = New StreamReader(responseStream)
  376. Dim text As String = streamReader.ReadToEnd()
  377. streamReader.Close()
  378. httpWebResponse.Close()
  379. Dim num As Integer = httpWebResponse.Cookies.Count - 1
  380. For i As Integer = 0 To num
  381. Dim flag As Boolean = Operators.CompareString(httpWebResponse.Cookies(i).Name, "mid", False) = 0
  382. If flag Then
  383. Me.m1 = httpWebResponse.Cookies(i).Value
  384. Else
  385. Dim flag2 As Boolean = Operators.CompareString(httpWebResponse.Cookies(i).Name, "csrftoken", False) = 0
  386. If flag2 Then
  387. Me.c1 = httpWebResponse.Cookies(i).Value
  388. End If
  389. End If
  390. Next
  391. result = text
  392. Catch expr_100 As WebException
  393. ProjectData.SetProjectError(expr_100)
  394. Dim ex As WebException = expr_100
  395. result = New StreamReader(ex.Response.GetResponseStream()).ReadToEnd()
  396. ProjectData.ClearProjectError()
  397. End Try
  398. Return result
  399. End Function
  400.  
  401. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
  402. Me.HTTP("https://www.instagram.com/", New CookieContainer)
  403. End Sub
  404.  
  405. Public Function thessl() As Boolean
  406. Return True
  407. End Function
  408.  
  409. Public Sub Started()
  410. ' The following expression was wrapped in a checked-statement
  411. Try
  412. Dim num As Integer = Conversions.ToInteger(Me.TextBox1.Text)
  413. Dim arg_16_0 As Integer = 0
  414. Dim num2 As Integer = num - 1
  415. For i As Integer = arg_16_0 To num2
  416. Me.tr2 = New Thread(AddressOf Me.Turbo)
  417. Me.tr2.IsBackground = True
  418. Me.tr2.Start()
  419. Next
  420. Catch expr_52 As Exception
  421. ProjectData.SetProjectError(expr_52)
  422. ProjectData.ClearProjectError()
  423. End Try
  424. End Sub
  425.  
  426. Private Sub Label4_Click(sender As Object, e As EventArgs)
  427. Me.Close()
  428. End Sub
  429.  
  430. Private Sub Label1_Click(sender As Object, e As EventArgs)
  431.  
  432. End Sub
  433.  
  434. Private Sub Label1_MouseDown(sender As Object, e As MouseEventArgs)
  435. If (e.Button = MouseButtons.Left) Then
  436. Me.point_0 = New Point((0 - e.X), (0 - e.Y))
  437. Me.bool_0 = True
  438. End If
  439. End Sub
  440.  
  441. Private Sub Label1_MouseMove(sender As Object, e As MouseEventArgs)
  442. If Me.bool_0 Then
  443. Dim mousePosition As Point = Control.MousePosition
  444. mousePosition.Offset(Me.point_0.X, Me.point_0.Y)
  445. Me.Location = mousePosition
  446. End If
  447. End Sub
  448.  
  449. Private Sub Label1_MouseUp(sender As Object, e As MouseEventArgs)
  450. If (e.Button = MouseButtons.Left) Then
  451. Me.bool_0 = False
  452. End If
  453. End Sub
  454.  
  455. Private Sub Label5_Click(sender As Object, e As EventArgs)
  456.  
  457. End Sub
  458.  
  459. Private Sub Label5_MouseDown(sender As Object, e As MouseEventArgs)
  460. If (e.Button = MouseButtons.Left) Then
  461. Me.point_0 = New Point((0 - e.X), (0 - e.Y))
  462. Me.bool_0 = True
  463. End If
  464. End Sub
  465.  
  466. Private Sub Label5_MouseMove(sender As Object, e As MouseEventArgs)
  467. If Me.bool_0 Then
  468. Dim mousePosition As Point = Control.MousePosition
  469. mousePosition.Offset(Me.point_0.X, Me.point_0.Y)
  470. Me.Location = mousePosition
  471. End If
  472. End Sub
  473.  
  474. Private Sub Label5_MouseUp(sender As Object, e As MouseEventArgs)
  475. If (e.Button = MouseButtons.Left) Then
  476. Me.bool_0 = False
  477. End If
  478. End Sub
  479. Private Sub Label10_MouseLeave(sender As Object, e As EventArgs)
  480. Me.Label10.BackColor = Color.FromArgb(40, 40, 40)
  481. End Sub
  482.  
  483. Private Sub Label10_MouseMove(sender As Object, e As MouseEventArgs)
  484. Me.Label10.BackColor = Color.FromArgb(50, 50, 50)
  485. End Sub
  486. Private Sub Label19_MouseLeave(sender As Object, e As EventArgs)
  487. Me.Label19.BackColor = Color.FromArgb(40, 40, 40)
  488. End Sub
  489. Private Sub Label19_MouseMove(sender As Object, e As MouseEventArgs)
  490. Me.Label19.BackColor = Color.FromArgb(50, 50, 50)
  491. End Sub
  492.  
  493. Private Sub ThirteenButton1_Click(sender As Object, e As EventArgs) Handles Label19.Click
  494. If Me.Label19.Text = "Login" Then
  495. Dim left As String = Me.login(Me.TextBox3.Text, Me.TextBox4.Text)
  496. Dim flag As Boolean = Operators.CompareString(left, Conversions.ToString(True), False) = 0
  497. If flag Then
  498. Me.logged_in = True
  499. MsgBox("Logged in Successfully", MsgBoxStyle.Information, "Turbo.E")
  500. Me.TextBox3.Enabled = False
  501. Me.TextBox4.Enabled = False
  502. Else
  503. flag = (Operators.CompareString(left, Conversions.ToString(False), False) = 0)
  504. If flag Then
  505. Me.logged_in = False
  506. Interaction.MsgBox("Username or Password is incorrect", MsgBoxStyle.Critical, "Turbo.E")
  507. End If
  508. End If
  509. End If
  510. End Sub
  511.  
  512. Private Sub ThirteenButton2_Click(sender As Object, e As EventArgs) Handles Label10.Click
  513. If Not Me.logged_in Then
  514. Interaction.MsgBox("First Login ", MsgBoxStyle.Critical, "Turbo.E")
  515. Else
  516. If (Me.Label10.Text = "Start") Then
  517. Me.OFF = False
  518. Me.TextBox5.Enabled = True
  519. Me.Label10.Text = "Stop"
  520. Me.once = 0
  521. Me.TextBox5.Enabled = False
  522. Dim thread As New Thread(New ParameterizedThreadStart(AddressOf Me.Started)) With
  523. {.IsBackground = True}
  524. thread.Start()
  525. ElseIf (Me.Label10.Text = "Stop") Then
  526. Me.OFF = True
  527. Me.TextBox5.Enabled = False
  528. Me.Label10.Text = "Start"
  529. Me.TextBox5.Enabled = True
  530. End If
  531. End If
  532. End Sub
  533.  
  534. Private Sub ThirteenForm1_Click(sender As Object, e As EventArgs) Handles ThirteenForm1.Click
  535.  
  536. End Sub
  537.  
  538. Private Sub TextBox3_Click(sender As Object, e As EventArgs) Handles TextBox3.Click
  539. If (Me.TextBox3.Text = "Username") Then
  540. Me.TextBox3.Text = Nothing
  541. End If
  542. End Sub
  543. Private Sub TextBox4_Click(sender As Object, e As EventArgs) Handles TextBox4.Click
  544. If (Me.TextBox4.Text = "Password") Then
  545. Me.TextBox4.Text = Nothing
  546. Me.TextBox4.UseSystemPasswordChar = True
  547. End If
  548. End Sub
  549.  
  550. Private Sub TextBox5_Click(sender As Object, e As EventArgs) Handles TextBox5.Click
  551. If (Me.TextBox5.Text = "Target") Then
  552. Me.TextBox5.Text = Nothing
  553. End If
  554. End Sub
  555. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement