Results 1 to 15 of 15
  1. #1
    blackmayfay's Avatar
    Join Date
    Jan 2016
    Gender
    female
    Posts
    3
    Reputation
    10
    Thanks
    0

    Unhappy [Help Me] I want make c++ Console

    I want make c++ Console but i not know How to make i have Source Code Dll c++ but i want make c++ console

    Cheah.h
    #define BASEADDRESS 0x00B03E9C

    #define OFFSETNSD 0x4bc0
    #define OFFSETNCT 0x0da4
    #define OFFSETROLL 0x228
    #define OFFSETLEVEL 0x1fe8
    #define OFFSETSTR 0x4b34
    #define OFFSETINT 0x4b38
    #define OFFSETDEX 0x4b3c


    void NSD()
    {
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNSD) = 1;
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNCT) = 0;
    }
    void ROLL()
    {
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETROLL) = 12;
    }
    void MAXSTATUS() //MAX STATUS
    {
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200;
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999;
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999;
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;

    }
    FuncTion.cpp
    #include <Windows.h>
    #include "Cheat.h"

    extern void Start();
    BOOL WINAPI DllMain (HMODULE hModule, DWORD dwReason, LPVOID lpxReserved)
    {
    switch (dwReason) {
    case DLL_PROCESS_ATTACH:

    CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start,0,0, 0);
    break;
    }
    return TRUE;
    }


    void Start()
    {
    bool activeNSD,activeFAN,activeROLL,activeHIDE,activeWA LL,activeFIRE,activeLEVEL,activeMAXSTATUS2,activeS HOWHP,activeZOOM;
    char * CAPTION = "VEN";

    while(true)
    {
    if (GetKeyState(VK_F5) < 0)
    {
    if(!activeNSD)
    {
    activeNSD = true;

    }else{
    activeNSD = false;
    }

    }

    if (GetKeyState(VK_F6) < 0)
    {
    if(!activeROLL)
    {

    activeROLL = true;

    }else{
    activeROLL = false;
    }

    }

    if (GetKeyState(VK_F7) < 0)
    {
    if(!activeMAXSTATUS2)
    {
    activeMAXSTATUS2 = true;
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200;
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999;
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999;
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;
    }else{
    activeMAXSTATUS2 = false;
    }
    }

    if(activeROLL) ROLL();
    if(activeNSD) NSD();
    if(activeMAXSTATUS2) MAXSTATUS();
    Sleep(0);



    }
    }


  2. #2
    Jenarosa's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Location
    Behind Zero's Ashes
    Posts
    5
    Reputation
    10
    Thanks
    0
    My Mood
    Aggressive
    lol easy question

    Fire up Visual C++ 2013 and Press Ctrl+N > New Project > Visual C++ > Win32 Console Application > Next > Finish

    Now you have a Win32 Console. Just add you *.cpp and *.h to your project.

  3. #3
    maktm's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Jenarosa View Post
    lol easy question

    Fire up Visual C++ 2013 and Press Ctrl+N > New Project > Visual C++ > Win32 Console Application > Next > Finish

    Now you have a Win32 Console. Just add you *.cpp and *.h to your project.
    You're assuming a console and module have the same entrypoint and write to memory the same way.

  4. #4
    Jenarosa's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Location
    Behind Zero's Ashes
    Posts
    5
    Reputation
    10
    Thanks
    0
    My Mood
    Aggressive
    Quote Originally Posted by maktm View Post
    You're assuming a console and module have the same entrypoint and write to memory the same way.
    as I said, it's easy. I just show up a tip. anyway, this is what you need to do:

    Code:
    #include "stdafx.h"
    #include <Windows.h>
    
    #define BASEADDRESS 0x00B03E9C
    
    #define OFFSETNSD 0x4bc0
    #define OFFSETNCT 0x0da4
    #define OFFSETROLL 0x228
    #define OFFSETLEVEL 0x1fe8
    #define OFFSETSTR 0x4b34
    #define OFFSETINT 0x4b38
    #define OFFSETDEX 0x4b3c
    
    
    void NSD()
    {
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNSD) = 1;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNCT) = 0;
    }
    void ROLL()
    {
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETROLL) = 12;
    }
    void MAXSTATUS() //MAX STATUS
    {
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;
    
    }
    
    int main()
    {
    	bool activeNSD, activeFAN, activeROLL, activeHIDE, activeWA LL, activeFIRE, activeLEVEL, activeMAXSTATUS2, activeS HOWHP, activeZOOM;
    	char * CAPTION = "VEN";
    
    	while (true) {
    		if (GetKeyState(VK_F5) < 0) 
    		{
    			if (!activeNSD) {
    				activeNSD = true;
    			}
    			else {
    				activeNSD = false;
    			}
    		}
    
    		if (GetKeyState(VK_F6) < 0) 
    		{
    			if (!activeROLL) {
    				activeROLL = true;
    			}
    			else {
    				activeROLL = false;
    			}
    		}
    
    		if (GetKeyState(VK_F7) < 0) 
    		{
    			if (!activeMAXSTATUS2) {
    				activeMAXSTATUS2 = true;
    				*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200;
    				*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999;
    				*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999;
    				*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;
    			}
    			else {
    				activeMAXSTATUS2 = false;
    			}
    		}
    
    		if (activeROLL) ROLL();
    		if (activeNSD) NSD();
    		if (activeMAXSTATUS2) MAXSTATUS();
    		Sleep(0);
    	}
    
        return 0;
    }

  5. #5
    maktm's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Jenarosa View Post
    as I said, it's easy. I just show up a tip. anyway, this is what you need to do:

    Code:
    #include "stdafx.h"
    #include <Windows.h>
    
    #define BASEADDRESS 0x00B03E9C
    
    #define OFFSETNSD 0x4bc0
    #define OFFSETNCT 0x0da4
    #define OFFSETROLL 0x228
    #define OFFSETLEVEL 0x1fe8
    #define OFFSETSTR 0x4b34
    #define OFFSETINT 0x4b38
    #define OFFSETDEX 0x4b3c
    
    
    void NSD()
    {
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNSD) = 1;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNCT) = 0;
    }
    void ROLL()
    {
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETROLL) = 12;
    }
    void MAXSTATUS() //MAX STATUS
    {
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;
    
    }
    
    int main()
    {
    	bool activeNSD, activeFAN, activeROLL, activeHIDE, activeWA LL, activeFIRE, activeLEVEL, activeMAXSTATUS2, activeS HOWHP, activeZOOM;
    	char * CAPTION = "VEN";
    
    	while (true) {
    		if (GetKeyState(VK_F5) < 0) 
    		{
    			if (!activeNSD) {
    				activeNSD = true;
    			}
    			else {
    				activeNSD = false;
    			}
    		}
    
    		if (GetKeyState(VK_F6) < 0) 
    		{
    			if (!activeROLL) {
    				activeROLL = true;
    			}
    			else {
    				activeROLL = false;
    			}
    		}
    
    		if (GetKeyState(VK_F7) < 0) 
    		{
    			if (!activeMAXSTATUS2) {
    				activeMAXSTATUS2 = true;
    				*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200;
    				*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999;
    				*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999;
    				*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;
    			}
    			else {
    				activeMAXSTATUS2 = false;
    			}
    		}
    
    		if (activeROLL) ROLL();
    		if (activeNSD) NSD();
    		if (activeMAXSTATUS2) MAXSTATUS();
    		Sleep(0);
    	}
    
        return 0;
    }
    As I said before:

    and write to memory the same way.
    Code:
    *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999;
    	*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;
    Where do you think these writes are going to go? It's not going to be in a different address space (at least not without calls to WPM or some other stuff).

  6. #6
    blackmayfay's Avatar
    Join Date
    Jan 2016
    Gender
    female
    Posts
    3
    Reputation
    10
    Thanks
    0
    I don't have how to Process to game

  7. #7
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,280
    My Mood
    Devilish

    Code:
    FILE *ConOut, *ConErr, *ConIn;
    AllocConsole();
    freopen_s(&ConOut, "CONOUT$", "wb", stdout);
    freopen_s(&ConErr, "CONOUT$", "wb", stderr);
    freopen_s(&ConIn, "CONIN$", "rb", stdin);


  8. #8
    blackmayfay's Avatar
    Join Date
    Jan 2016
    Gender
    female
    Posts
    3
    Reputation
    10
    Thanks
    0
    i don't understand

  9. #9
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,280
    My Mood
    Devilish
    Quote Originally Posted by blackmayfay View Post
    i don't understand
    The code i posted allocates a console and opens the input/output files for it so you can stream data to it (cout/printf etc).
    Do that in your main, make sure to have included <stdio.h>

  10. #10
    maktm's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Yamiez View Post
    The code i posted allocates a console and opens the input/output files for it so you can stream data to it (cout/printf etc).
    Do that in your main, make sure to have included <stdio.h>
    Regardless if he's building it as a console he'll get a console in the end. No need for AllocConsole. Only he has to do now is change the writes to memory to WriteProcessMemory calls.

  11. #11
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,280
    My Mood
    Devilish
    Quote Originally Posted by maktm View Post
    Regardless if he's building it as a console he'll get a console in the end. No need for AllocConsole. Only he has to do now is change the writes to memory to WriteProcessMemory calls.

    Quote Originally Posted by maktm View Post
    and write to memory the same way.
    Clearly you did not read what he wanted.

  12. #12
    maktm's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Yamiez View Post
    Clearly you did not read what he wanted.
    Umm read this:

    I want make c++ Console but i not know How to make i have Source Code Dll c++ but i want make c++ console
    Sounds like he wants to convert a module/dll into a console project (.exe) which makes the application external.

  13. #13
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,280
    My Mood
    Devilish
    Quote Originally Posted by maktm View Post
    Umm read this:



    Sounds like he wants to convert a module/dll into a console project (.exe) which makes the application external.
    You dont have create a an exe just to allocate a console, if he states that he wants the SAME Read/Write memory method &
    a console, he obviously wants to stay internal and allocate a console from there.

    A Console project does not have to mean it compiles as an exe.

  14. #14
    maktm's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Yamiez View Post
    if he states that he wants the SAME Read/Write memory method
    wut. Where does he say that?

    but ok, i'll stop deviating from the topic. you can go ahead and help him out.

  15. #15
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,280
    My Mood
    Devilish
    Quote Originally Posted by maktm View Post
    wut. Where does he say that?
    Read the previous quote? lol.

    Quote Originally Posted by maktm View Post
    and write to memory the same way.


    Either way OP has the source for how-to implement a console into his project.

    Closed & Marked as Solved.

Similar Threads

  1. Can someone help me? I want to make a script.
    By Aceaku1 in forum Realm of the Mad God Tutorials & Source Code
    Replies: 7
    Last Post: 06-26-2013, 07:53 PM
  2. [Solved] [Help Request] I want make a Hack but some problems face me
    By aladin111 in forum CrossFire Help
    Replies: 5
    Last Post: 01-18-2013, 03:16 PM
  3. [Help] I need help because I want to make a new weapon spawner hack
    By xXHACK3RXx in forum Combat Arms EU Hack Coding/Source Code
    Replies: 7
    Last Post: 09-05-2012, 08:57 PM
  4. [Help Request] [Help Request] How to make No Recoil hack in Visual Studio?
    By Tstovall in forum CrossFire Help
    Replies: 5
    Last Post: 07-20-2011, 02:55 AM
  5. [Help] I want make a ModMenu
    By thibzko in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 08-21-2010, 03:42 AM