Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Direct3D
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

xPwn 1.0 xFire Trampoline Hook
Old 09-02-2010, 05:47 AM   #1
Donator

raiders's Avatar

Join Date: Nov 2007
Posts: 1,494
Reputation: 72055
Rep Power: 802
raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (5)
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 44,627, Level: 32
Points: 44,627, Level: 32 Points: 44,627, Level: 32 Points: 44,627, Level: 32
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
xPwn 1.0 xFire Trampoline Hook

Code:
/*
Project: xPwn 1.0 xFire Trampoline Hook
Author: Raiders - UC-Forum.com
Release Date: 9/1/2010

Credits:    Reunion - Initial Swapchain::Present hook and using xfire's hook to obtain render access.
            Monster64 - Hes awesome.
            xFire - Thanks for creating a wide open window to avoid punkbuster scans on our render hooks!

This code is a UC-Forum only release and is not to be distributed without express permission from the author.
This code may not be used in any saleable product, public hacks using this method are encouraged!
*/
I turned my idea into a working base for you guys to use. I wrote my own little detour function just to replace and redirect their trampoline, so if you don't know how detours work now is your chance to learn!

This code should work in any xfire supported game where the game uses a swapchain to render (Battlefield, Call of Duty... perhaps more). Xfire must be installed and loaded into the game.

This method can be adapted to work for any xfire supported game on really any xfire supported renderer. This method can also be adapted to other in game overlays, such as fraps.

If there is enough popularity for this release, I may create hooks to support games that don't use a swapchain for rendering and possibly a dx10/11 release.

What you get:
Undetected render hook!
Undetected reset hook!
Undetected release hook (xfire hooks this function, if you need it I wrote the hook...)
All of the required functions to enable all of these hooks across multiple versions of xfire.

Download Link:
http://www.ucdownloads.com/downloads...o=file&id=5485

Enjoy,
Raiders
__________________
[22:22] monster64: yo dawg i heard u like chams so i put chams in your chams so you can see through shit while you see through shit

[09:07] Tally: grab your ak47 and put on your bomb jacket.... its gonna be a long morning

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

Last edited by raiders; 09-04-2010 at 07:57 PM.
raiders is offline

Reply With Quote


Old 09-02-2010, 06:08 AM   #2
«Answers To Mr. Ballsack»

Rave.whiteLight's Avatar

Join Date: Dec 2008
Posts: 341
Reputation: 13299
Rep Power: 177
Rave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server spaceRave.whiteLight 's rep takes up 1 gig of server space
Points: 10,210, Level: 12
Points: 10,210, Level: 12 Points: 10,210, Level: 12 Points: 10,210, Level: 12
Activity: 2.3%
Activity: 2.3% Activity: 2.3% Activity: 2.3%
Last Achievements
I reserve my first post and first thanks for this until it is approved.

Thanks though lol
Rave.whiteLight is online now

Reply With Quote

Old 09-02-2010, 07:50 AM   #3
◄ Super Moderator ►

Hanoi22's Avatar

Join Date: Dec 2009
Posts: 3,198
Reputation: 81948
Rep Power: 909
Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!Hanoi22 has a huge epeen!
Fire At Will Champion Hot Pepper vs The Water Champion Krabbyball Champion If Pigs Can Fly Champion Muay Thai Champion Tadpole Champion Jumping Nutty Champion Blood Shed Champion Badger Racing Champion
Points: 55,936, Level: 35
Points: 55,936, Level: 35 Points: 55,936, Level: 35 Points: 55,936, Level: 35
Activity: 100.0%
Activity: 100.0% Activity: 100.0% Activity: 100.0%
Last Achievements
Award-Showcase
Omg can't wait, Good job.
Hanoi22 is offline

Reply With Quote

Old 09-02-2010, 01:08 PM   #4
Retired Admin

learn_more's Avatar

Join Date: Sep 2006
Posts: 5,249
Reputation: 93628
Rep Power: 1106
learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
sieg heil Nazi
Points: 70,490, Level: 39
Points: 70,490, Level: 39 Points: 70,490, Level: 39 Points: 70,490, Level: 39
Activity: 24.7%
Activity: 24.7% Activity: 24.7% Activity: 24.7%
Last Achievements
Award-Showcase
approved, no binaries, no scanlog
__________________
learn_more is offline

Reply With Quote

Old 09-02-2010, 01:39 PM   #5
Level 3

Gellin's Avatar

Join Date: Nov 2007
Location: msdn
Posts: 528
Reputation: 22916
Rep Power: 291
Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!Gellin has reputation that takes up 2GB of server space!
Points: 16,705, Level: 17
Points: 16,705, Level: 17 Points: 16,705, Level: 17 Points: 16,705, Level: 17
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
Last Achievements
Nice work, xfire just got raided.
__________________
Gellin is offline

Reply With Quote

Old 09-02-2010, 06:18 PM   #6
UnKnoWnCheaTeR

smoochy's Avatar

Join Date: Jan 2008
Posts: 1,228
Reputation: 46050
Rep Power: 534
smoochy has a huge epeen!smoochy has a huge epeen!smoochy has a huge epeen!smoochy has a huge epeen!smoochy has a huge epeen!smoochy has a huge epeen!smoochy has a huge epeen!smoochy has a huge epeen!smoochy has a huge epeen!smoochy has a huge epeen!smoochy has a huge epeen!
Points: 31,874, Level: 26
Points: 31,874, Level: 26 Points: 31,874, Level: 26 Points: 31,874, Level: 26
Activity: 9.2%
Activity: 9.2% Activity: 9.2% Activity: 9.2%
Last Achievements
very nice & clean base, sir.

+reputation.
smoochy is online now

Reply With Quote

Old 09-04-2010, 07:15 PM   #7
UnKnoWnCheaTeR

Freeheadshot's Avatar

Join Date: Mar 2010
Location: Germany
Posts: 942
Reputation: 40621
Rep Power: 448
Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!
Recognitions:
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 25,290, Level: 22
Points: 25,290, Level: 22 Points: 25,290, Level: 22 Points: 25,290, Level: 22
Activity: 14.9%
Activity: 14.9% Activity: 14.9% Activity: 14.9%
Last Achievements
very nice post ! Thanks
Freeheadshot is online now

Reply With Quote

Old 09-04-2010, 08:48 PM   #8
UnKnoWnCheaTeR

disavow's Avatar

Join Date: Jul 2009
Posts: 1,069
Reputation: 49844
Rep Power: 551
disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
Points: 31,281, Level: 26
Points: 31,281, Level: 26 Points: 31,281, Level: 26 Points: 31,281, Level: 26
Activity: 14.9%
Activity: 14.9% Activity: 14.9% Activity: 14.9%
Last Achievements
Thisisgoodthanks

Coolness +rep.
__________________

Shad0w_'s Alter Ego
disavow is online now

Reply With Quote

Old 09-12-2010, 11:22 PM   #9
Member

Special11's Avatar

Join Date: Feb 2010
Posts: 61
Reputation: 226
Rep Power: 28
Special11 is becoming A true Rep whoreSpecial11 is becoming A true Rep whoreSpecial11 is becoming A true Rep whore
Points: 1,498, Level: 3
Points: 1,498, Level: 3 Points: 1,498, Level: 3 Points: 1,498, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Thanks for publicating this
Special11 is offline

Reply With Quote

Old 09-15-2010, 10:17 PM   #10
Donator

raiders's Avatar

Threadstarter
Join Date: Nov 2007
Posts: 1,494
Reputation: 72055
Rep Power: 802
raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!raiders has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (5)
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 44,627, Level: 32
Points: 44,627, Level: 32 Points: 44,627, Level: 32 Points: 44,627, Level: 32
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
Quote:
Originally Posted by Special11 View Post
Thanks for publicating this
You are quite welcome lol
__________________
[22:22] monster64: yo dawg i heard u like chams so i put chams in your chams so you can see through shit while you see through shit

[09:07] Tally: grab your ak47 and put on your bomb jacket.... its gonna be a long morning

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
raiders is offline

Reply With Quote

Old 09-28-2010, 04:08 PM   #11
Posting Well

Cynical_Dude's Avatar

Join Date: Sep 2010
Location: Denmark, Gjellerup
Posts: 33
Reputation: 432
Rep Power: 21
Cynical_Dude has learned Aimbot is no longer a friend on AOL.Cynical_Dude has learned Aimbot is no longer a friend on AOL.Cynical_Dude has learned Aimbot is no longer a friend on AOL.Cynical_Dude has learned Aimbot is no longer a friend on AOL.Cynical_Dude has learned Aimbot is no longer a friend on AOL.
What are you supposed to do with this ??
__________________
Quote:
the worst mistake in life is not to aim too high and fail

rather to aim too low and succeed




Cynical_Dude is offline

Reply With Quote

Old 09-28-2010, 04:50 PM   #12
Level 3

fatboy88's Avatar

Join Date: May 2005
Posts: 1,103
Reputation: 38964
Rep Power: 494
fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!fatboy88 has a huge epeen!
Recognitions:
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 27,267, Level: 24
Points: 27,267, Level: 24 Points: 27,267, Level: 24 Points: 27,267, Level: 24
Activity: 9.9%
Activity: 9.9% Activity: 9.9% Activity: 9.9%
Last Achievements
Quote:
Originally Posted by Cynical_Dude View Post
What are you supposed to do with this ??
Hook and draw and other things ....
__________________


My greatest fear is a Windows Vista Update! D:

ȜǷ-ɲآɳᶨ4 Hack:http://img42.imageshack.us/img42/473/20090203132330.png
fatboy88 is online now

Reply With Quote

Old 09-28-2010, 04:53 PM   #13
Posting Well

Cynical_Dude's Avatar

Join Date: Sep 2010
Location: Denmark, Gjellerup
Posts: 33
Reputation: 432
Rep Power: 21
Cynical_Dude has learned Aimbot is no longer a friend on AOL.Cynical_Dude has learned Aimbot is no longer a friend on AOL.Cynical_Dude has learned Aimbot is no longer a friend on AOL.Cynical_Dude has learned Aimbot is no longer a friend on AOL.Cynical_Dude has learned Aimbot is no longer a friend on AOL.
Great help... nvm guess my newb brain just isnt good enough at programming to understand this stuff yet
__________________
Quote:
the worst mistake in life is not to aim too high and fail

rather to aim too low and succeed




Cynical_Dude is offline

Reply With Quote

Old 09-30-2010, 04:00 PM   #14
Level ∞ Coder

CyberDwak's Avatar

Join Date: Oct 2009
Posts: 584
Reputation: 17985
Rep Power: 219
CyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UCCyberDwak Will always be a legend at UC
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (12)
Awarded to members who have donated 10 times or more. Gratuity (1)
Points: 12,456, Level: 14
Points: 12,456, Level: 14 Points: 12,456, Level: 14 Points: 12,456, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Nice Hook raiders!

You could also use this:
PHP Code:
////////////////////////////////////////////////////////////////////

int FindXFireString(charss)
{
    
int qs=0,i=0;//xfire
    
while(ss[qs]!=0)qs++;
    for(
i=0;i<qs;i++)
    {
        if((
i+5)>qs)return 0;
        if(
ss[i+0] == 'x')
        if(
ss[i+1] == 'f')
        if(
ss[i+2] == 'i')
        if(
ss[i+3] == 'r')
        if(
ss[i+4] == 'e')
        {
            return 
1;                
        }
    }
    return 
0;
}

////////////////////////////////////////////////////////////////////

char *GetModuleModuleInfoNodemodule )
{
   
ProcessModuleInfo *pmInfo;

   
char *buf;
   
char *pathbuf;
   
int i 0;

   
_asm
   
{
      
mov eaxfs:[18h]      // TEB
      
mov eax, [eax 30h]   // PEB
      
mov eax, [eax 0Ch]   // PROCESS_MODULE_INFO
      
mov pmInfoeax
   
}

   
module = (ModuleInfoNode *)(pmInfo->LoadOrder.Flink);
    
   while( 
module->baseAddress )
   {
      
buf=(char*)malloc((1+module->name.Length)*sizeof(char));
      for(
0module->name.Length;i++)buf[i] = module->name.Buffer[i];
      
buf[i] = 0;
      
pathbuf=(char*)malloc((1+module->fullPath.Length)*sizeof(char));
      for(
int p=0module->fullPath.Length;p++)pathbuf[i] = module->fullPath.Buffer[i];
      
pathbuf[i] = 0;
      if(
FindXFireString(buf)==1)
      {
          return 
buf;
      }
      
module = (ModuleInfoNode *)(module->LoadOrder.Flink);
      
free(buf);
   }
   return 
NULL;
}

//////////////////////////////////////////////////////////////////// 
I Can't remember where I found it but its used to dynamically find the xfire modules name .

Use it like this:
PHP Code:
DWORD WINAPI InitHooks(LPVOID)
{
    
char *ModName            NULL;
    
ModuleInfoNode *module;

    while(!
ModName)
    {
        
ModName GetModulemodule );
        
Sleep(10);
    }

    
DWORD dwXfire 0;
    while(!
dwXfire)
    {
        
dwXfire = (DWORD)GetModuleHandle(ModName);
        
Sleep(250);
    } 
And I'm not sure if PB scans for strings but if they do then you should just ZeroMemory the Pattern Scan Strings after you use them:
PHP Code:
DWORD WINAPI InitHooks(LPVOID)
{
    
char *ModName            NULL;
    
ModuleInfoNode *module;

    while(!
ModName)
    {
        
ModName GetModulemodule );
        
Sleep(10);
    }

    
DWORD dwXfire 0;
    while(!
dwXfire)
    {
        
dwXfire = (DWORD)GetModuleHandle(ModName);
        
Sleep(250);
    }

    
Sleep(5000);

    
char *FP_One        "\x55\x8B\xEC\x83\xEC\x00\x53\x52\x51\x56\x57\x9C\xE8\x00\x00\x00\x00\x89\x45\x00\xFF\x75\x00\xFF\x75\x00\xFF\x75\x00\xFF\x75\x00\xFF\x75\x00\xFF\x75\x00\x8B\x4D\x00\xE8\x00\x00\x00\x00\xA3\x00\x00\x00\x00\x8B\x4D\x00\xE8\x00\x00\x00\x00\x83\xF8\x00\x75\x00\x8B\x45\x00\x5\x00\x00\x00\x00";
    
char *FP_Two        "xxxxx?xxxxxxx????xx?xx?xx?xx?xx?xx?xx?xx?x????x????xx?x????xx?x?xx?x???";

    
CXfireTrampolinexfTrampoline GetXfireTrampoline(GetAbsoluteFromRelative(FindPattern((DWORD)dwXfire0xFFFFFF, (byte*)FP_One, (char*)FP_Two) + 0xC));

    
//Render hook
    
pSwapPresent = (SwapPresent_t)HookTrampoline(&xfTrampoline->trSwapchain, (DWORD*)&hkSwapPresent);

    
//Reset hook
    
pReset = (Reset_t)HookTrampoline(&xfTrampoline->trReset, (DWORD*)&hkReset);

    
//Device release hook... if you have a use for this uncomment this line
    //pRelease = (Release_t)HookTrampoline(&xfTrampoline->trRelease, (DWORD*)&hkRelease);

    
ZeroMemory(FP_One,        sizeof(FP_One));
    
ZeroMemory(FP_Two,        sizeof(FP_Two));
    
ZeroMemory(ModName,        sizeof(ModName));

    return 
0;

Great Hook though!
__________________



CyberDwak is offline

Reply With Quote

Old 09-30-2010, 05:55 PM   #15
Retired Admin

learn_more's Avatar

Join Date: Sep 2006
Posts: 5,249
Reputation: 93628
Rep Power: 1106
learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
sieg heil Nazi
Points: 70,490, Level: 39
Points: 70,490, Level: 39 Points: 70,490, Level: 39 Points: 70,490, Level: 39
Activity: 24.7%
Activity: 24.7% Activity: 24.7% Activity: 24.7%
Last Achievements
Award-Showcase
a bit easier?
wrote in notepad, so dunno if it's syntaxically correct

Code:
HMODULE GetXfireModule()
{
    ProcessModuleInfo *pmInfo;
    ModuleInfoNode* module

    _asm
    {
        mov eax, fs:[18h]      // TEB
        mov eax, [eax + 30h]   // PEB
        mov eax, [eax + 0Ch]   // PROCESS_MODULE_INFO
        mov pmInfo, eax
    }

    module = (ModuleInfoNode *)(pmInfo->LoadOrder.Flink);
    
    while( module->baseAddress )
    {
        if( module->name.Buffer && module->name.Length && !_wcsnicmp( module->name.Buffer[i], L"xfire_toucan", 12 ) )
            return module->baseAddress;
    }
    return NULL;
}
__________________
learn_more is offline

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
hook, trampoline, xfire, xpwn
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 03:44 PM.