Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Ever4Ever's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    0
    My Mood
    Bored

    Problem At Weapon Hack Code ..

    Hello Guys,
    Iam Started To Learn C++ And Make Hacks ,, And Iam Done Many Books
    And I Love To Start Hack With Making A Weapon Hack ..
    So i Done The Code But It,s Still Don't Work .. Can You Guys Tell Me What The Lost ?

    Code:
    #include "stdafx.h"
    
    #include <iostream>
    
    #define a Mgr
    
    using namespace std;
    
    int main()
    {
    	bool weaponhack = true;
    	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    	DWORD WeaponMgr = *(PDWORD)(CShell+WeaponMgr);
    	DWORD WeaponClass = NULL;
    	int szd = sizeof(DWORD);
    
                        if(weaponhack)
                        {
                            memcpy((DWORD*)(WeaponClass+25*szd),(DWORD*)(WeaponClass+56*szd),szd); // M16 to AK Gold
                            memcpy((DWORD*)(WeaponClass+14*szd),(DWORD*)(WeaponClass+110*szd),szd); // M700 to AWM Camo
                            memcpy((DWORD*)(WeaponClass+18*szd),(DWORD*)(WeaponClass+75*szd),szd); // USP to Deagle Scope
                            memcpy((DWORD*)(WeaponClass+4*szd),(DWORD*)(WeaponClass+75*szd),szd); // M9 to Deagle Scope
                            memcpy((DWORD*)(WeaponClass+17*szd),(DWORD*)(WeaponClass+188*szd),szd); // M60 to gatling
                            memcpy((DWORD*)(WeaponClass+158*szd),(DWORD*)(WeaponClass+257*szd),szd); // m60adv to gatling gold
    					}
    
    }
    Thx.

  2. #2
    something349's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    19
    WTF? lool wrong here u got



    Code:
    #define WeaponMgr              (put addy here)
    
    
    
    DWORD WINAPI Hacks(LPVOID) 
    {
    bool hak = true;
    
    while(1)
     {
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
    DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);          
    DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
    DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4); 
    DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
    DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4); 
    DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4); 
    DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    then

    Code:
    if (hak) 
    
       *m16 = *m4silver;
       *k2 = *m4gold;
       *deagle = *deaglegold; 
       *anaconda = *deaglegold2;
    press thanks if i helped u

  3. The Following User Says Thank You to something349 For This Useful Post:

    Ever4Ever (02-03-2012)

  4. #3
    Ever4Ever's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    Thanks Gonna Try ..

    ---------- Post added at 10:50 PM ---------- Previous post was at 10:27 PM ----------

    What The Addy Cause I Cant Find It In Ollydbg .. ?

  5. #4
    something349's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    19
    Code:
    0xA974A0
    Credits: assassin screed

  6. The Following 2 Users Say Thank You to something349 For This Useful Post:

    Assassin's Creed (02-04-2012),Ever4Ever (02-03-2012)

  7. #5
    Ever4Ever's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    Code:
    #define WeaponMgr (0xA974A0)
    
    #include "stdafx.h"
    
    int main()
    {
    	bool hak = true; 
    	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
    	DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);          
    	DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
    	DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4); 
    	DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
    	DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4); 
    	DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    	DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4); 
    	DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    	
    	if (hak)
       *m16 = *m4silver;
       *k2 = *m4gold;
       *deagle = *deaglegold; 
       *anaconda = *deaglegold2;
    }
    it still don't Work ?

  8. #6
    something349's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    19
    do u have at least one base? ?

  9. #7
    Ever4Ever's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    Ya I Have ..

  10. #8
    KILLLLLLLLLLEERRRRRRRRRR's Avatar
    Join Date
    Nov 2011
    Gender
    female
    Posts
    16
    Reputation
    10
    Thanks
    0
    what is a base ?

  11. #9
    maximus8011's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    61
    Reputation
    10
    Thanks
    7
    #define WeaponMgr (0xA974A0)

    #include "stdafx.h"

    int main()
    {

    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
    DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
    DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
    DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4);
    DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
    DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4);
    DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4);
    DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    {
    if ((m16 != NULL) && (m4silver ! =NULL) && (k2 ! =NULL) && (m4gold ! =NULL) && (deagle ! =NULL) && (deaglegold ! =NULL) && (anaconda ! =NULL) && (deaglegold2 ! =NULL))

    *m16 = *m4silver;
    *k2 = *m4gold;
    *deagle = *deaglegold;
    *anaconda = *deaglegold2;
    }
    }

    Press thanks if i help you.
    Last edited by maximus8011; 02-04-2012 at 03:27 AM.

  12. The Following 2 Users Say Thank You to maximus8011 For This Useful Post:

    Ever4Ever (02-04-2012),vladimer27 (09-28-2014)

  13. #10
    Ever4Ever's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    Thx But Got 2 Errors
    error C2059: syntax error : ')'
    error C2143: syntax error : missing ')' before '!'

  14. #11
    Assassin's Creed's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    1,210
    Reputation
    54
    Thanks
    1,408
    My Mood
    Worried
    Quote Originally Posted by Ever4Ever View Post
    Thx But Got 2 Errors
    error C2059: syntax error : ')'
    error C2143: syntax error : missing ')' before '!'
    dude remove the brackets between the addy...and ur missing the dllmain (create thread)


    ---------- Post added at 12:40 PM ---------- Previous post was at 12:39 PM ----------

    look at the stickies u will find alot of usefull stuff (up at Cf Source section u will find red sticky)
    Last edited by Assassin's Creed; 02-04-2012 at 03:41 AM.
     

    Contributer Since 20/2/2012
    MPGH Member Since December 2011

     





     

    offical thread> Assassin V15<

    To all People who thinks am a leecher,hate me,are jelly from me....
    Refer to this thread...
    https://www.mpgh.net/forum/232-crossf...stop-hate.html

  15. The Following User Says Thank You to Assassin's Creed For This Useful Post:

    Ever4Ever (02-04-2012)

  16. #12
    Ever4Ever's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    Thanks But still Dont Work
    Code:
    //Weapon Hack
    #define WeaponMgr 0xA974A0
    
    #include "stdafx.h"
    
    int main()
    {
    	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
    	DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
    	DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
    	DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4);
    	DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
    	DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4);
    	DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    	DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4);
    	DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    {
    	if ((m16 != NULL) && (m4silver != NULL) && (k2 != NULL) && (m4gold != NULL) && (deagle != NULL) && (deaglegold != NULL) && (anaconda != NULL) && (deaglegold2 != NULL))
    
    	*m16 = *m4silver;
    	*k2 = *m4gold;
    	*deagle = *deaglegold;
    	*anaconda = *deaglegold2;
    }
    }
    ok thx but can you fix the code to know what are lost ? thx .
    Last edited by Ever4Ever; 02-04-2012 at 03:51 AM.

  17. #13
    Assassin's Creed's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    1,210
    Reputation
    54
    Thanks
    1,408
    My Mood
    Worried
    Quote Originally Posted by Ever4Ever View Post
    Thanks But still Dont Work
    Code:
    //Weapon Hack
    #define WeaponMgr 0xA974A0
    
    #include "stdafx.h"
    
    int main()
    {
    	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
    	DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
    	DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
    	DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4);
    	DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
    	DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4);
    	DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    	DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4);
    	DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
    {
    	if ((m16 != NULL) && (m4silver != NULL) && (k2 != NULL) && (m4gold != NULL) && (deagle != NULL) && (deaglegold != NULL) && (anaconda != NULL) && (deaglegold2 != NULL))
    
    	*m16 = *m4silver;
    	*k2 = *m4gold;
    	*deagle = *deaglegold;
    	*anaconda = *deaglegold2;
    }
    }
    ok thx but can you fix the code to know what are lost ? thx .
    dude ur missing a dllmain the most important part of the code...it creates the thread lol did u look at the stickies or any tuts?
     

    Contributer Since 20/2/2012
    MPGH Member Since December 2011

     





     

    offical thread> Assassin V15<

    To all People who thinks am a leecher,hate me,are jelly from me....
    Refer to this thread...
    https://www.mpgh.net/forum/232-crossf...stop-hate.html

  18. The Following User Says Thank You to Assassin's Creed For This Useful Post:

    Ever4Ever (02-04-2012)

  19. #14
    Ever4Ever's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    Ya Iam Looked Your Tut And it,s was just 4 parts what part are i messing ?
    1. Includes and Defines (Defines: You will need the addys or offsets to work it out)
    2. Loading CShell (You use them to find Offsets or Addys)
    3. Base - Contains Loops and values(Will be mentioned, but not explained.)
    4. Hook

  20. #15
    Assassin's Creed's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    1,210
    Reputation
    54
    Thanks
    1,408
    My Mood
    Worried
    Quote Originally Posted by Ever4Ever View Post
    Ya Iam Looked Your Tut And it,s was just 4 parts what part are i messing ?
    1. Includes and Defines (Defines: You will need the addys or offsets to work it out)
    2. Loading CShell (You use them to find Offsets or Addys)
    3. Base - Contains Loops and values(Will be mentioned, but not explained.)
    4. Hook
    i didnt write the dllmain ...it can get detected by xtrap if i written it..
     

    Contributer Since 20/2/2012
    MPGH Member Since December 2011

     





     

    offical thread> Assassin V15<

    To all People who thinks am a leecher,hate me,are jelly from me....
    Refer to this thread...
    https://www.mpgh.net/forum/232-crossf...stop-hate.html

  21. The Following User Says Thank You to Assassin's Creed For This Useful Post:

    Ever4Ever (02-04-2012)

Page 1 of 2 12 LastLast

Similar Threads

  1. knife weapon hack problem
    By kmanev073 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 15
    Last Post: 11-23-2011, 07:53 PM
  2. [Patched] Code v2.0 [Weapon Hack]
    By Coder[Vb10e] in forum CrossFire Hacks & Cheats
    Replies: 149
    Last Post: 09-28-2011, 12:33 PM
  3. [Patched] Code v2.5 [Weapon Hack + simple functions]
    By Coder[Vb10e] in forum CrossFire Hacks & Cheats
    Replies: 56
    Last Post: 09-28-2011, 12:33 PM
  4. [Detected] Code v1.0 [Weapon Hack]
    By Coder[Vb10e] in forum CrossFire Hacks & Cheats
    Replies: 137
    Last Post: 09-14-2011, 09:02 AM
  5. Vb6 Problem With Weapon Code?
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 07-03-2007, 12:06 AM