Advertisement
lol443345

CSGO SKEET PASTE

Jan 22nd, 2020
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 6.44 KB | None | 0 0
  1. Make New Project
  2. 1)Make the Following
  3. Quote:
  4. 5 Buttons
  5. 2 Radiobuttons
  6. 2 Labels
  7. 1 Listbox
  8. 1 Timers
  9. 1 OpenFileDialog
  10. 1 Checkbox
  11. 1 Textbox
  12.  
  13. 2).Rename the Following
  14. Quote:
  15. Changing Name :
  16. Listbox1 = "DLLs"
  17.  
  18. Changing Text :
  19. Button1 = "Browse"
  20. Button2 = "Remove"
  21. Button3 = "Clear List"
  22. Button4 = "Inject"
  23. Button5 = "Quit"
  24. RadioButton1 = "Manual"
  25. RadioButton2 = "Automatic"
  26. Checkbox1 = "Close after Inject"
  27. Textbox1 = ""
  28.  
  29. 3)Double Click the Title And delete All and Paste This
  30. Code:
  31. Public Class Form1
  32. Private TargetProcessHandle As Integer
  33. Private pfnStartAddr As Integer
  34. Private pszLibFileRemote As String
  35. Private TargetBufferSize As Integer
  36.  
  37. Public Const PROCESS_VM_READ = &H10
  38. Public Const TH32CS_SNAPPROCESS = &H2
  39. Public Const MEM_COMMIT = 4096
  40. Public Const PAGE_READWRITE = 4
  41. Public Const PROCESS_CREATE_THREAD = (&H2)
  42. Public Const PROCESS_VM_OPERATION = (&H8)
  43. Public Const PROCESS_VM_WRITE = (&H20)
  44. Dim DLLFileName As String
  45. Public Declare Function ReadProcessMemory Lib "kernel32" ( _
  46. ByVal hProcess As Integer, _
  47. ByVal lpBaseAddress As Integer, _
  48. ByVal lpBuffer As String, _
  49. ByVal nSize As Integer, _
  50. ByRef lpNumberOfBytesWritten As Integer) As Integer
  51.  
  52. Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" ( _
  53. ByVal lpLibFileName As String) As Integer
  54.  
  55. Public Declare Function VirtualAllocEx Lib "kernel32" ( _
  56. ByVal hProcess As Integer, _
  57. ByVal lpAddress As Integer, _
  58. ByVal dwSize As Integer, _
  59. ByVal flAllocationType As Integer, _
  60. ByVal flProtect As Integer) As Integer
  61.  
  62. Public Declare Function WriteProcessMemory Lib "kernel32" ( _
  63. ByVal hProcess As Integer, _
  64. ByVal lpBaseAddress As Integer, _
  65. ByVal lpBuffer As String, _
  66. ByVal nSize As Integer, _
  67. ByRef lpNumberOfBytesWritten As Integer) As Integer
  68.  
  69. Public Declare Function GetProcAddress Lib "kernel32" ( _
  70. ByVal hModule As Integer, ByVal lpProcName As String) As Integer
  71.  
  72. Private Declare Function GetModuleHandle Lib "Kernel32" Alias "GetModuleHandleA" ( _
  73. ByVal lpModuleName As String) As Integer
  74.  
  75. Public Declare Function CreateRemoteThread Lib "kernel32" ( _
  76. ByVal hProcess As Integer, _
  77. ByVal lpThreadAttributes As Integer, _
  78. ByVal dwStackSize As Integer, _
  79. ByVal lpStartAddress As Integer, _
  80. ByVal lpParameter As Integer, _
  81. ByVal dwCreationFlags As Integer, _
  82. ByRef lpThreadId As Integer) As Integer
  83.  
  84. Public Declare Function OpenProcess Lib "kernel32" ( _
  85. ByVal dwDesiredAccess As Integer, _
  86. ByVal bInheritHandle As Integer, _
  87. ByVal dwProcessId As Integer) As Integer
  88.  
  89. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
  90. ByVal lpClassName As String, _
  91. ByVal lpWindowName As String) As Integer
  92.  
  93. Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandleA" ( _
  94. ByVal hObject As Integer) As Integer
  95.  
  96.  
  97. Dim ExeName As String = IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath)
  98. Private Sub Inject()
  99. On Error GoTo 1 ' If error occurs, app will close without any error messages
  100. Timer1.Stop()
  101. Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)
  102. TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
  103. pszLibFileRemote = OpenFileDialog1.FileName
  104. pfnStartAddr = GetProcAddress(GetModuleHandle("Kernel32"), "LoadLibraryA")
  105. TargetBufferSize = 1 + Len(pszLibFileRemote)
  106. Dim Rtn As Integer
  107. Dim LoadLibParamAdr As Integer
  108. LoadLibParamAdr = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, MEM_COMMIT, PAGE_READWRITE)
  109. Rtn = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr, pszLibFileRemote, TargetBufferSize, 0)
  110. CreateRemoteThread(TargetProcessHandle, 0, 0, pfnStartAddr, LoadLibParamAdr, 0, 0)
  111. CloseHandle(TargetProcessHandle)
  112. 1: Me.Show()
  113. End Sub
  114.  
  115. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  116. DLLs.Name = "DLLs"
  117. Button1.Text = "Browse"
  118. Label1.Text = "Waiting for Program to Start.."
  119. Timer1.Interval = 50
  120. Timer1.Start()
  121. End Sub
  122.  
  123. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  124. OpenFileDialog1.Filter = "DLL (*.dll) |*.dll"
  125. OpenFileDialog1.ShowDialog()
  126. End Sub
  127.  
  128. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  129. For i As Integer = (DLLs.SelectedItems.Count - 1) To 0 Step -1
  130. DLLs.Items.Remove(DLLs.SelectedItems(i))
  131. Next
  132. End Sub
  133.  
  134. Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  135. DLLs.Items.Clear()
  136. End Sub
  137.  
  138. Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  139. If IO.File.Exists(OpenFileDialog1.FileName) Then
  140. Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)
  141. If TargetProcess.Length = 0 Then
  142.  
  143. Me.Label1.Text = ("Waiting for " + TextBox1.Text + ".exe")
  144. Else
  145. Timer1.Stop()
  146. Me.Label1.Text = "Successfully Injected!"
  147. Call Inject()
  148. If CheckBox1.Checked = True Then
  149. End
  150. Else
  151. End If
  152. End If
  153. Else
  154. End If
  155. End Sub
  156.  
  157. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  158. If IO.File.Exists(OpenFileDialog1.FileName) Then
  159. Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)
  160. If TargetProcess.Length = 0 Then
  161.  
  162. Me.Label1.Text = ("Waiting for " + TextBox1.Text + ".exe")
  163. Else
  164. Timer1.Stop()
  165. Me.Label1.Text = "Successfully Injected!"
  166. Call Inject()
  167. If CheckBox1.Checked = True Then
  168. End
  169. Else
  170. End If
  171. End If
  172. Else
  173. End If
  174. End Sub
  175.  
  176. Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
  177. Dim FileName As String
  178. FileName = OpenFileDialog1.FileName.Substring(OpenFileDialog1.FileName.LastIndexOf("\"))
  179. Dim DllFileName As String = FileName.Replace("\", "")
  180. Me.DLLs.Items.Add(DllFileName)
  181. End Sub
  182.  
  183. Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
  184. Me.Close()
  185. End Sub
  186.  
  187. Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
  188. Button4.Enabled = True
  189. Timer1.Enabled = False
  190. End Sub
  191.  
  192. Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged
  193. Button4.Enabled = False
  194. Timer1.Enabled = True
  195. End Sub
  196. End Class
  197.  
  198.  
  199.  
  200. NOTE THIS IS THE INJECTOR GIVE THUMBS UP AND THAT STUFF FOR SKEET INV MSG ME ON DISCORD lol44334567#0729
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement