LUDIX-BoT Forum
 
HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Punkbuster SS Cleaner [EasyWay]

Go down 
AuthorMessage
Shagrath



Posts : 57
Join date : 2009-10-10
Location : Istanbul/Turkey

PostSubject: Punkbuster SS Cleaner [EasyWay]   Tue Oct 13, 2009 7:57 am

Code:
//Punkbuster used GetSystemTimeAsFileTime for PBSS you know

.idata:0045D0E4 ; void __stdcall GetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime)
.idata:0045D0E4                extrn GetSystemTimeAsFileTime:dword ; CODE XREF: _time+9p

void CleanVisuals( LPFILETIME lpSystemTimeAsFileTime )
{   

cvar.on=0;//Clean out visuals
cvar.pbmade=false;//Punkbuster Screenshoot notifications

    Sleep(2000);//2 Sek Time before visuals goes back On

cvar.pbmade=true;//Punkbuster Screenshoot notifications
cvar.on=1;//Clean out visuals

}

void (WINAPI*orig_PunkbusterClean_Screenshoots)( LPFILETIME lpSystemTimeAsFileTime );
void WINAPI hook_PunkbusterClean_Screenshoots( LPFILETIME lpSystemTimeAsFileTime )
{
    _beginthread((void (__cdecl *)(void *))CleanVisuals, 0, lpSystemTimeAsFileTime );
   
    orig_PunkbusterClean_Screenshoots( lpSystemTimeAsFileTime );
}

       
detour it

DetourFunction( ( PBYTE )GetSystemTimeAsFileTime, ( PBYTE )&hook_PunkbusterClean_Screenshoots );
__asm mov [ orig_PunkbusterClean_Screenshoots ], eax;

I think you have to update, cause it's really old source
Thanks to King Orgy
Back to top Go down
View user profile
Pacino



Posts : 10
Join date : 2009-10-10
Age : 27
Location : Slovenia

PostSubject: Re: Punkbuster SS Cleaner [EasyWay]   Tue Oct 13, 2009 8:01 am

cheers cheers
Back to top Go down
View user profile
Shagrath



Posts : 57
Join date : 2009-10-10
Location : Istanbul/Turkey

PostSubject: Re: Punkbuster SS Cleaner [EasyWay]   Tue Oct 13, 2009 8:03 am

Smile I wish, i'll be a coder in couple years.. Why is it so hard?? scratch
Back to top Go down
View user profile
Pisti_



Posts : 20
Join date : 2009-10-10
Age : 26
Location : Hungary

PostSubject: Re: Punkbuster SS Cleaner [EasyWay]   Tue Oct 13, 2009 10:08 am

Work hard, and you will be Very Happy
Back to top Go down
View user profile http://www.codehook.com
Shagrath



Posts : 57
Join date : 2009-10-10
Location : Istanbul/Turkey

PostSubject: Re: Punkbuster SS Cleaner [EasyWay]   Tue Oct 13, 2009 11:38 am

I hope Razz
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Punkbuster SS Cleaner [EasyWay]   

Back to top Go down
 
Punkbuster SS Cleaner [EasyWay]
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
LUDIX-BoT Forum :: Coding :: General Coding-
Jump to: