Affichage des articles dont le libellé est Coding. Afficher tous les articles
Affichage des articles dont le libellé est Coding. Afficher tous les articles

jeudi 27 mars 2014

[Coding] how to get this work topic




hello guys i need a bit help to get it working

here is the surce code what is wrong may combat arms only crashes

main.cpp

Code:


#include <Windows.h>
#include "Class.h"

cConsole* pConsole;

#define Console 0x373BB6D0

INT ShowFPS, SpeedHack, SpeedHackx1, FlyHack, bFlyhack, Tracers, Pickup, SuperJump;

void Funçoes()
{
        pConsole = (cConsole*)Console;

if(GetAsyncKeyState(VK_F2) & 1) ShowFPS    = ! ShowFPS;
  if(ShowFPS)
                pConsole->FPS = 1;
        else
                pConsole->FPS = 0;

if(GetAsyncKeyState(VK_F3) & 1) SpeedHack  = ! SpeedHack;
  if(SpeedHack)
        {
                pConsole->BaseMoveAccel = 3000.000f *2;
                pConsole->StartAccel = 500.000f *2;
                pConsole->MaxAccel = 3000.000f *2;
                pConsole->AccelInc = 6000.000f *2;
                pConsole->WalkVel = 70.000f *2;
                pConsole->FRunVel = 285.000f *2;
                pConsole->BRunVel = 285.000f *2;
                pConsole->SRunVel = 285.000f *2;
                pConsole->DuckVel = 50.000f *2;
                SpeedHackx1 = 1;
        } 
        else if(!SpeedHack && SpeedHackx1){
                pConsole->BaseMoveAccel = 3000.000f;
                pConsole->StartAccel = 500.000f;
                pConsole->MaxAccel = 3000.000f;
                pConsole->AccelInc = 6000.000f;
                pConsole->WalkVel = 70.000f;
                pConsole->FRunVel = 285.000f;
                pConsole->BRunVel = 285.000f;
                pConsole->SRunVel = 285.000f;
                pConsole->DuckVel = 50.000f;
                SpeedHackx1 = 0;
        }

if(GetAsyncKeyState(VK_F4) & 1) FlyHack    = ! FlyHack;
        if(FlyHack){
                if(GetAsyncKeyState(VK_SPACE)){
                                if(bFlyhack == false){
                                        pConsole->PlayerGravity = 800;
                                        bFlyhack = true;}
                        }else{
                                if(bFlyhack == true){
                                        pConsole->PlayerGravity = -800;
                                        bFlyhack = false;
                                }
                        }
        }

if(GetAsyncKeyState(VK_F5) & 1) Tracers    = ! Tracers;
  if(Tracers)
                pConsole->ShowFirePath = 1;
        else
                pConsole->ShowFirePath = 0;

if(GetAsyncKeyState(VK_F6) & 1) Pickup    = ! Pickup;
    if(Pickup)
                pConsole->ActivationDistance = 99999;
        else
                pConsole->ActivationDistance = 100;

if(GetAsyncKeyState(VK_F7) & 1) SuperJump  = ! SuperJump;
    if(SuperJump)
                pConsole->JumpVel = 600;
        else
                pConsole->JumpVel = 300;
}

void dwHook (void)
{
        while(true) {
        DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");

 if(CShell)
          {
                Funçoes();
          }
        }
}

INT WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
        DisableThreadLibraryCalls(hModule);

        if(dwReason == DLL_PROCESS_ATTACH)
        {
      CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)dwHook,NULL,NULL,NULL);
        }
        return TRUE;
}


Class.h

Code:


class cConsole;

class cConsole
{
public:
char Unknown0[4];
        float FPS; //0x0004
char Unknown8[4400];
        float PlayerGravity; //0x1138
char Unknown113C[824];
        float BaseMoveAccel; //0x1474
char Unknown1478[32];
        float StartAccel; //0x1498
char Unknown149C[32];
        float MaxAccel; //0x14BC
char Unknown14C0[32];
        float AccelInc; //0x14E0
char Unknown14E4[32];
        float WalkVel; //0x1504
char Unknown1508[32];
        float FRunVel; //0x1528
char Unknown152C[32];
        float BRunVel; //0x154C
char Unknown1550[32];
        float SRunVel; //0x1570
char Unknown1574[32];
        float JumpVel; //0x1594
char Unknown1598[32];
        float DuckVel; //0x15B8
char Unknown15BC[30440];
        float ActivationDistance; //0x8CA4
char Unknown8CA8[2684];
        DWORD ShowFirePath; //0x9724
char Unknown9728[280];
};


thank you for help





mercredi 26 mars 2014

[Coding] Weapon Names topic




I wasn't descriptive enough in my last thread so I thought I might as well make it 100% c&p.

Now I don't like using assembly, but in this case I had to, because otherwise it crashes. :(


PHP Code:







g_dwWeaponIdToString Tools.FindPattern((DWORD)GetModuleHandle("client.dll"), 0x726000, (BYTE*)"\x55\x8B\xEC\x8B\x4D\x08\x33\xC0\xEB\x06\x8D\x9B""xxxxxxxxxxxx"); 










PHP Code:







__inline const charGetWeaponName(int weaponID)

{

    const 
charwpnName 0;

    
_asm

    
{

        
PUSH weaponID

        CALL g_dwWeaponIdToString

        ADD ESP
4

        MOV wpnName
EAX

    
}

    return 
wpnName;











usage:


Code:


C_BaseCombatWeapon *pWeapon = GetWeapon(pPlayer);
if (!pWeapon)
    return;

int weaponId = GetWeaponId(pWeapon);
const char* name = GetWeaponName(weaponId);







lundi 17 mars 2014

[Coding] Report location topic




Hello all,
this function report your location and maybe you can check zone where you are and if zone change report you location but i leave this up to you ;)


Code:


// Function AAGame.AAPlayerController.ReportLocation
// 0x0000 - 0x0000 | 0x00020202
struct AAAPlayerController_execReportLocation_Parms
{
};


Regards





mercredi 12 mars 2014

[Coding] Internal Bone Aimbot topic




func to get hitbox

PHP Code:







Vector __cdecl GetHitboxVec(__in CBaseEntity *pEnt__in int iHitbox)
{
    
mstudiobbox_t *pStudioTransform NULL;
    
matrix3x4a_t mBoneTransform[128]; // MAXSTUDIOBONES
    
studiohdr_t *pStudioHeader NULL;
    
Vector vHitboxvMaxvMin;
    const 
model_t *model;
 
    if(
pEnt && pEnt->SetupBones(mBoneTransformMAXSTUDIOBONESBONE_USED_BY_HITBOX0.f)) {
        
model pEnt->GetModel();
        if(
modelpStudioHeader pModel->GetStudiomodel(model);  
        if(
pStudioHeader) {
            
// never gets executed
            
Warning("pStudioHeader not null!\n");
            
pStudioTransform pStudioHeader->pHitbox(iHitbox0);
            
VectorTransform(pStudioTransform[iHitbox].bbminmBoneTransform[iHitbox], vMin);
            
VectorTransform(pStudioTransform[iHitbox].bbmaxmBoneTransform[iHitbox], vMax);
            
vHitbox = (vMin vMax) * 0.5f;
        }
    }
    return 
vHitbox;










code in my aimbot loop to get ent

PHP Code:







IClientEntity *pTemp pEntity->GetClientEntity(i);
if(
pTemp) {
    
CBaseEntity *pCheck pTemp->GetBaseEntity();
    ...
    
pAimAt pCheck;
    ... 









why does GetStudiomodel fail? D:





samedi 8 mars 2014

[Coding] Just a simple question topic




I see a lot of people use "float", I read what it is used for, but my CS Teacher tells us to use "double" for a decimal value, is there other reason as to why to use float?

Please explain this.

(Sorry for noob question)

Thanks,
The Kidd





mardi 18 février 2014

Coding languages topic




Hi guys, can anyone explain to me why you can have different coding languages? I am going to try and explain it the best way possible. Pretty much I want to know why some people use other coding languages instead of others? Are some better for particular activities? Like I know cross compatibility like you can't use html to code a game online you need to use Flash or Javascript etc.

tl;d why use one language over another?





mercredi 29 janvier 2014

[Coding] fraps hook topic




How to make a hook through FRAPS?
I wonder! I searched the internet but did not find...

Thanks for any help!





[Coding] RPM Error Code 299 topic




I am writing a personal SigScanner in C# that I have based on a more primitive pattern scanner (also developed my me) that I used successfully with Arma2. The primitive scanner did not use a pattern mask for unimportant elements while the new one does. The issue that I am having with my new SignScanner is at the testing level.

I have drafted a simple C# console app that prompts the user for an integer value and then increments a static variable by the entered value. My test is to be able to create a signature that will always be able to locate the address that the static variable occupies. I am able to use Cheat Engine and OllyDbg to find the variable address and create the signature. But when I try to read the entire process main module's byte array using RPM the RPM Function returns false and Marshal.GetLastWin32Error() returns 299. This isn't the exact code that I am using, but essentially the RPM call that I am making is this (all necessary variables are initialized elsewhere in code):


Code:


Process targetProcess;
byte[] buffer = new byte[targetProcess.MainModule.ModuleMemorySize];
int bytesRead;
ReadProcessMemory(targetProcess.Handle, targetProcess.MainModule.BaseAddress, buffer, targetProcess.MainModule.ModuleMemorySize, out bytesRead);


Is there anything wrong with this call for a C# (managed) target application? Am I potentially trying to read portions of memory which don't belong to the target application because it is spread out over the heap due to garbage collection? Is there a different, safer way to get a module's byte array than using RPM?





[Coding] How much you remember? topic




I would like to hear how much people remember when programming! :shrug:

If you just start up a C++ compiler and start writing a program, what is the most advanced program what you can do just from your brain memory?





[Coding] Replace Weapon Point Blank indo & brasil topic




hello guyz i need shared replace weapon undetect
thx : UC and member , uncle drache , aunt ana , uncle lonz , uncle kyubiee and many more cheaters


Code:



bool REPALCE(unsigned long ADRexec, int OFSexec, int PTRexec)
{
if (!IsBadReadPtr((void*)ADRexec, sizeof(unsigned long)))
{
if (!IsBadReadPtr((void*)(*(unsigned long*)ADRexec + OFSexec), sizeof(unsigned long)))
{
*(int*)(*(unsigned long*)ADRexec + OFSexec) = PTRexec;
}
}
return 0;
}

if(ReplaceAcc == 1){
for (int i = 0; i <= 16 ; i++){
REPALCE(OFS_ADRESS , 0x26574 + (i * 0x158), 0x11E1B6A8);
}}

#define OFS_ADRESS  0xAFFFC0  // for PB indonesia
#define OFS_ADRESS  0xAF0AD8 // for PB brasil


for tutor :
1. scuided
2. on replace weapon
3. when live off replace weapon then dispose of weapons
4. scuided again
5. grap wapons
6. happy cheating





[Coding] camera zoom topic




hi

on d3d9 based games you normaly use D3DXMatrixPerspectiveFovLH and D3DXMatrixLookAtLH to implement your camera zooming in/out.

do you know another way of doing zoom in d3d9 without the use of D3DXMatrixPerspectiveFovLH and D3DXMatrixLookAtLH?

i'm not asking for src just drop me a hint :)

thx





samedi 25 janvier 2014

[Coding] Moving crosshair externally topic




Hey I've been working on some external hacks from scratch and starting to get into aimbotting. I've encountered a problem where I'm unable to move my ingame crosshair using any type of SetPosition or Cursor.Position in C#, while it is working in any other desktop window.

Is it possible to move your crosshair without setting your view angle in memory as it is normally done?

Thanks in advance.