Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.03 KB | None | 0 0
  1. k0 = 0x15348675
  2. k1 = 0x34867867
  3. k2 = 0x45378676
  4. k3 = 0x78653446
  5. l0 = 0x54378373
  6. l1 = 0x78678676
  7. m0 = 0x78678667
  8. m1 = 0x78678375
  9.  
  10. #NoEnv
  11. #SingleInstance, Force
  12. #Persistent
  13. #InstallKeybdHook
  14. #UseHook
  15. #KeyHistory, 0
  16. #HotKeyInterval 1
  17. #MaxHotkeysPerInterval 127
  18. version = badeverything v0.02
  19.  
  20.  
  21. return
  22.  
  23.  
  24. *~$LButton::
  25.  
  26. SetKeyDelay,-1, 1
  27. SetControlDelay, -1
  28. SetMouseDelay, -1
  29. SetWinDelay,-1
  30. SendMode, InputThenPlay
  31. SetBatchLines,-1
  32. ListLines, Off
  33. CoordMode, Pixel, Screen, RGB
  34. CoordMode, Mouse, Screen
  35. PID := DllCall("GetCurrentProcessId")
  36. Process, Priority, %PID%, High
  37. ak1:=0x170702
  38. ak2:=0x0E0E0E
  39. m4a1s1:=0x131414
  40. m4a1s2:=0x1D1B1B
  41. glock1:=0x695539
  42. glock2:=0x312B29
  43. awp1:=0x3A3B26
  44. awp2:=0x2B2218
  45. ColVn := 0
  46. AntiShakeX := 380 ; CS 1.6 360 // BF4 90 //
  47. AntiShakeY := 380
  48. ZeroX := (A_ScreenWidth // 2) ;dont touch?
  49. ZeroY := (A_ScreenHeight // 2)
  50. CFovX := 50 ;CS 1.6 100 // BF4 150 //
  51. CFovY := 50
  52. AntiShakeX := 380
  53. AntiShakeY := 380
  54. ScanL := ZeroX - CFovX
  55. ScanT := ZeroY
  56. ScanR := ZeroX + CFovX
  57. ScanB := ZeroY + CFovY
  58. NearAimScanL := ZeroX - AntiShakeX
  59. NearAimScanT := ZeroY - AntiShakeY
  60. NearAimScanR := ZeroX + AntiShakeX
  61. NearAimScanB := ZeroY + AntiShakeY
  62.  
  63. Loop, {
  64. KeyWait, LButton, D
  65. PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, glock1, ColVn, Fast RGB
  66. {
  67. PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, glock2, ColVn, Fast RGB
  68. if (!ErrorLevel=0) {
  69. loop, 10 {
  70. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, glock1, ColVn, Fast RGB
  71. {
  72. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, glock2, ColVn, Fast RGB
  73. {
  74. gosub mousemoves
  75. }}}}}
  76. KeyWait, LButton, D
  77. PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, m4a1s1, ColVn, Fast RGB
  78. {
  79. PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, m4a1s2, ColVn, Fast RGB
  80. if (!ErrorLevel=0) {
  81. loop, 10 {
  82. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, m4a1s1, ColVn, Fast RGB
  83. {
  84. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, m4a1s2, ColVn, Fast RGB
  85. {
  86. gosub mousemoves
  87. }}}}}
  88. KeyWait, LButton, D
  89. PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, awp1, ColVn, Fast RGB
  90. {
  91. PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, awp2, ColVn, Fast RGB
  92. if (!ErrorLevel=0) {
  93. loop, 10 {
  94. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, awp1, ColVn, Fast RGB
  95. {
  96. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, awp2, ColVn, Fast RGB
  97. {
  98. gosub mousemoves
  99. }}}}}
  100. KeyWait, LButton, D
  101. PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, ak1, ColVn, Fast RGB
  102. {
  103. PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, ak2, ColVn, Fast RGB
  104. if (!ErrorLevel=0) {
  105. loop, 10 {
  106. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, ak1, ColVn, Fast RGB
  107. {
  108. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, ak2, ColVn, Fast RGB
  109. {
  110. gosub mousemoves
  111. }}}}}}
  112.  
  113.  
  114. Mousemoves:
  115. AimX := AimPixelX - ZeroX
  116. AimY := AimPixelY - ZeroY
  117. DirX := -1
  118. DirY := -1
  119. If ( AimX > 0 ) {
  120. DirX := 1
  121. }
  122. If ( AimY > 0 ) {
  123. DirY := 1
  124. }
  125. AimOffsetX := AimX * DirX
  126. AimOffsetY := AimY * DirY
  127. MoveX := Floor(( AimOffsetX ** ( 1 / 2 ))) * DirX
  128. MoveY := Floor(( AimOffsetY ** ( 1 / 2 ))) * DirY
  129. DllCall("mouse_event", uint, 1, int, MoveX, int, 0, uint, 0, int, 0) ;turing mouse to color were it says * is the speed of the aimbot turn up for unhuman reactions lower for human
  130.  
  131.  
  132. return:
  133.  
  134. info:
  135. return
  136. DebugTool1:
  137. MouseGetPos, MX, MY
  138. ToolTip, Mouse Pos: %Movesx% %MY% %cfovx% %cfovy%
  139. ToolTip, Aimpixel: %aimpixelx% %AimY% ,,+3, 2
  140. Return
  141. Return
  142. TEA(ByRef y,ByRef z, k0,k1,k2,k3)
  143. {
  144. s = 0
  145. d = 0x9E3779B9
  146. Loop 32
  147. {
  148. k := "k" . s & 3
  149. y := 0xFFFFFFFF & (y + ((z << 4 ^ z >> 5) + z ^ s + %k%))
  150. s := 0xFFFFFFFF & (s + d)
  151. k := "k" . s >> 11 & 3
  152. z := 0xFFFFFFFF & (z + ((y << 4 ^ y >> 5) + y ^ s + %k%))
  153. }
  154. }
  155. XCBC(x, u,v, k0,k1,k2,k3, l0,l1, m0,m1)
  156. {
  157. Loop % Ceil(StrLen(x)/16)-1
  158. XCBCstep(u, v, x, k0,k1,k2,k3)
  159. If (StrLen(x) = 16)
  160. {
  161. u := u ^ l0
  162. v := v ^ l1
  163. XCBCstep(u, v, x, k0,k1,k2,k3)
  164. }
  165. Else {
  166. u := u ^ m0
  167. v := v ^ m1
  168. x = %x%100000000000000
  169. XCBCstep(u, v, x, k0,k1,k2,k3)
  170. }
  171. Return Hex8(u) . Hex8(v)
  172. }
  173. XCBCstep(ByRef u, ByRef v, ByRef x, k0,k1,k2,k3)
  174. {
  175. StringLeft p, x, 8
  176. StringMid q, x, 9, 8
  177. StringTrimLeft x, x, 16
  178. p = 0x%p%
  179. q = 0x%q%
  180. u := u ^ p
  181. v := v ^ q
  182. TEA(u,v,k0,k1,k2,k3)
  183. }
  184. Hex8(i)
  185. {
  186. format = %A_FormatInteger%
  187. SetFormat Integer, Hex
  188. i += 0x100000000
  189. StringTrimLeft i, i, 3
  190. SetFormat Integer, %format%
  191. Return i
  192. }
  193. Hex(ByRef b, n=0)
  194. {
  195. format = %A_FormatInteger%
  196. SetFormat Integer, Hex
  197. m := VarSetCapacity(b)
  198. If (n < 1 or n > m)
  199. n := m
  200. Loop %n%
  201. {
  202. x := 256 + *(&b+A_Index-1)
  203. StringTrimLeft x, x, 3
  204. h = %h%%x%
  205. }
  206. SetFormat Integer, %format%
  207. Return h
  208. }
  209.  
  210. Insert::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement