online marketing Selfrightous Pb Hack: menu.cpp (Selfrightous D3D hack menüsüne ait c++ kodları.

Ads

9 Ocak 2012 Pazartesi

menu.cpp (Selfrightous D3D hack menüsüne ait c++ kodları.

Arkadaşlar menüyü oluşturan c++ kodlarımı biraz açıklayarak paylaşıyorum... :  Biraz karışık gelecektir.

Sadece menüyü oluşturan cpp dir.

{
X =(((X<=mpos.x+4) && (X>=mpos.x)) || ((X>=mpos.x-4) && (X<=mpos.x)))?(X=mpos.x):(X+=((mpos.x-X)/4));
Y =(((Y<=mpos.y+4) && (Y>=mpos.y)) || ((Y>=mpos.y-4) && (Y<=mpos.y)))?(Y=mpos.y):(Y+=((mpos.y-Y)/4));
}
 
 


//-----------------------------------------------------------------------------// Desc: Draw Menu Header//-----------------------------------------------------------------------------DrawBox(X,Y,WIDTH,T_SPC,C_BOX,SAygit); // Render Menu Header BackroundDrawBorder(X,Y,WIDTH,T_SPC,C_BORDER,SAygit);// set-up border 
 
font->DrawText(MC_FCTR(X,MC_MAXX),Y+10,C_TITLE,

"Wh D3D Class",DT_CENTER|DT_SHADOW);//-----------------------------------------------------------------------------// Desc: Fill Item Array and Render Menu Border and Box//-----------------------------------------------------------------------------
NO=0;

acat(

aitem(
aitem(
aitem(
aitem(
aitem(
aitem(
aitem(
aitem(
aitem(

acat(



aitem("Load Menu","Off|Loading",&opt.options.load,opt.options.main,1);*/
"[WH Menu]","[AC]|[KAPAT]",&opt.d3d.main);"CT RENK","AC|KAPAT",&opt.d3d.SelCT,opt.d3d.main,1);"TR RENK","AC|KAPAT",&opt.d3d.SelTERO,opt.d3d.main,1);"Weapon Chams","AC|KAPAT",&opt.d3d.FulParlak,opt.d3d.main,1);"Damage & Hit ++","AC|KAPAT",&opt.d3d.damhit,opt.d3d.main,1);"SiS YOK (NoDUMAN)", "AC|KAPAT",&opt.d3d.SisYok,opt.d3d.main,1);"CROSSHAiR","AC|KAPAT",&opt.d3d.Nisangah,opt.d3d.main,1);"Fantom","AC|KAPAT",&opt.d3d.Fantom,opt.d3d.main,1);"GLASS","AC|KAPAT",&opt.d3d.CamVh,opt.d3d.main,1);"WireFrame","AC|KAPAT",&opt.d3d.hippi,opt.d3d.main,1);"[SECENEKLER]","[AC]|[KAPAT]",&opt.options.main);/*aitem("Save Menu","Off|Saving",&opt.options.save,opt.options.main,1);aitem(


acat(
atext(
atext(
atext(
atext(
atext(

"Reset Menu","Off|Resetting",&opt.options.reset,opt.options.main,1);"|BILGI|","[AC]|[KAPAT]",&opt.info.main);"By:","Selfrightous",opt.info.main,1); "Version","D3D Menu 1.0.0.4",opt.info.main,1);"FPS",FPS(0),opt.info.main,1);"Time",TIME(),opt.info.main,1);"Date",DATE(),opt.info.main,1);//}

opt.options.save=0;
opt.options.load=0;
DrawBox(X,MC_MSY,WIDTH,(NO*I_SPC),C_BOX,SAygit);
// Render Menu Backround for itemsDrawBorder(X,MC_MSY,WIDTH,(NO*I_SPC),C_BORDER,SAygit);// set-up border//-----------------------------------------------------------------------------// Desc: Loop Threw Item Index and Render Items//-----------------------------------------------------------------------------
{
D3DCOLOR text;
text=(*(items[no].val)>0)?C_ON:C_OFF;
for(int no=0; no<NO; no++)// Is ON OR OFF
text=C_CAT;
if(items[no].type==T_CAT)// Category
{


(BTEX<0xFF/4)?BTEX+=1:BDIR=1;

(BTEX>0x00)?BTEX-=1:BDIR=0;

ABOR=I_SPC*I_CUR;

ABOR=(-I_SPC*I_CUR);

ABOR++;

ABOR--;
text=0xFF000000+(0x10000*(BTEX*4))+(0x100*(BTEX*4))+0x1*(BTEX*4);
DrawBorder(X,MC_ITEMY(no)-ABOR,WIDTH,I_SPC,C_CUR,SAygit);
}

{
text=0xFF000000+(0x10000*(BTEX*4))+(0x100*(BTEX*4))+0x1*(BTEX*4);
DrawBorder(X,MC_ITEMY(no),WIDTH,I_SPC,C_CUR,SAygit);
}
font->DrawText(X+I_OFS,MC_ITEMY(no)+2,text,items[no].title,DT_SHADOW);
font->DrawText(X+S_OFS,MC_ITEMY(no)+2,text,items[no].state,DT_RIGHT|DT_SHADOW);

}
if(I_CUR==no)if(BDIR==0)if(BDIR==1)if(ABOR>I_SPC*I_CUR)else if (ABOR<(-I_SPC*I_CUR))if(ABOR<0)else if(ABOR>0)if(mpos.x>X && mpos.x<MC_MAXX && mpos.y>MC_ITEMY(no) && mpos.y<MC_ITEMY(no)+I_SPC)//-----------------------------------------------------------------------------// Desc: Draw Menu Footer//-----------------------------------------------------------------------------DrawBox(X,MC_ITEMY(NO)+(F_SPC/2),WIDTH,(F_SPC),C_BOX,SAygit);// Draw Footer FilledDrawBorder(X,MC_ITEMY(NO)+(F_SPC/2),WIDTH,(F_SPC),C_BORDER,SAygit);// Footer Border



font->DrawText(MC_FCTR(X,MC_MAXX),MC_ITEMY(NO)+(F_SPC/2)+2,RED,


"---------------",DT_CENTER|DT_SHADOW);//-----------------------------------------------------------------------------// Desc: Keyboard Navigation//-----------------------------------------------------------------------------

{
(*items[I_CUR].val)-=1;

}

{
(*items[I_CUR].val)+=1;

}

{

I_CUR=(I_CUR==0)?(NO-1):(I_CUR-1);

}


}

{
if(left && (*items[I_CUR].val)>0)if(right && (*items[I_CUR].val)<(items[I_CUR].max-1))if(up)do {if(ABOR>(-(I_SPC)))ABOR-=I_SPC;while (items[I_CUR].type==T_TEXT);if(down || items[I_CUR].type==T_TEXT)do{
I_CUR=(I_CUR+1)%NO;

}

}
if(ABOR<(I_SPC))ABOR+=I_SPC;while (items[I_CUR].type==T_TEXT);//-----------------------------------------------------------------------------// Desc: Menu Saftey / Sanity Checks and ReEncryption//-----------------------------------------------------------------------------if(I_CUR>NO)I_CUR=NO-1; // Prevent Selection From Hiding be hind hidden item
//-----------------------------------------------------------------------------}
}

//-----------------------------------------------------------------------------
// İsim: FPS()
// Açıklama: Saniyedeki frame sayısını veren fonksiyon (FPS) Menüde görülen FPS değerini oluşturur
//-----------------------------------------------------------------------------
char
{





{
FPSfCurrentTickCount = clock() * 0.001f;
FPScounter++;

{
FPSfLastTickCount = FPSfCurrentTickCount;
sprintf(cfps,
FPScounter = 0;
}
}

}
* cMenu::FPS(int en)  // Fonksiyon tanımlama Bu fonksiyonla işimiz yok.static int FPScounter = 0; static float FPSfLastTickCount = 0.0f; static float FPSfCurrentTickCount;static char cfps[6] = "";if(!en)if((FPSfCurrentTickCount - FPSfLastTickCount) > 1.0f)" %d",FPScounter);return cfps;//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
char
{


time_t current_time;
time (&current_time);
current_tm = localtime (&current_time);

sprintf( ctime,
* cMenu::TIME(void) // Menüde saati gösteren fonksiyon. Pek işimiz yok bununla dastatic char ctime[20] = "" ;struct tm * current_tm;if(current_tm->tm_hour>12)"%d:%02d:%02d PM", current_tm->tm_hour - 12, current_tm->tm_min, current_tm->tm_sec );elsesprintf( ctime,

}
"%d:%02d:%02d AM", current_tm->tm_hour, current_tm->tm_min, current_tm->tm_sec );return ctime;//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
char
{


time_t current_time;
time (&current_time);
current_tm = localtime (&current_time);
sprintf( cdate,

}
* cMenu::DATE(void) // Menüde tarihi gösteren fonksiyon. Pek işimiz yok bununla dastatic char cdate[20] = "" ;struct tm * current_tm;"%d-%02d-%d",current_tm->tm_mon+1,current_tm->tm_mday,current_tm->tm_year-100+2000);return cdate;//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
char
{

va_list va_alist;
va_start (va_alist, fmt);
_vsnprintf (buffer,
va_end (va_alist);

}
* cMenu::oprintf (const char *fmt, ...)  //Menüdeki yazıları oluşturan fonksiyonstatic char buffer[225] = "";sizeof(buffer), fmt, va_alist);return buffer;

//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------int
{


}
cMenu::Load(char* szSection, char* szKey, int iDefaultValue,LPCSTR file) // MEnüyü çağıran fonksiyonint iResult = GetPrivateProfileInt(szSection, szKey, iDefaultValue, file); return iResult;//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
void
{

{
strcpy(items[NO].title,title);
getfield(states,items[NO].state,*var+1);
items[NO].type=type;
items[NO].max=nofields(states);
items[NO].val=var;
NO++;
}

{

*var = Load(

Save(

*var=0;
}
}
cMenu::additem(char *title, char *states,int type, int *var, int show, int when) //Menüye item ekleme if(show==when)if(type!=T_TEXT)if (opt.options.load)"Items", title, *var,Base.GetFile("mset.ini"));if (opt.options.save)"Items", title, *var,Base.GetFile("mset.ini"));if (opt.options.reset)//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
void
{
additem(title,states,T_CAT,var,0,0);
}
cMenu::acat(char *title, char *states,int *var)//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
void
{
additem(title,states,T_ITEM,var,show,when);
}
cMenu::aitem(char *title, char *states,int *var,int show,int when)//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
void
{
additem(title,states,T_TEXT,&opt.text,show,when);
}
cMenu::atext(char *title, char *states,int show,int when)void
{
additem(title,states,T_TEXT,&opt.text,1,1);
}
cMenu::atext(char *title, char *states)//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
int
{





}
cMenu::nofields(char *str)char *ptr;int no;for(no=1; (ptr=strchr(str,(char)'|'))!=NULL; no++)str=ptr+1;return no;//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
void
{



{

str=ptr+1;
}

{
i=(
strncpy(dst,str,i);
dst[i]=0;
}
cMenu::getfield(char *str,char *dst,int no)char *ptr;int i;for(i=1; (ptr=strchr(str,(char)'|'))!=NULL ; i++) if(i==no) break;if(ptr)int)(ptr-str);elsestrcpy(dst,str);
}
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
void
{
cMenu::DrawBox( int x, int y, int w, int h, D3DCOLOR Color,LPDIRECT3DDEVICE9 SAygit)struct
{

DWORD Color;
}V[4] = {
{x,y+h, 0.0f, 0.0f, Color},
{x,y, 0.0f, 0.0f, Color},
{x+w,y+h, 0.0f, 0.0f, Color},
{x+w,y, 0.0f, 0.0f, Color}
};
SAygit->SetTexture(0, NULL);
SAygit->SetFVF(D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1);
SAygit->SetRenderState(D3DRS_ALPHABLENDENABLE,
SAygit->SetRenderState(D3DRS_DESTBLEND,D3DBLEND_INVSRCALPHA);
SAygit->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,
Vertex float x,y,z,ht;true);sizeof(Vertex));return
}
 
;//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
void
{
DrawBox(x, y, 1, h,Color,SAygit);
DrawBox(x,y+h, w, 1,Color,SAygit);
DrawBox(x, y, w, 1,Color,SAygit);
DrawBox(x+w,y, 1,h+1,Color,SAygit);

}
cMenu::DrawBorder( int x, int y, int w, int h, D3DCOLOR Color,LPDIRECT3DDEVICE9 SAygit)return;//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
void
{
cMenu::ShowMenu(LPDIRECT3DDEVICE9 SAygit)//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------


int lm = GetAsyncKeyState(VK_LBUTTON)&1;int rm = GetAsyncKeyState(VK_RBUTTON)&1;int left = GetAsyncKeyState(VK_LEFT )&1;int right = GetAsyncKeyState(VK_RIGHT)&1;int up = GetAsyncKeyState(VK_UP )&1;int down = GetAsyncKeyState(VK_DOWN )&1;//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------Init();//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
if(GetAsyncKeyState(VK_INSERT)&1) SHOW=(!SHOW);if(SHOW){//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------GetCursorPos(&mpos);
ScreenToClient(GetForegroundWindow(),&mpos); //----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
{//-----------------------------------------------------------------------------// //-----------------------------------------------------------------------------DrawBox(X,Y,WIDTH,T_SPC,C_BOX,SAygit); // DrawBorder(X,Y,WIDTH,T_SPC,C_BORDER,SAygit);//  
 
font->DrawText(MC_FCTR(X,MC_MAXX),Y+10,C_TITLE,
"Wh D3D Class",DT_CENTER|DT_SHADOW);//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
NO=0;

acat(

aitem(
aitem(
aitem(
aitem(
aitem(
aitem(
aitem(
aitem(
aitem(

acat(



aitem("Load Menu","Off|Loading",&opt.options.load,opt.options.main,1);*/
"[WH Menu]","[AC]|[KAPAT]",&opt.d3d.main);"CT RENK","AC|KAPAT",&opt.d3d.SelCT,opt.d3d.main,1);"TR RENK","AC|KAPAT",&opt.d3d.SelTERO,opt.d3d.main,1);"Weapon Chams","AC|KAPAT",&opt.d3d.FulParlak,opt.d3d.main,1);"Damage & Hit ++","AC|KAPAT",&opt.d3d.damhit,opt.d3d.main,1);"SiS YOK (NoDUMAN)", "AC|KAPAT",&opt.d3d.SisYok,opt.d3d.main,1);"CROSSHAiR","AC|KAPAT",&opt.d3d.Nisangah,opt.d3d.main,1);"Fantom","AC|KAPAT",&opt.d3d.Fantom,opt.d3d.main,1);"GLASS","AC|KAPAT",&opt.d3d.CamVh,opt.d3d.main,1);"WireFrame","AC|KAPAT",&opt.d3d.hippi,opt.d3d.main,1);"[SECENEKLER]","[AC]|[KAPAT]",&opt.options.main);/*aitem("Save Menu","Off|Saving",&opt.options.save,opt.options.main,1);aitem(


acat(
atext(
atext(
atext(
atext(
atext(
"Reset Menu","Off|Resetting",&opt.options.reset,opt.options.main,1);"|BILGI|","[AC]|[KAPAT]",&opt.info.main);"By:","Selfrightous",opt.info.main,1); "Version","D3D Menu 1.0.0.4",opt.info.main,1);"FPS",FPS(0),opt.info.main,1);"Time",TIME(),opt.info.main,1);"Date",DATE(),opt.info.main,1);//}

opt.options.save=0;
opt.options.load=0;
DrawBox(X,MC_MSY,WIDTH,(NO*I_SPC),C_BOX,SAygit);
// DrawBorder(X,MC_MSY,WIDTH,(NO*I_SPC),C_BORDER,SAygit);// //-----------------------------------------------------------------------------{
D3DCOLOR text;
text=(*(items[no].val)>0)?C_ON:C_OFF;
for(int no=0; no<NO; no++)//
text=C_CAT;
if(items[no].type==T_CAT)//
{


(BTEX<0xFF/4)?BTEX+=1:BDIR=1;

(BTEX>0x00)?BTEX-=1:BDIR=0;

ABOR=I_SPC*I_CUR;

ABOR=(-I_SPC*I_CUR);

ABOR++;

ABOR--;
text=0xFF000000+(0x10000*(BTEX*4))+(0x100*(BTEX*4))+0x1*(BTEX*4);
DrawBorder(X,MC_ITEMY(no)-ABOR,WIDTH,I_SPC,C_CUR,SAygit);
}

{
text=0xFF000000+(0x10000*(BTEX*4))+(0x100*(BTEX*4))+0x1*(BTEX*4);
DrawBorder(X,MC_ITEMY(no),WIDTH,I_SPC,C_CUR,SAygit);
}
font->DrawText(X+I_OFS,MC_ITEMY(no)+2,text,items[no].title,DT_SHADOW);
font->DrawText(X+S_OFS,MC_ITEMY(no)+2,text,items[no].state,DT_RIGHT|DT_SHADOW);

}
if(I_CUR==no)if(BDIR==0)if(BDIR==1)if(ABOR>I_SPC*I_CUR)else if (ABOR<(-I_SPC*I_CUR))if(ABOR<0)else if(ABOR>0)if(mpos.x>X && mpos.x<MC_MAXX && mpos.y>MC_ITEMY(no) && mpos.y<MC_ITEMY(no)+I_SPC)//-----------------------------------------------------------------------------// -----------------------------------------------------------------------------DrawBox(X,MC_ITEMY(NO)+(F_SPC/2),WIDTH,(F_SPC),C_BOX,SAygit);//

DrawBorder(X,MC_ITEMY(NO)+(F_SPC/2),WIDTH,(F_SPC),C_BORDER,SAygit);//



font->DrawText(MC_FCTR(X,MC_MAXX),MC_ITEMY(NO)+(F_SPC/2)+2,RED,
"---------------",DT_CENTER|DT_SHADOW);//
{
(*items[I_CUR].val)-=1;

}

{
(*items[I_CUR].val)+=1;

}

{

I_CUR=(I_CUR==0)?(NO-1):(I_CUR-1);

}


}

{
if(left && (*items[I_CUR].val)>0)if(right && (*items[I_CUR].val)<(items[I_CUR].max-1))if(up)do {if(ABOR>(-(I_SPC)))ABOR-=I_SPC;while (items[I_CUR].type==T_TEXT);if(down || items[I_CUR].type==T_TEXT)do{
I_CUR=(I_CUR+1)%NO;

}

}
if(ABOR<(I_SPC))ABOR+=I_SPC;while (items[I_CUR].type==T_TEXT);//if(I_CUR>NO)I_CUR=NO-1; //-----------------------------------------------------------------------------}
}

X =(((X<=mpos.x+4) && (X>=mpos.x)) || ((X>=mpos.x-4) && (X<=mpos.x)))?(X=mpos.x):(X+=((mpos.x-X)/4));
Y =(((Y<=mpos.y+4) && (Y>=mpos.y)) || ((Y>=mpos.y-4) && (Y<=mpos.y)))?(Y=mpos.y):(Y+=((mpos.y-Y)/4));
}
 
 
if(opt.options.move && GetAsyncKeyState(VK_LCONTROL)) //
//

6 yorum:

  1. Kardeş hilenin kodları bu ancak şu hile nasıl yapılır bir video çıkar yada özel bir eğitim ver site 2kişi olsun mesela ben visual basic çok anlıyorum bunuda çok rahat anlarım _?

    YanıtlaSil
  2. Kardeşim lütfen bak bende o program yüklü programı açtım open projectten hangisini açalım neler lazım ? buton felan lazım mı ?

    YanıtlaSil
  3. Sinan mrb.

    Maalesef video işi uzun ve zor iş. elimden geldiğince bilgi paylaşıyorum burada ve paylaşacağım da...

    Biraz sabır...

    YanıtlaSil
  4. Selfrightous kardeş yardımına ihtiyacım var...(Derdimi biraz uzun anlatacam kusura bakma!)
    Meslek Lisesi son sınıfım ve bu sene staj görüyoruz.Staj notuda karnenin %60 şını etkiliyor.Bu %60 lık kısmı Staj defteri,proje ödevi ve yıl sonunda yapılacak sınavdan gelecek notların ortalaması oluşturuyor.Bu perşembe ve cuma günü içerisinde bir proje ödevi konusu seçip hocaya söyliyecez.Proje ödevininde yıl sonunda yani mayıs ayında teslim edecez.Ben hocaya bir dll injector ve ufak bir hile dll dosyası yapacağımı söyledim.Şimdiden araştırmaya başladım en azından PointBlank de bir crosshair yapim dedim 2 tane kaynak kodu buldum 2 sininde dll dosyasını yazdım fakat oyun içinde çalışmadı.Çalışmayıncada Anti Recoil(Silah sekmesini önleme) yapim dedim fakat uygun bir c++ kodu bulamadım.Sende rica etsem bana proje dosyası halinde d3d menülü crosshair ve anti recoil yapar mısın?(Yardım etmesende bunu yorum a yaz anlayışla karşılarım.Şimdiden çok teşekkür ederim.Başarılarının devamını diliyorum.)

    YanıtlaSil
  5. Self bende hack yazmak istiorum ama para için değil arkadaşlar yapamazsın falan diye dalga geçiolar da bu eğitimler devam etse mesala senin dersleri izleyen biri veya takip eden biri damage and hit değilde ıns e basıldığı zaman w.h açılsa sadece bunu yapabilecek kadar bilgilendirsen bizi harika olur.Ben belki tüm kodu paylaşmak istemezsin die düşünüyorum sonuçta farklı amaçla kullanılabilir diye ama en azından dediğim kadarı için bana yardımcı olsan çok hevesliyim ben bu hack işini yapmaya ... :(

    YanıtlaSil