Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; <COMPILER: v1.0.48.5>
- F5::
- Process = csgo.exe
- DllName = client.dll
- Process, Exist, %Process%
- PID = %ErrorLevel%
- SetFormat, Integer, Hex
- Base := GetDllBase(DllName, PID)
- Checkteam:=0
- timeshoot:=0
- timeshootbegin:=13
- trigger:=false
- refresh:=0
- acces:=0
- autoshot:=false
- radarbuttonn:=false
- countplayer:=0
- local:=base+0x00a4a98c
- entrybegin:=base+0x049ec194
- entry:=base+0x049ec194
- radarbasee:=base+0x0450BB0+0x6
- radar:=Readmemory(base+0x0450BB0+0x6,"Counter-Strike: Global Offensive")
- aimhelp:=false
- if (radar==0x8b127400 || radar==0x8b127401) {
- msgbox, Welcome to BaltoHack my friend!
- acces:=1
- }
- else {
- msgbox,Daum man! Hack need update :/
- }
- loop {
- if(acces==1){
- break
- }
- sleep 10
- }
- entry:=entrybegin
- loop {
- if(Checkteam==0)
- {
- Gosub, Teamcheck
- Checkteam:=1000
- }
- Checkteam:=Checkteam-1
- GetKeyState, state, Numpad3
- if state = D
- {
- if ( aimhelp==true)
- { aimhelp:=false
- msgbox, aimhelp off
- }
- else if ( aimhelp==false)
- { aimhelp:=true
- msgbox, aimhelp on
- }
- }
- GetKeyState, state, Numpad1
- if state = D
- {
- if ( trigger==true)
- { trigger:=false
- msgbox, trigger off
- }
- else if ( trigger==false)
- { trigger:=true
- msgbox, trigger on
- }
- }
- GetKeyState, state, Numpad4
- if state = D
- { sleep 10
- entry1:=entrybegin+(0x10*enemy1)-0x10
- entry2:=entrybegin+(0x10*enemy2)-0x10
- entry3:=entrybegin+(0x10*enemy3)-0x10
- entry4:=entrybegin+(0x10*enemy4)-0x10
- entry5:=entrybegin+(0x10*enemy5)-0x10
- entryadress1:=ReadMemory(entry1 ,"Counter-Strike: Global Offensive")
- entryadress2:=ReadMemory(entry2 ,"Counter-Strike: Global Offensive")
- entryadress3:=ReadMemory(entry3 ,"Counter-Strike: Global Offensive")
- entryadress4:=ReadMemory(entry4 ,"Counter-Strike: Global Offensive")
- entryadress5:=ReadMemory(entry5 ,"Counter-Strike: Global Offensive")
- SetFormat, IntegerFast, d
- heath1:=ReadMemory(entryadress1+0xFC ,"Counter-Strike: Global Offensive")
- heath2:=ReadMemory(entryadress2+0xFC ,"Counter-Strike: Global Offensive")
- heath3:=ReadMemory(entryadress3+0xFC ,"Counter-Strike: Global Offensive")
- heath4:=ReadMemory(entryadress4+0xFC ,"Counter-Strike: Global Offensive")
- heath5:=ReadMemory(entryadress5+0xFC ,"Counter-Strike: Global Offensive")
- msgbox, %heath1% %heath2% %heath3% %heath4% %heath5%
- SetFormat, Integer, Hex
- }
- GetKeyState, state, Numpad2
- if state = D
- {
- if ( autoshot==true)
- { autoshot:=false
- msgbox, autoshot off
- }
- else if ( autoshot==false)
- { autoshot:=true
- msgbox, autoshot on
- }
- }
- shottt:=0
- GetKeyState, state, MButton
- if state = D
- {
- shottt=1
- }
- localadress:=ReadMemory(local,"Counter-Strike: Global Offensive")
- entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
- if ( autoshot=true || shottt==1)
- {
- if (aimhelp==true )
- {
- playerot:=ReadMemoryfloat(localadress+0x1584,"Counter-Strike: Global Offensive")
- playerotz:=ReadMemoryfloat(base+0x49E14AC,"Counter-Strike: Global Offensive")
- bonmat:=ReadMemory(entryadress+0xa78,"Counter-Strike: Global Offensive")
- x1:=ReadMemoryfloat(bonmat+0x12C,"Counter-Strike: Global Offensive")
- y1:=ReadMemoryfloat(bonmat+0x13C,"Counter-Strike: Global Offensive")
- z1:=ReadMemoryfloat(bonmat+0x20C,"Counter-Strike: Global Offensive")
- x2:=ReadMemoryfloat(localadress+0xA0 ,"Counter-Strike: Global Offensive")
- y2:=ReadMemoryfloat(localadress+0xA4 ,"Counter-Strike: Global Offensive")
- z2:=ReadMemoryfloat(base+0x49E14A8,"Counter-Strike: Global Offensive")
- ygol:= ((y2-y1) / (x2-x1))
- if( (x2-x1)<0)
- {
- ygol2:=atan(ygol)*57.29578
- }
- else
- {
- ygol:= ((y1-y2) / (x1-x2))
- ygol2:=(3.14-atan(ygol))*-57.29578
- }
- if (ygol2 < -180){
- ygol2:=180-((ygol2*-1)-180)
- }
- heath:=ReadMemory(entryadress+0xFC ,"Counter-Strike: Global Offensive")
- dis:=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
- ygolz:=(z1-z2)/(dis)
- ygolz2:=atan(ygolz)*-57.29578
- if ((abs(ygolz2-playerotz))<10 && (abs(ygolz2-playerotz))>0.2 && heath>0 && abs(ygol2-playerot)<10 ) {
- if(ygolz2<playerotz) {
- DllCall("mouse_event", uint, 1, int, 0, int, -2, uint, 0, int, 1)
- }
- if(ygolz2>playerotz) {
- DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 1)
- }
- }
- if ((abs(ygol2-playerot))<10 && (abs(ygol2-playerot))>0.2 && heath>0 ) {
- if(ygol2<playerot) {
- DllCall("mouse_event", uint, 1, int, 2, int, 0, uint, 0, int, 1)
- }
- if(ygol2>playerot) {
- DllCall("mouse_event", uint, 1, int, -2, int, 0, uint, 0, int, 1)
- }
- }
- }
- value:=ReadMemory(localadress+0x23f8,"Counter-Strike: Global Offensive")
- if (aftershot==1 && timeshoot==0)
- {
- send {LButton}
- Random, aftershot, 0, 4
- Random, timeshootbegin, 5, 15
- timeshoot:=timeshootbegin
- }
- if (value==enemy1 || value==enemy2 || value==enemy3 || value==enemy4 || value==enemy5 )
- {
- entry:=entrybegin+(0x10*value)-0x10
- if (trigger==true && timeshoot==0) {
- send {LButton}
- Random, timeshootbegin, 8, 20
- timeshoot:=timeshootbegin
- Random, aftershot, 0, 2
- }
- }
- }
- GetKeyState, state, Numpad0
- if state = D
- {
- if(radarbuttonn=false){
- WriteMemory( 1,radarbasee,"Counter-Strike: Global Offensive")
- sleep 500
- radarbuttonn:=true
- }
- else if(radarbuttonn=true){
- WriteMemory( 0,radarbasee,"Counter-Strike: Global Offensive")
- sleep 500
- radarbuttonn:=false
- } }
- timeshoot:=timeshoot-1
- if (timeshoot<0) {
- timeshoot:=0
- }
- entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
- heath:=ReadMemory(entryadress+0xFC ,"Counter-Strike: Global Offensive")
- myheath:=ReadMemory(localadress+0xFC ,"Counter-Strike: Global Offensive")
- if (heath==0 || myheath==0)
- {
- entry:=0
- }
- sleep 1
- }
- Next:
- entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
- hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
- if (hisid==0 ) {
- entry:=entrybegin
- }
- else {
- entry:=entry+0x10
- }
- Return
- Getteam:
- myteam:=ReadMemory(localadress+0xf0,"Counter-Strike: Global Offensive")
- histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
- Return
- Getid:
- hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
- if (hisid==0 ) {
- refresh:=1
- }
- Return
- GetDllBase(DllName, PID = 0)
- {
- TH32CS_SNAPMODULE := 0x00000008
- INVALID_HANDLE_VALUE = -1
- VarSetCapacity(me32, 548, 0)
- NumPut(548, me32)
- snapMod := DllCall("CreateToolhelp32Snapshot", "Uint", TH32CS_SNAPMODULE
- , "Uint", PID)
- If (snapMod = INVALID_HANDLE_VALUE) {
- Return 0
- }
- If (DllCall("Module32First", "Uint", snapMod, "Uint", &me32)){
- while(DllCall("Module32Next", "Uint", snapMod, "UInt", &me32)) {
- If !DllCall("lstrcmpi", "Str", DllName, "UInt", &me32 + 32) {
- DllCall("CloseHandle", "UInt", snapMod)
- Return NumGet(&me32 + 20)
- }
- }
- }
- DllCall("CloseHandle", "Uint", snapMod)
- Return 0
- }
- ReadMemory(MADDRESS,PROGRAM)
- {
- winget, pid, PID, %PROGRAM%
- VarSetCapacity(MVALUE,4,0)
- ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
- DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Str",MVALUE,"UInt",4,"UInt *",0)
- Loop 4
- result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)
- return, result
- }
- Teamcheck:
- localadress:=ReadMemory(local,"Counter-Strike: Global Offensive")
- myteam:=ReadMemory(localadress+0xf0,"Counter-Strike: Global Offensive")
- if ( myteam==3)
- {
- enemyteam:=2
- }
- else {
- enemyteam:=3
- }
- entry:=entrybegin
- loop {
- entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
- hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
- histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
- if (histeam==enemyteam) {
- enemy1:=hisid
- entry:=entry+0x10
- break
- }
- sleep 1
- entry:=entry+0x10
- }
- loop {
- entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
- hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
- histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
- if (histeam==enemyteam) {
- enemy2:=hisid
- entry:=entry+0x10
- break
- }
- entry:=entry+0x10
- sleep 1
- }
- loop {
- entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
- hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
- histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
- if (histeam==enemyteam) {
- enemy3:=hisid
- entry:=entry+0x10
- break
- }
- entry:=entry+0x10
- sleep 1
- }
- loop {
- entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
- hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
- histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
- if (histeam==enemyteam) {
- enemy4:=hisid
- entry:=entry+0x10
- break
- }
- entry:=entry+0x10
- sleep 1
- }
- loop {
- entryadress:=ReadMemory(entry,"Counter-Strike: Global Offensive")
- hisid:=ReadMemory(entryadress+0x64,"Counter-Strike: Global Offensive")
- histeam:=ReadMemory(entryadress+0xf0,"Counter-Strike: Global Offensive")
- if (histeam==enemyteam) {
- enemy5:=hisid
- entry:=entry+0x10
- break
- }
- entry:=entry+0x10
- sleep 1
- }
- Return
- *~$Space::
- Sleep 100
- Loop
- {
- GetKeyState, SpaceState, Space, P
- If SpaceState = U
- break
- Sleep 1
- Send, {Blind}{Space}
- }
- Return
- ReadMemoryfloat(MADDRESS,PROGRAM)
- {
- winget, pid, PID, %PROGRAM%
- VarSetCapacity(MVALUE,4,0)
- ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
- DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Float*",float,"UInt",8,"UInt *",0)
- DllCall("CloseHandle", "int", ProcessHandle)
- return, float
- }
- WriteMemory(WVALUE,WriteAddress,PROGRAM)
- {
- winget, pid, PID, %PROGRAM%
- VarSetCapacity(Buffer, 1, 0)
- NumPut(WVALUE, Buffer, 0, "Int")
- ProcessHandle := DllCall("OpenProcess", "int", 2035711, "Int", 0, "UInt", PID)
- writeResult := DllCall("WriteProcessMemory"
- , "UInt", ProcessHandle
- , "UInt", WriteAddress
- , "UInt", &Buffer
- , "UInt", 1
- , "UInt*", sizeWritten)
- DllCall("CloseHandle", "int", ProcessHandle)
- return
- }
- ReadMemorybyte(MADDRESS,PROGRAM)
- {
- winget, pid, PID, %PROGRAM%
- VarSetCapacity(MVALUE,4,0)
- ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
- DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Str",MVALUE,"UInt",1,"UInt *",0)
- Loop 4
- result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)
- return, result
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement