Advertisement
iJorgePc

xigncode

May 31st, 2021
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.77 KB | None | 0 0
  1. Imports System.IO
  2.  
  3. Public Class XIGNCODE3
  4.  
  5. Dim NewPoint As New System.Drawing.Point
  6. Dim X, Y As Integer
  7. Private Sub Panel1_MouseDown(sender As Object, e As MouseEventArgs) Handles Panel1.MouseDown
  8. X = Control.MousePosition.X - Me.Location.X
  9. Y = Control.MousePosition.Y - Me.Location.Y
  10. End Sub
  11. Private Sub Panel1_MouseMove(sender As Object, e As MouseEventArgs) Handles Panel1.MouseMove
  12. If e.Button = MouseButtons.Left Then
  13. NewPoint = Control.MousePosition
  14. NewPoint.Y -= (Y)
  15. NewPoint.X -= (X)
  16. Me.Location = NewPoint
  17. End If
  18. End Sub
  19.  
  20. Private Sub OffHacks_Tick(sender As Object, e As EventArgs) Handles OffHacks.Tick
  21. Try
  22. Dim TargetProcess As Process() = Process.GetProcessesByName("Wolfteam.bin")
  23. If TargetProcess.Length = 0 Then
  24. OffHacks.Stop()
  25. 'Game Not Open
  26. DeleteFiles()
  27. Else
  28. OffHacks.Stop()
  29. 'Game Open
  30. Me.Hide()
  31. MsgBox("Please Unplug The Game And Try Again In DC Playback :]")
  32. Me.Close()
  33. End If
  34. Catch ex As Exception
  35.  
  36. End Try
  37. End Sub
  38.  
  39. Private Sub Label2_Click(sender As Object, e As EventArgs) Handles Label2.Click
  40. Application.Exit()
  41. End Sub
  42.  
  43.  
  44. Dim xhunter1 As String = "C:\Windows\xhunter1.sys"
  45. Dim xspirit As String = "C:\Windows\xspirit.sys"
  46.  
  47. Private Sub DeleteFiles()
  48. Try
  49. Dim Fs As FileStream = File.OpenRead(xhunter1)
  50. File.GetAttributes(xhunter1)
  51. File.SetAttributes(xhunter1, FileAttributes.ReadOnly = FileAttributes.Hidden)
  52. Fs.Close()
  53. Catch ex As Exception
  54.  
  55. End Try
  56.  
  57. Try
  58. Dim Fs As FileStream = File.OpenRead(xspirit)
  59. File.GetAttributes(xspirit)
  60. File.SetAttributes(xspirit, FileAttributes.ReadOnly = FileAttributes.Hidden)
  61. Fs.Close()
  62. Catch ex As Exception
  63.  
  64. End Try
  65.  
  66. Try
  67. File.Delete(xhunter1)
  68. File.Delete(xspirit)
  69. Catch ex As Exception
  70.  
  71. End Try
  72.  
  73. Try
  74. SaveFromResources("C:\Windows\xhunter1.sys", My.Resources.xhunter1)
  75. SaveFromResources("C:\Windows\xspirit.sys", My.Resources.xspirit)
  76. Catch ex As Exception
  77.  
  78. End Try
  79.  
  80. Try
  81. Dim __xhunter1 As FileStream = File.OpenRead(xhunter1)
  82. File.GetAttributes(xhunter1)
  83. File.SetAttributes(xhunter1, FileAttributes.[ReadOnly])
  84. __xhunter1.Close()
  85.  
  86. Dim __xspirit As FileStream = File.OpenRead(xspirit)
  87. File.GetAttributes(xspirit)
  88. File.SetAttributes(xspirit, FileAttributes.[ReadOnly])
  89. __xspirit.Close()
  90. Bypass()
  91. Me.Hide()
  92. SkipADS.Show()
  93.  
  94. Catch ex As Exception
  95.  
  96. End Try
  97.  
  98. End Sub
  99.  
  100. Private Sub SaveFromResources(ByVal FilePath As String, ByVal File As Object)
  101. Try
  102. Dim FByte() As Byte = File
  103. My.Computer.FileSystem.WriteAllBytes(FilePath, FByte, True)
  104. Catch ex As Exception
  105.  
  106. End Try
  107. End Sub
  108.  
  109. Private Sub Bypass()
  110. Try
  111. FileClose(1)
  112. Dim winDpath As String = My.Computer.FileSystem.SpecialDirectories.Desktop
  113. winDpath = winDpath.Chars(0).ToString.ToUpper & ":\Windows\"
  114. If My.Computer.FileSystem.DirectoryExists(winDpath) Then
  115. Try
  116. FileOpen(1, winDpath & "xhunter1.sys", OpenMode.Append, OpenAccess.ReadWrite, OpenShare.LockReadWrite)
  117. Catch
  118. If My.Computer.FileSystem.FileExists(winDpath & "xhunter1.sys") Then
  119. For files As Integer = 1 To 100
  120. If My.Computer.FileSystem.FileExists(winDpath & "xhunter1.sys.bak" & files) Then
  121. Try
  122. My.Computer.FileSystem.DeleteFile(winDpath & "xhunter1.sys.bak" & files)
  123. My.Computer.FileSystem.RenameFile(winDpath & "xhunter1.sys", winDpath & "xhunter1.sys.bak" & files)
  124. Exit For
  125. Catch
  126. End Try
  127. Else
  128. Try
  129. My.Computer.FileSystem.RenameFile(winDpath & "xhunter1.sys", winDpath & "xhunter1.sys.bak" & files)
  130. Exit For
  131. Catch
  132. End Try
  133. End If
  134. Next
  135. End If
  136. FileOpen(1, winDpath & "xhunter1.sys", OpenMode.Append, OpenAccess.ReadWrite, OpenShare.LockReadWrite)
  137. End Try
  138. Else
  139. winDpath = Environment.GetFolderPath(Environment.SpecialFolder.System)
  140. winDpath = winDpath.Chars(0) & ":\Windows\"
  141. If My.Computer.FileSystem.DirectoryExists(winDpath) Then
  142. Try
  143. FileOpen(1, winDpath & "xhunter1.sys", OpenMode.Append, OpenAccess.ReadWrite, OpenShare.LockReadWrite)
  144. Catch
  145. If My.Computer.FileSystem.FileExists(winDpath & "xhunter1.sys") Then
  146. For files As Integer = 1 To 100
  147. If My.Computer.FileSystem.FileExists(winDpath & "xhunter1.sys.bak" & files) Then
  148. Try
  149. My.Computer.FileSystem.DeleteFile(winDpath & "xhunter1.sys.bak" & files)
  150. My.Computer.FileSystem.RenameFile(winDpath & "xhunter1.sys", winDpath & "xhunter1.sys.bak" & files)
  151. Exit For
  152. Catch
  153. End Try
  154. Else
  155. Try
  156. My.Computer.FileSystem.RenameFile(winDpath & "xhunter1.sys", winDpath & "xhunter1.sys.bak" & files)
  157. Exit For
  158. Catch
  159. End Try
  160. End If
  161. Next
  162. End If
  163. FileOpen(1, winDpath & "xhunter1.sys", OpenMode.Append, OpenAccess.ReadWrite, OpenShare.LockReadWrite)
  164. End Try
  165. Else
  166. End If
  167. End If
  168. Catch
  169. FileClose(1)
  170. End Try
  171. End Sub
  172.  
  173.  
  174. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement