Advertisement
Guest User

BaltoCheat

a guest
Apr 3rd, 2015
1,682
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; <COMPILER: v1.0.48.5>
  2. F5::
  3.  
  4.  
  5.  
  6. Process = csgo.exe
  7. DllName = client.dll
  8.  
  9.  
  10. Process, Exist, %Process%
  11. PID = %ErrorLevel%
  12. SetFormat, Integer, Hex
  13. Base := GetDllBase(DllName, PID)
  14.  
  15.  
  16. Checkteam:=0
  17. timeshoot:=0
  18. timeshootbegin:=13
  19. trigger:=false
  20. refresh:=0
  21. acces:=0
  22. autoshot:=false
  23. radarbuttonn:=false
  24. countplayer:=0
  25. local:=base+0x00a4a98c
  26. entrybegin:=base+0x049ec194
  27. entry:=base+0x049ec194
  28. radarbasee:=base+0x0450BB0+0x6
  29. radar:=Readmemory(base+0x0450BB0+0x6,"Counter-Strike: Global Offensive")
  30. aimhelp:=false
  31.  
  32. if (radar==0x8b127400 || radar==0x8b127401) {
  33. msgbox, Welcome to BaltoHack my friend!
  34. acces:=1
  35. }
  36. else {
  37. msgbox,Daum man! Hack need update :/
  38. }
  39.  
  40. loop {
  41. if(acces==1){
  42. break
  43. }
  44. sleep 10
  45. }
  46.  
  47.  
  48.  
  49.  
  50. entry:=entrybegin
  51. loop {
  52.  
  53. if(Checkteam==0)
  54. {
  55. Gosub, Teamcheck
  56. Checkteam:=1000
  57. }
  58.  
  59. Checkteam:=Checkteam-1
  60.  
  61.  
  62. GetKeyState, state, Numpad3
  63. if state = D
  64. {
  65. if ( aimhelp==true)
  66. { aimhelp:=false
  67. msgbox, aimhelp off
  68.  
  69. }
  70. else if ( aimhelp==false)
  71. { aimhelp:=true
  72. msgbox, aimhelp on
  73. }
  74. }
  75.  
  76.  
  77.  
  78. GetKeyState, state, Numpad1
  79. if state = D
  80. {
  81. if ( trigger==true)
  82. { trigger:=false
  83. msgbox, trigger off
  84.  
  85. }
  86. else if ( trigger==false)
  87. { trigger:=true
  88. msgbox, trigger on
  89. }
  90. }
  91.  
  92.  
  93. GetKeyState, state, Numpad4
  94. if state = D
  95. { sleep 10
  96. entry1:=entrybegin+(0x10*enemy1)-0x10
  97. entry2:=entrybegin+(0x10*enemy2)-0x10
  98. entry3:=entrybegin+(0x10*enemy3)-0x10
  99. entry4:=entrybegin+(0x10*enemy4)-0x10
  100. entry5:=entrybegin+(0x10*enemy5)-0x10
  101. entryadress1:=ReadMemory(entry1 ,"Counter-Strike: Global Offensive")
  102. entryadress2:=ReadMemory(entry2 ,"Counter-Strike: Global Offensive")
  103. entryadress3:=ReadMemory(entry3 ,"Counter-Strike: Global Offensive")
  104. entryadress4:=ReadMemory(entry4 ,"Counter-Strike: Global Offensive")
  105. entryadress5:=ReadMemory(entry5 ,"Counter-Strike: Global Offensive")
  106. SetFormat,  IntegerFast, d
  107. heath1:=ReadMemory(entryadress1+0xFC ,"Counter-Strike: Global Offensive")
  108. heath2:=ReadMemory(entryadress2+0xFC ,"Counter-Strike: Global Offensive")
  109. heath3:=ReadMemory(entryadress3+0xFC ,"Counter-Strike: Global Offensive")
  110. heath4:=ReadMemory(entryadress4+0xFC ,"Counter-Strike: Global Offensive")
  111. heath5:=ReadMemory(entryadress5+0xFC ,"Counter-Strike: Global Offensive")
  112.  
  113. msgbox, %heath1% %heath2% %heath3% %heath4% %heath5%
  114. SetFormat, Integer, Hex
  115.  
  116. }
  117.  
  118.  
  119.  
  120. GetKeyState, state, Numpad2
  121. if state = D
  122. {
  123. if ( autoshot==true)
  124. { autoshot:=false
  125. msgbox, autoshot off
  126.  
  127.  
  128. }
  129. else if ( autoshot==false)
  130. { autoshot:=true
  131. msgbox, autoshot on
  132. }
  133. }
  134.  
  135.  
  136.  
  137. shottt:=0
  138. GetKeyState, state, MButton
  139. if state = D
  140. {
  141. shottt=1
  142. }
  143. localadress:=ReadMemory(local,"Counter-Strike: Global Offensive")
  144. entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
  145.  
  146.  
  147.  
  148. if ( autoshot=true  || shottt==1)
  149. {
  150.  
  151. if (aimhelp==true  )
  152. {
  153.  
  154.  
  155. playerot:=ReadMemoryfloat(localadress+0x1584,"Counter-Strike: Global Offensive")
  156.  
  157. playerotz:=ReadMemoryfloat(base+0x49E14AC,"Counter-Strike: Global Offensive")
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165. bonmat:=ReadMemory(entryadress+0xa78,"Counter-Strike: Global Offensive")
  166.  
  167. x1:=ReadMemoryfloat(bonmat+0x12C,"Counter-Strike: Global Offensive")
  168. y1:=ReadMemoryfloat(bonmat+0x13C,"Counter-Strike: Global Offensive")
  169. z1:=ReadMemoryfloat(bonmat+0x20C,"Counter-Strike: Global Offensive")
  170.  
  171.  
  172. x2:=ReadMemoryfloat(localadress+0xA0 ,"Counter-Strike: Global Offensive")
  173. y2:=ReadMemoryfloat(localadress+0xA4 ,"Counter-Strike: Global Offensive")
  174.  
  175. z2:=ReadMemoryfloat(base+0x49E14A8,"Counter-Strike: Global Offensive")
  176.  
  177.  
  178.  
  179.  
  180.  
  181. ygol:= ((y2-y1) / (x2-x1))
  182. if( (x2-x1)<0)
  183. {
  184. ygol2:=atan(ygol)*57.29578
  185. }
  186. else
  187. {
  188. ygol:= ((y1-y2) / (x1-x2))
  189. ygol2:=(3.14-atan(ygol))*-57.29578
  190. }
  191. if (ygol2 < -180){
  192. ygol2:=180-((ygol2*-1)-180)
  193. }
  194. heath:=ReadMemory(entryadress+0xFC ,"Counter-Strike: Global Offensive")
  195.  
  196.  
  197. dis:=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
  198. ygolz:=(z1-z2)/(dis)
  199. ygolz2:=atan(ygolz)*-57.29578
  200.  
  201.  
  202.  
  203. if ((abs(ygolz2-playerotz))<10  && (abs(ygolz2-playerotz))>0.2 && heath>0  && abs(ygol2-playerot)<10  ) {
  204.  
  205. if(ygolz2<playerotz) {
  206. DllCall("mouse_event", uint, 1, int, 0, int, -2, uint, 0, int, 1)
  207. }
  208. if(ygolz2>playerotz) {
  209. DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 1)
  210. }
  211. }
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220. if ((abs(ygol2-playerot))<10  && (abs(ygol2-playerot))>0.2  && heath>0    ) {
  221. if(ygol2<playerot) {
  222. DllCall("mouse_event", uint, 1, int, 2, int, 0, uint, 0, int, 1)
  223. }
  224. if(ygol2>playerot) {
  225. DllCall("mouse_event", uint, 1, int, -2, int, 0, uint, 0, int, 1)
  226. }
  227. }
  228. }
  229.  
  230.  
  231.  
  232. value:=ReadMemory(localadress+0x23f8,"Counter-Strike: Global Offensive")
  233.  
  234.  
  235.  
  236. if (aftershot==1  && timeshoot==0)
  237. {
  238. send {LButton}
  239. Random, aftershot, 0, 4
  240. Random, timeshootbegin, 5, 15
  241. timeshoot:=timeshootbegin
  242. }
  243.  
  244.  
  245. if (value==enemy1 || value==enemy2 ||  value==enemy3 || value==enemy4 || value==enemy5     )
  246. {
  247.  
  248. entry:=entrybegin+(0x10*value)-0x10
  249.  
  250.  
  251. if (trigger==true && timeshoot==0) {
  252. send {LButton}
  253. Random, timeshootbegin, 8, 20
  254. timeshoot:=timeshootbegin
  255.  
  256. Random, aftershot, 0, 2
  257.  
  258.  
  259. }
  260.  
  261.  
  262. }
  263.  
  264. }
  265.  
  266.  
  267.  
  268. GetKeyState, state, Numpad0
  269. if state = D
  270. {
  271. if(radarbuttonn=false){
  272. WriteMemory( 1,radarbasee,"Counter-Strike: Global Offensive")
  273.  sleep 500
  274. radarbuttonn:=true
  275.  
  276. }
  277. else if(radarbuttonn=true){
  278. WriteMemory( 0,radarbasee,"Counter-Strike: Global Offensive")
  279.  sleep 500
  280. radarbuttonn:=false
  281.  
  282. } }
  283.  
  284.  
  285. timeshoot:=timeshoot-1
  286. if (timeshoot<0) {
  287. timeshoot:=0
  288. }
  289. entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
  290. heath:=ReadMemory(entryadress+0xFC ,"Counter-Strike: Global Offensive")
  291. myheath:=ReadMemory(localadress+0xFC ,"Counter-Strike: Global Offensive")
  292. if (heath==0 ||  myheath==0)
  293. {
  294. entry:=0
  295. }
  296.  
  297.  
  298.  
  299. sleep 1
  300. }
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309. Next:
  310.  
  311. entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
  312. hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
  313. if (hisid==0 ) {
  314. entry:=entrybegin
  315. }
  316. else {
  317. entry:=entry+0x10
  318.  
  319. }
  320. Return
  321.  
  322. Getteam:
  323. myteam:=ReadMemory(localadress+0xf0,"Counter-Strike: Global Offensive")
  324. histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
  325. Return
  326.  
  327. Getid:
  328. hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
  329. if (hisid==0 ) {
  330. refresh:=1
  331. }
  332. Return
  333.  
  334. GetDllBase(DllName, PID = 0)
  335. {
  336.    TH32CS_SNAPMODULE := 0x00000008
  337.     INVALID_HANDLE_VALUE = -1
  338.     VarSetCapacity(me32, 548, 0)
  339.     NumPut(548, me32)
  340.     snapMod := DllCall("CreateToolhelp32Snapshot", "Uint", TH32CS_SNAPMODULE
  341.                                                  , "Uint", PID)
  342.     If (snapMod = INVALID_HANDLE_VALUE) {
  343.         Return 0
  344.     }
  345.     If (DllCall("Module32First", "Uint", snapMod, "Uint", &me32)){
  346.         while(DllCall("Module32Next", "Uint", snapMod, "UInt", &me32)) {
  347.             If !DllCall("lstrcmpi", "Str", DllName, "UInt", &me32 + 32) {
  348.                 DllCall("CloseHandle", "UInt", snapMod)
  349.                 Return NumGet(&me32 + 20)
  350.             }
  351.         }
  352.     }
  353.     DllCall("CloseHandle", "Uint", snapMod)
  354.     Return 0
  355. }
  356. ReadMemory(MADDRESS,PROGRAM)
  357. {
  358. winget, pid, PID, %PROGRAM%
  359. VarSetCapacity(MVALUE,4,0)
  360. ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
  361. DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Str",MVALUE,"UInt",4,"UInt *",0)
  362. Loop 4
  363. result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)
  364. return, result
  365. }
  366.  
  367. Teamcheck:
  368.  
  369. localadress:=ReadMemory(local,"Counter-Strike: Global Offensive")
  370. myteam:=ReadMemory(localadress+0xf0,"Counter-Strike: Global Offensive")
  371. if ( myteam==3)
  372. {
  373. enemyteam:=2
  374. }
  375. else {
  376. enemyteam:=3
  377. }
  378. entry:=entrybegin
  379. loop {
  380. entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
  381. hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
  382. histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
  383. if (histeam==enemyteam) {
  384. enemy1:=hisid
  385. entry:=entry+0x10
  386. break
  387. }
  388. sleep 1
  389. entry:=entry+0x10
  390.  
  391. }
  392.  
  393. loop {
  394. entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
  395. hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
  396. histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
  397. if (histeam==enemyteam) {
  398. enemy2:=hisid
  399. entry:=entry+0x10
  400. break
  401. }
  402. entry:=entry+0x10
  403. sleep 1
  404. }
  405. loop {
  406. entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
  407. hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
  408. histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
  409. if (histeam==enemyteam) {
  410. enemy3:=hisid
  411. entry:=entry+0x10
  412.  
  413. break
  414. }
  415. entry:=entry+0x10
  416.  
  417. sleep 1
  418. }
  419. loop {
  420. entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
  421. hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
  422. histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
  423. if (histeam==enemyteam) {
  424. enemy4:=hisid
  425. entry:=entry+0x10
  426. break
  427. }
  428. entry:=entry+0x10
  429. sleep 1
  430.  
  431. }
  432. loop {
  433. entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
  434.  
  435. hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
  436. histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
  437. if (histeam==enemyteam) {
  438. enemy5:=hisid
  439. entry:=entry+0x10
  440.  
  441. break
  442. }
  443. entry:=entry+0x10
  444. sleep 1
  445. }
  446.  
  447. Return
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456. *~$Space::
  457. Sleep 100
  458. Loop
  459. {
  460.     GetKeyState, SpaceState, Space, P
  461.     If SpaceState = U
  462.   break
  463.     Sleep 1
  464.     Send, {Blind}{Space}
  465. }
  466. Return
  467.  
  468.  
  469.  
  470.  
  471. ReadMemoryfloat(MADDRESS,PROGRAM)
  472. {
  473. winget, pid, PID, %PROGRAM%
  474.  
  475. VarSetCapacity(MVALUE,4,0)
  476. ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
  477. DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Float*",float,"UInt",8,"UInt *",0)
  478. DllCall("CloseHandle", "int", ProcessHandle)
  479.  
  480. return, float
  481. }
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490. WriteMemory(WVALUE,WriteAddress,PROGRAM)
  491. {
  492.     winget, pid, PID, %PROGRAM%
  493.     VarSetCapacity(Buffer, 1, 0)
  494.     NumPut(WVALUE, Buffer, 0, "Int")
  495.  
  496.     ProcessHandle := DllCall("OpenProcess", "int", 2035711, "Int", 0, "UInt", PID)
  497.     writeResult := DllCall("WriteProcessMemory"
  498.                                         , "UInt", ProcessHandle
  499.                                         , "UInt", WriteAddress
  500.                                         , "UInt", &Buffer
  501.                                         , "UInt", 1
  502.                                         , "UInt*", sizeWritten)
  503.     DllCall("CloseHandle", "int", ProcessHandle)
  504.  
  505.  
  506.     return
  507. }
  508.  
  509.  
  510.  
  511. ReadMemorybyte(MADDRESS,PROGRAM)
  512. {
  513. winget, pid, PID, %PROGRAM%
  514. VarSetCapacity(MVALUE,4,0)
  515. ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
  516. DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Str",MVALUE,"UInt",1,"UInt *",0)
  517. Loop 4
  518. result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)
  519. return, result
  520. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement