OldSchoolHack

Registrieren / Anmelden Deutsch

External css radar

Download (31.50 KB)

VirusTotal Ergebnis: 0/47

virustotal

Beschreibung

External radar for css

VB Code:
  1. Public Class sfdgsdgfsdgfds
  2.  
  3. Public Declare Function ReadProcessMemory Lib "KERNEL32" (ByVal Handle As Integer, ByVal Address As Integer, ByRef Value As Long, ByVal Size As Long, ByRef BytesWritten As Long) As Long
  4. Public Declare Function ReadFloatMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal Handle As Integer, ByVal Address As Integer, ByRef Value As Single, ByVal Size As Long, ByRef BytesWritten As Long) As Long
  5. Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
  6.  
  7. Structure localplayer_t
  8. Public address As Integer
  9. Public team As Integer
  10. Public position_1 As Single
  11. Public position_2 As Single
  12. Public viewangle_2 As Single
  13. End Structure
  14. Public LocalPlayer As localplayer_t
  15.  
  16. Structure radarstruct_t
  17. Public address As Integer
  18. Public team As Integer
  19. Public position_1 As Single
  20. Public position_2 As Single
  21. Public hp As Integer
  22. End Structure
  23. Public RadarStruct(120) As radarstruct_t
  24.  
  25. Structure radar_data_t
  26. Public valid As Boolean
  27. Public color As Brush
  28. Public position As Point
  29. End Structure
  30. Public RadarData(120) As radar_data_t
  31.  
  32. Structure radar_t
  33. Public position As Point
  34. Public size As Point
  35. Public backcolor As Brush
  36. Public bordercolor As Brush
  37. Public maxdistance As Integer
  38. Public maxplayer As Integer
  39. Public opacity As Single
  40. Public showfriends As Boolean
  41. End Structure
  42. Dim Radar As radar_t
  43.  
  44. Dim thread1 As System.Threading.Thread
  45. Dim thread2 As System.Threading.Thread
  46.  
  47. Dim hprocess As Process()
  48. Dim ready As Boolean = False
  49. Dim client_base As Integer
  50. Dim engine_base As Integer
  51.  
  52. Dim fac As Single = 0.5
  53. Dim radtodeg As Single = 57.295779513082323
  54. Dim my_id As Integer
  55.  
  56. Dim localplayer_offset As Integer = &H55DB34
  57. Dim my_id_offset As Integer = &H56B3E4
  58. Dim my_position_offset As Integer = &H3D0380
  59. Dim my_viewangle_offset As Integer = &H474A1C
  60. Dim radarstruct_offset As Integer = &H5A36A8
  61.  
  62. Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
  63. End
  64. End Sub
  65.  
  66. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  67. hprocess = Process.GetProcessesByName("hl2")
  68. If hprocess.Length = 0 Then
  69. MsgBox("Start Counter-Strike Source before")
  70. End
  71. Else
  72. Control.CheckForIllegalCrossThreadCalls = False
  73. For i As Integer = 0 To 20
  74. For Each [Module] As System.Diagnostics.ProcessModule In hprocess(0).Modules
  75. Try
  76. If [Module].ModuleName = "client.dll" Then
  77. client_base = [Module].BaseAddress
  78. End If
  79. If [Module].ModuleName = "engine.dll" Then
  80. engine_base = [Module].BaseAddress
  81. End If
  82. Catch ex As Exception
  83. End Try
  84. Next
  85. Threading.Thread.Sleep(1000)
  86. If client_base > 0 And engine_base > 0 Then
  87. Exit For
  88. End If
  89. If i = 20 Then
  90. End
  91. End If
  92. Next
  93. Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
  94. Me.TopMost = True
  95. Me.BringToFront()
  96. Me.DoubleBuffered = True
  97. ' ||| Settings |||
  98. Radar.backcolor = New SolidBrush(Color.FromArgb(50, 50, 50))
  99. Radar.bordercolor = New SolidBrush(Color.FromArgb(65, 65, 65))
  100. Radar.position = New Point(0, 0) 'Useless
  101. Radar.size = New Point(200, 200)
  102. Radar.maxdistance = 20
  103. Radar.maxplayer = 64
  104. Radar.opacity = 99
  105. Radar.showfriends = True
  106. ' ||| Settings |||
  107. Me.Size = New Point(Radar.size.X + 1, Radar.size.Y + 1)
  108. Me.Opacity = Radar.opacity / 100
  109. thread1 = New System.Threading.Thread(AddressOf th1)
  110. thread1.Start()
  111. thread2 = New System.Threading.Thread(AddressOf th2)
  112. thread2.Start()
  113. ready = True
  114. End If
  115. End Sub
  116.  
  117. Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
  118. If ready Then
  119. e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.None
  120. e.Graphics.FillRectangle(Radar.backcolor, Radar.position.X, Radar.position.Y, Radar.size.X + 1, Radar.size.Y + 1)
  121. For i As Integer = 2 To Radar.size.X / 3 - 4
  122. For j As Integer = 2 To Radar.size.X / 3 - 4
  123. ' e.Graphics.FillRectangle(Brushes.Black, Radar.position.X + i * 3 + 2, Radar.position.Y + j * 3 + 2, 1, 1)
  124. Next
  125. Next
  126. e.Graphics.DrawRectangle(Pens.Black, Radar.position.X, Radar.position.Y, Radar.size.X, Radar.size.Y)
  127. e.Graphics.DrawRectangle(Pens.Black, Radar.position.X, Radar.position.Y, Radar.size.X, Radar.size.Y)
  128. e.Graphics.FillRectangle(Brushes.Black, Radar.position.X + Radar.size.X * fac, Radar.position.Y, 1, Radar.size.Y)
  129. e.Graphics.FillRectangle(Brushes.Black, Radar.position.X, Radar.position.Y + Radar.size.X * fac, Radar.size.Y, 1)
  130. e.Graphics.DrawRectangle(Pens.Black, Radar.position.X + Radar.size.X * fac - 2, Radar.position.Y + Radar.size.Y * fac - 2, 4, 4)
  131. e.Graphics.FillRectangle(Brushes.LightGray, Radar.position.X + Radar.size.X * fac - 1, Radar.position.Y + Radar.size.Y * fac - 1, 3, 3)
  132. For i As Integer = 0 To Radar.maxplayer - 1
  133. If RadarData(i).valid Then
  134. e.Graphics.DrawRectangle(Pens.Black, Radar.position.X + Radar.size.X * fac + RadarData(i).position.X - 2, Radar.position.Y + Radar.size.Y * fac + RadarData(i).position.Y - 2, 4, 4)
  135. e.Graphics.FillRectangle(RadarData(i).color, Radar.position.X + Radar.size.X * fac + RadarData(i).position.X - 1, Radar.position.Y + Radar.size.Y * fac + RadarData(i).position.Y - 1, 3, 3)
  136. End If
  137. Next
  138. End If
  139. End Sub
  140.  
  141. Function th1()
  142. Dim delta_x As Single
  143. Dim delta_y As Single
  144. Dim Dist As Single
  145. Dim yaw_id As Single
  146. Dim yaw_delta As Single
  147. Dim temp_id_x As Single
  148. Dim temp_id_y As Single
  149. While (1)
  150. ReadProcessMemory(hprocess(0).Handle, client_base + localplayer_offset, LocalPlayer.address, 4, 0)
  151. ReadProcessMemory(hprocess(0).Handle, LocalPlayer.address + &H98, LocalPlayer.team, 4, 0)
  152. ReadFloatMemory(hprocess(0).Handle, engine_base + my_position_offset, LocalPlayer.position_1, 8, 0)
  153. ReadFloatMemory(hprocess(0).Handle, engine_base + my_viewangle_offset + 4, LocalPlayer.viewangle_2, 4, 0)
  154. ReadProcessMemory(hprocess(0).Handle, engine_base + my_id_offset, my_id, 4, 0)
  155.  
  156. ReadProcessMemory(hprocess(0).Handle, client_base + radarstruct_offset, RadarStruct(0).address, 4, 0)
  157. For i As Integer = 0 To Radar.maxplayer - 1
  158. ReadProcessMemory(hprocess(0).Handle, RadarStruct(0).address + (i * &H140) + &H5C, RadarStruct(i).hp, 4, 0)
  159. ReadProcessMemory(hprocess(0).Handle, RadarStruct(0).address + (i * &H140) + &H58, RadarStruct(i).team, 4, 0)
  160. ReadFloatMemory(hprocess(0).Handle, RadarStruct(0).address + (i * &H140) + &H60, RadarStruct(i).position_1, 8, 0)
  161. If (LocalPlayer.team <> RadarStruct(i).team Or Radar.showfriends) And i <> my_id And RadarStruct(i).hp > 0 And Not (RadarStruct(i).position_1 = 0 And RadarStruct(i).position_2 = 0) Then
  162. If RadarStruct(i).position_1 = LocalPlayer.position_1 Then RadarStruct(i).position_1 += 0.0001
  163. If RadarStruct(i).position_2 = LocalPlayer.position_2 Then RadarStruct(i).position_2 += 0.0001
  164. delta_x = Math.Abs(RadarStruct(i).position_1 - LocalPlayer.position_1)
  165. delta_y = Math.Abs(RadarStruct(i).position_2 - LocalPlayer.position_2)
  166. Dist = ((delta_x ^ 2) + (delta_y ^ 2)) ^ 0.5
  167. yaw_id = Math.Atan(delta_y / delta_x) * radtodeg
  168. If RadarStruct(i).position_1 < LocalPlayer.position_1 And RadarStruct(i).position_2 > LocalPlayer.position_2 Then
  169. yaw_id = 180 - yaw_id
  170. Else
  171. If RadarStruct(i).position_1 < LocalPlayer.position_1 And RadarStruct(i).position_2 < LocalPlayer.position_2 Then
  172. yaw_id = -180 + yaw_id
  173. Else
  174. If RadarStruct(i).position_1 > LocalPlayer.position_1 And RadarStruct(i).position_2 < LocalPlayer.position_2 Then
  175. yaw_id = yaw_id * -1
  176. End If
  177. End If
  178. End If
  179. yaw_delta = LocalPlayer.viewangle_2 - yaw_id - 90
  180. temp_id_x = (Math.Cos(yaw_delta / radtodeg) * Dist) / Radar.maxdistance
  181. temp_id_y = (Math.Sin(yaw_delta / radtodeg) * Dist) / Radar.maxdistance
  182. If temp_id_x > ((Radar.size.X - 20) / 2) - 1 Then
  183. temp_id_x = ((Radar.size.X - 20) / 2) - 1
  184. Else
  185. If temp_id_x < -((Radar.size.X - 20) / 2) + 1 Then
  186. temp_id_x = -((Radar.size.X - 20) / 2) + 1
  187. End If
  188. End If
  189. If temp_id_y > ((Radar.size.X - 20) / 2) - 1 Then
  190. temp_id_y = ((Radar.size.X - 20) / 2) - 1
  191. Else
  192. If temp_id_y < -((Radar.size.X - 20) / 2) + 1 Then
  193. temp_id_y = -((Radar.size.X - 20) / 2) + 1
  194. End If
  195. End If
  196. RadarData(i).valid = True
  197. RadarData(i).position = New Point(temp_id_x, temp_id_y)
  198. If RadarStruct(i).team = 2 Then
  199. RadarData(i).color = Brushes.Red
  200. Else
  201. RadarData(i).color = New SolidBrush(Color.FromArgb(0, 130, 255))
  202. End If
  203. Else
  204. RadarData(i).valid = False
  205. End If
  206. Next
  207. Threading.Thread.Sleep(5)
  208. End While
  209. End Function
  210.  
  211. Function th2()
  212. Dim temp_pos As Point
  213. Dim pressed As Boolean = False
  214. Dim locked As Boolean = False
  215. While (1)
  216. Me.TopMost = True
  217. If GetAsyncKeyState(1) Then
  218. If pressed = False Then
  219. pressed = True
  220. If MousePosition.X > Me.Location.X + Radar.position.X And MousePosition.X < Me.Location.X + Radar.position.X + Radar.size.X And MousePosition.Y > Me.Location.Y + Radar.position.Y And MousePosition.Y < Me.Location.Y + Radar.position.Y + Radar.size.Y Then
  221. If locked = False Then
  222. locked = True
  223. temp_pos = New Point(MousePosition.X - Me.Location.X, MousePosition.Y - Me.Location.Y)
  224. End If
  225. End If
  226. End If
  227. If locked = True Then
  228. Me.Location = New Point(MousePosition - temp_pos)
  229. End If
  230. Else
  231. locked = False
  232. pressed = False
  233. End If
  234. If GetAsyncKeyState(123) Then 'F12
  235. End
  236. End If
  237. hprocess = Process.GetProcessesByName("hl2")
  238. If hprocess.Length = 0 Then
  239. End
  240. End If
  241. Me.Invalidate()
  242. Threading.Thread.Sleep(5)
  243. End While
  244. End Function
  245. End Class

Download External css radar
post
Ist der noch undetected?
post
Danke, Es ist nicht Untetected?