• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 1 of 1
    1. #1
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      145

      CoD4 silent aim source code

      John Kittz
      As promised, this works on a lot of other games in pretty much the same way, its very simple.

      Main:


      typedef void(__cdecl *tWritePacket)(void);
      tWritePacket oWritePacket;

      void mCL_WritePacket(){
      Hook.CL_WritePacket();
      oWritePacket();
      }

      int WINAPI DllThread(){

      DWORD CL_WritePacket_Addr = NULL;
      CL_WritePacket_Addr = 0x000000; // have fun reversing https://www.nanobit.net/doxy/quake3/cl__input_8c.html#a98
      oWritePacket = (tWritePacket)DetourFunction((PBYTE)CL_WritePacket_Addr, (PBYTE)mCL_WritePacket);
      }


      Hook:



      typedef struct usercmd_s
      {
      int servertime; // 0x0
      char Unknown001[0x4]; // 0x4
      int angles[3]; // 0x8
      int WeaponIndex; // 0x14
      char Unknown002[0x8]; // 0x18
      } usercmd_t;

      typedef struct input_s
      {
      usercmd_t usercmds[128]; // 0x0
      int currentCmdNum; // 0x1000

      usercmd_t *GetUserCmd(int cmdNum)
      {
      int id = cmdNum & 0x7F;
      return &usercmds[id];
      }
      } input_t;

      short angle2short(float x){
      return ((int)((x)* 65536 / 360) & 65535);
      }

      int short2angle(short x){
      return ((x)*(360.0 / 65536));
      }

      void CHook::CL_WritePacket(){
      usercmd_t *oldCmd, *curCmd;
      input_t *input = (input_t*)0xCC4FF8;

      curCmd = input->GetUserCmd(input->currentCmdNum);
      oldCmd = input->GetUserCmd(input->currentCmdNum - 1);

      oldCmd->angles[0] = curCmd->angles[0];
      oldCmd->angles[1] = curCmd->angles[1];
      oldCmd->WeaponIndex = curCmd->WeaponIndex;
      oldCmd->servertime +=1;

      oldCmd->angles[0] += (short)angle2short(Aimbotangles[1]); // fix Y
      oldCmd->angles[1] += (short)angle2short(Aimbotangles[0]); // fix X
      }



      Thanks to x22 for the correct usercmd/input structures.
      Last edited by NTvalk; 11-15-2013 at 03:20 PM.

    2. Thanks A200K, squeenie, N/A, simonpaa thanked for this post

    Similar Game Hacker Threads

    1. BlackShot Sea source code
      By fedrick_123 in forum Other Game Hacks
      Replies: 0
      Last Post: 02-06-2016, 07:02 AM
    2. source code c++ ? asm
      By waypointtv in forum C/C++
      Replies: 4
      Last Post: 05-20-2015, 01:52 AM
    3. [Help] C++ ESP AIMBOT SOURCE CODE GDI Drawing Source Code Help Please
      By PimpinRice in forum GH Tutorials Help
      Replies: 10
      Last Post: 10-25-2014, 04:14 PM
    4. [Help] How do i turn this source code into .dll?
      By XXzPandaBoyzXX in forum Hacking Help
      Replies: 6
      Last Post: 04-03-2014, 12:10 PM

    Tags for this Thread