Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 57
  1. #31
    BlackLite's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    547
    Reputation
    58
    Thanks
    1,035
    My Mood
    Aggressive

    D3d9 Mid-Function [ Windows XP ]

    D3d9 Mid-Function [ Windows XP ]
    A little Instruction .

    Mid-Function hook can be founded in d3d9.dll which located on Windws/System32
    We can hook with it .

    Code:
    
    DrawIndexPrimitive: 4FF51658 , vTable[82]
    BeginScene: 4FF514B8,VTable[41]
    EndScene: 4FF514D8 ,VTable[42]
    pDevice: 4FDE6C28



  2. #32
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    service pack??


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  3. #33
    Shadow`'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    MN
    Posts
    636
    Reputation
    74
    Thanks
    3,014
    My Mood
    Relaxed

    D3D Mouse

    Here's a D3D mouse I found while searching for some nice d3d things.

    Code:
    void DrawRect(int x,int y,int h,int w,DWORD Color,LPDIRECT3DDEVICE9 pDevice){
    D3DRECT rec;
    rec.x1 = x;
    rec.x2 = x + w;
    rec.y1 = y;
    rec.y2 = y + h;
    pDevice->Clear(1,&rec,D3DCLEAR_TARGET,Color,0,0);
    }
    
    
    void DrawMouse(DWORD color,LPDIRECT3DDEVICE9 pDevice){
    POINT myCursor;
    GetCursorPos(&myCursor);
    DrawRect(myCursor.x,myCursor.y,30,1,color,pDevice);
    DrawRect(myCursor.x+1,myCursor.y,28,1,color,pDevice);
    DrawRect(myCursor.x+2,myCursor.y,26,1,color,pDevice);
    DrawRect(myCursor.x+3,myCursor.y,24,1,color,pDevice);
    DrawRect(myCursor.x+4,myCursor.y,22,1,color,pDevice);
    DrawRect(myCursor.x+5,myCursor.y,20,1,color,pDevice);
    DrawRect(myCursor.x+6,myCursor.y,18,1,color,pDevice);
    DrawRect(myCursor.x,myCursor.y,1,30,color,pDevice);
    DrawRect(myCursor.x,myCursor.y+1,1,28,color,pDevice);
    DrawRect(myCursor.x,myCursor.y+2,1,26,color,pDevice);
    DrawRect(myCursor.x,myCursor.y+3,1,24,color,pDevice);
    DrawRect(myCursor.x,myCursor.y+4,1,22,color,pDevice);
    DrawRect(myCursor.x,myCursor.y+5,1,20,color,pDevice);
    DrawRect(myCursor.x,myCursor.y+6,1,18,color,pDevice);
    }
    In your endscene or present put this:

    Code:
    DrawMouse(Blue,pDevice);
    Credits-

    Solify

  4. The Following User Says Thank You to Shadow` For This Useful Post:

    Reflex- (04-16-2012)

  5. #34
    Reflex-'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    192.168.1.01
    Posts
    6,625
    Reputation
    584
    Thanks
    2,267
    My Mood
    Dead
    Is there an Image on how this looks like

  6. #35
    Shadow`'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    MN
    Posts
    636
    Reputation
    74
    Thanks
    3,014
    My Mood
    Relaxed
    Quote Originally Posted by Entourage View Post
    Is there an Image on how this looks like
    It looks like this:

    Attached Thumbnails Attached Thumbnails
    201204162025.png  

    Last edited by Shadow`; 04-16-2012 at 08:28 PM.

  7. #36
    Pitcher's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Screwing your mom.
    Posts
    524
    Reputation
    53
    Thanks
    797
    My Mood
    Flirty
    Saw some nice stuff.
    I'm currently looking for a simple spammer for WarRock,

    i tried this ;

    if(Spammer)
    {
    keybd_event('I'),0,0,0);
    keybd_event('A'),0,0,0);
    keybd_event('M'),0,0,0);
    keybd_event('A'),0,0,0);
    keybd_event('H'),0,0,0);
    keybd_event('A'),0,0,0);
    keybd_event('C'),0,0,0);
    keybd_event('K'),0,0,0);
    keybd_event('E'),0,0,0);
    keybd_event('R'),0,0,0);
    keybd_event('Z'),0,0,0);
    keybd_event('Z'),0,0,0);
    sleep(20);
    }

    but this isn't gonna work becuase of the lagg, i know this is maybe in the wrong section but i can't find help anywhere else.

    The best.


    Back on the 30th of september.

    WarRock Contributer Force

    My hacks are only for WarRock International!


  8. #37
    allaroundgames's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    3

    Question my little calculator + source code, any improvement suggestions?

    can I share this here?
    anyone wanna share what can be improved to help me? please?
    Code:
    #include <iostream>
    #include <windows.h>
    using namespace std;
    
    int main()
    {
        int x,y,principle, add,sub,multi,ball,div;
        ball = 0;
        system("color a");
    
    
        cout<<"Thankyou for using this simple arithmetic calculator! - Allaroundgames"<<endl;
        cin.get();
        cout<<"input number: ";
        cin>>x;
        cout<<"input number: ";
        cin>>y; cout<< endl;
        cout<<"choose your principle  add = 1, sub = 2, multi = 3, div = 4 : ";
        add = 1;
        sub = 2;
        multi = 3;
        div = 4;
    
    
    
    
    
        while (ball == 0)
    {
        cin>> principle;
    
        if (principle == add)
        {
        x+y;
        cout<<endl<<"answer: "<<x+y<<endl<<endl;
    
        system("PAUSE");
        system("cls");
    
    
    
        cout<<"input number: ";
        cin>>x;
        cout<<"input number: ";
        cin>>y; cout<< endl;
        cout<<"choose your principle  add = 1, sub = 2, multi = 3, div = 4 : ";
        add = 1;
        sub = 2;
        multi = 3;
    
    
        }
    
        if (principle == sub)
        {
        x-y;
       cout<<endl<<"answer: "<<x-y<<endl<<endl;
        system("PAUSE");
        system("cls");
    
        cout<<"input number: ";
        cin>>x;
        cout<<"input number: ";
        cin>>y; cout<< endl;
        cout<<"choose your principle  add = 1, sub = 2, multi = 3, div = 4 : ";
        add = 1;
        sub = 2;
        multi = 3;
    
        }
    
        if (principle == multi)
        {
        x*y;
       cout<<endl<<"answer: "<<x*y<<endl<<endl;
        system("PAUSE");
        system("cls");
    
        cout<<"input number: ";
        cin>>x;
        cout<<"input number: ";
        cin>>y; cout<< endl;
        cout<<"choose your principle  add = 1, sub = 2, multi = 3, div = 4 : ";
        add = 1;
        sub = 2;
        multi = 3;
    
        }
    
            if (principle == div)
        {
        x/y;
        cout<<endl<<"answer: "<<x/y<<endl<<endl;
        system("PAUSE");
        system("cls");
    
        cout<<"input number: ";
        cin>>x;
        cout<<"input number: ";
        cin>>y; cout<< endl;
        cout<<"choose your principle  add = 1, sub = 2, multi = 3, div = 4 : ";
        add = 1;
        sub = 2;
        multi = 3;
    
        }
    
    
    }
    
    
    
    
        return 0;
    }
    Exe file:
    Calculator.exe - Jotti's malware scan
    https://www.virustotal.com/file/e2da...is/1341447922/

    Rar Archive thats holding the Exe file:
    Calculator.rar - Jotti's malware scan
    https://www.virustotal.com/file/99cb...is/1341448129/
    <b>Downloadable Files</b> Downloadable Files

  9. The Following 2 Users Say Thank You to allaroundgames For This Useful Post:

    Eagle.me (10-22-2012),sungerbob (07-05-2012)

  10. #38
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Belongs to C++ Snippets thread.

    Moved.

  11. #39
    THEBOYZRULE's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    In your room !
    Posts
    186
    Reputation
    10
    Thanks
    142
    My Mood
    Aggressive

    Thumbs up C Programming How to make a 2 numbered calculator !!

    You need to download a compiler to make this calculator there are many free compilers but there are many premium compilers what u pay a lot of money!!!!
    To create a 2 numbered calculator use this

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    
    int main()
    {
       int num = 0;
       printf("Please Enter a number");
       scanf ("%i", &num);
       printf("%i", num);
       int num2 = 0;
       printf("Please Enter a second number");
       scanf ("%i", &num2);
       printf("%i", num + num2);
       return 0;
    
    }

  12. #40
    leonjun16's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0

    Question C++ GUI Dialog

    Code:
    LRESULT CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
    {
        HWND cboShutdown_After;
        const char *Shutdown_After[] = { "Shutdown After","Restart After" };
    
        switch(uMsg)
        {
            case WM_INITDIALOG:
    
                cboShutdown_After = GetDlgItem(hwndDlg, IDD_Shutdown_After_CBO);
                for(int Count = 0; Count < 2; Count++)
                {
                    SendMessage(cboShutdown_After,
                               CB_ADDSTRING,
                               0,
                               reinterpret_cast<LPARAM>((LPCTSTR)Shutdown_After[Count]));
                }
    
            SendMessage(cboShutdown_After, CB_SETCURSEL, 0, 0);
            break;
    
    
    
            case WM_CLOSE:
                EndDialog(hwndDlg, 0);
                return TRUE;
    
            case WM_COMMAND:
                switch(LOWORD(wParam))
                {
                    case IDD_Shutdown_After_CBO: // If the combo box sent the message,
                    switch(HIWORD(wParam)) // Find out what message it was
                    {
                        case 1: // i have two strings in my dropdown list, "Shutdown after & Restart After" , what i need to put beside the case to have 
                                    //function when user click one of the string to execute something with the messagebox?
                            MessageBox(hwndDlg, "Thanks for using!", "Information", MB_ICONINFORMATION);
                        break;
    
                        case 2: // This means that the list is about to display
                            MessageBox(hwndDlg, "Thanks for using!!", "Information", MB_ICONINFORMATION);
                        break;
    
                    case CBN_CLOSEUP:
    
                    break;
                }
                break;
                    /*
                     * TODO: Add more control ID's, when needed.
                     */
                    case IDC_BTN_QUIT:
                        EndDialog(hwndDlg, 0);
                        return TRUE;
    
                    case IDC_BTN_APPLY:
                        MessageBox(hwndDlg, "Thanks for using!", "Information", MB_ICONINFORMATION);
                        return TRUE;
                }
        }
    THE MOST SCARIEST AND EXCITED PART IN CODING IS 【DEBUGGING】.

  13. #41
    inmate's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Bottrop, NRW, Germany
    Posts
    131
    Reputation
    10
    Thanks
    194
    My Mood
    Amazed

    Snippet: Read/Write to Memory
    Keywords: ReadProcessMemory, Memory, WriteProcessMemory, C++, Trainer, Hack


    Code:
    /*
    ##################################################################################################
    # Simple Memory Writing/Reading by Inmate                                                        #
    # Credits: -InSanE-                                                                              #
    # Example how to use it:                                                                         #
    # DWORD PATCHBYTE[] = {0x12,0x34,0x56,0x78};                                                     #
    # WriteExterninMemory("Call of Duty®: Modern Warfare® 3 Multiplayer",0x123456, *PATCHBYTE);      #
    ##################################################################################################
    */
    
    #include <Windows.h>
    #include <iostream>
    
    void WriteInternInMemory(DWORD dwOldAdress, DWORD dwNewAdress){
    
    	//use this function in your injected .dll when you want to patch some adress :) (intern)
    
    	DWORD oldProtect;
    
    	        if(VirtualProtect((void*)dwOldAdress, sizeof(dwNewAdress), PAGE_EXECUTE_READWRITE, &oldProtect)){
    
    	         memcpy((void*)dwOldAdress, &dwNewAdress, sizeof(dwNewAdress));
    
    			 VirtualProtect((void*)dwOldAdress, sizeof(dwNewAdress), oldProtect, &oldProtect);	
    
    			}
    
    }
    
    void WriteExterninMemory(LPCSTR WindowName, DWORD dwOldValue, DWORD dwNewValue){
    
    	DWORD dwPid;
    	HWND hWnd;
    	HANDLE ProcHandle;
    	hWnd = FindWindowA(NULL,WindowName);
    
    	while(!hWnd){
    		 
    	       	 hWnd = FindWindowA(NULL,WindowName);
    
    		     Sleep(1000);
    
    	}
    
    	  if (GetWindowThreadProcessId(hWnd, &dwPid)){
    
    		     ProcHandle = OpenProcess(PROCESS_VM_WRITE |PROCESS_VM_OPERATION,false,dwPid);
    
    	  }
    
    	  if(ProcHandle != 0){
    		   
    	         WriteProcessMemory(ProcHandle,(LPVOID)dwOldValue,&dwNewValue,sizeof(dwNewValue),NULL);
    	
    	  }
    
    }
    
    void ReadExterninMemory(LPCSTR WindowName, DWORD dwAdresstoRead, DWORD dwStoreAdress){
    
    	DWORD dwPid;
    	HWND hWnd;
    	HANDLE ProcHandle;
    	hWnd = FindWindowA(NULL,WindowName);
    
    	  while(!hWnd){
    
    	      	hWnd = FindWindowA(NULL,WindowName);
    		    Sleep(1000);
    
       	  }
    
    	  if (GetWindowThreadProcessId(hWnd, &dwPid)){
    
    		    ProcHandle = OpenProcess(PROCESS_VM_READ |PROCESS_VM_OPERATION,false,dwPid);
    
    	  }
    
          if(ProcHandle != 0){
    		   
    	        ReadProcessMemory(ProcHandle,(LPVOID)dwAdresstoRead,&dwStoreAdress,sizeof(dwStoreAdress),NULL);
    	
    	  }
    
    }
    Last edited by inmate; 08-27-2012 at 12:27 PM.

  14. #42
    [implicit]'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    1
    My Mood
    Cynical
    Allows the use of va-args without any other arguments passed (ie SomeFunction(...)), and the second counts the number of arguments.

    Code:
    #define im_va_start(ap) {\
        __asm push eax\
    	__asm mov eax, ebp\
        __asm add eax, 8h\
    	__asm mov ap, eax\
    	__asm pop eax\
    }
    
    #define im_va_count(ap, num, t) {\
    	for(num = 0; *(t*)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) > 0; ++num){ }\
    	--num;\
    	im_va_start(argptr);\
    }

  15. #43
    Fovea's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    325
    Reputation
    101
    Thanks
    411
    My Mood
    Amused
    ^ Function overloading was created to avoid this hackery.

    Otherwise you should use an initializer_list. If you have multiple types, use an initializer_list of tuples.
    Also, Why not #define.

  16. #44
    Frought's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    In the dark island
    Posts
    3,403
    Reputation
    156
    Thanks
    5,980
    My Mood
    Cool
    Snippet Name : AeriaAVA
    Key Words : CIN , COUT xD
    Code:
    #include <iostream>
    #include <string>
    using namespace std;
    
    class MPGH{
    public:
        string y;
        void Name(string y){
        myname = y;
        }
        string Set(){
            return myname;
        }
    private:
        string myname;
    };
    
    int main()
    {
    MPGH Ahmed;
    Ahmed.Name("AeriaAVA");
    cout << Ahmed.Set() << endl;
    system("PAUSE");
    return 0;
    }

  17. #45
    [implicit]'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    1
    My Mood
    Cynical
    Quote Originally Posted by Fovea View Post
    ^ Function overloading was created to avoid this hackery.

    Otherwise you should use an initializer_list. If you have multiple types, use an initializer_list of tuples.
    Also, Why not #define.
    For when type safety isn't important, such as using a function definition to allow you to pass any parameters, error check depending on other characteristics. It's very dependant on the situation, normally va-args are bad.
    Code:
    struct foo {
    const char* name;
    void (*fn)(...);
    };
    Also, I guess I have to post a snippet, strcmp with length param.
    Code:
    bool strcmp(char* str1, char* str2, uint length) {
    	for(uint i = 0; i < length; ++i) {
    		if(*str1++ != *str2++)
    			return false;
    	}
    	return true;
    }
    Also AeriaAvA, instead of declaring using namespace std on a global scope, it's okay if you put it into local scopes such as your main function or your class.
    Last edited by [implicit]; 10-30-2012 at 10:46 PM.

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [Snippet] ButtonHandler - A cleaner and easier way to add button clicking
    By Shakugan no Shana in forum Runescape Private Servers
    Replies: 0
    Last Post: 10-10-2011, 08:47 PM
  2. [Snippet]Controlable speed and gravity
    By apandhi in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 02-21-2010, 05:40 PM
  3. [Tutorial/Snippet][VB6] Reading and writing INI Files
    By That0n3Guy in forum Visual Basic Programming
    Replies: 6
    Last Post: 10-26-2009, 05:31 PM
  4. Lineag2 and Ragnarok
    By suppaman in forum General Gaming
    Replies: 12
    Last Post: 01-01-2006, 04:07 PM
  5. i need short icq number pls and hack to wr..
    By BoneXDBreaker in forum WarRock - International Hacks
    Replies: 1
    Last Post: 12-26-2005, 05:08 PM

Tags for this Thread