chevron_left chevron_right
Login Register invert_colors photo_library


Stay updated and chat with others! - Join the Discord!
Thread Rating:
  • 0 Vote(s) - 0 Average


[Release] [SIMPLE] Exploit/Cheat Exception Handler filter_list
Author
Message
[Release] [SIMPLE] Exploit/Cheat Exception Handler #1
As the title states, this is EXTREMELY simple, so don't think I'm releasing this thinking I'm some kind of god because this code isn't hard to write, at all. If you can't already tell by the name, what this does is outputs wherever there's an error with your exploit/cheat. It doesn't even really have to be an exploit or cheat either, this can work for a lot of other things. For example, say you have a Windows Form with a text-box (for putting code into) and a button (for executing the code). Let's say you put this C++ code in the text-box to execute:

Code:
#include <iostream>

using namespace std;

int main()
{
    int a = 5;

    cout << a << endl

    return 0;
}

The exception handler would point out an error with line 9 (cout << a << endl) and the error would say that the statement wasn't ended with a semicolon. It's pretty simple, but it's also very useful for error handling and testing code. Here's the code:

Code:
try
{
    // Your code/command
}

catch (const std::exception & e)
{
    MessageBoxA(0, e.what(), "Error", 0);  // Prints where you messed up or where an error is
}

catch (...)
{
    MessageBoxA(0, "Unexpected error", "", 0);
}

Reply

RE: [Release] [SIMPLE] Exploit/Cheat Exception Handler #2
Your demonstration and example of exceptions is off. You would only see that if whatever library you were using threw the appropriate exception for that kind of error. You can't really "test" C++ code like this. This isn't .NET where there is a base exception type for everything.
(This post was last modified: 05-25-2019, 07:04 AM by 0xDEAD10CC.)

Reply

RE: [Release] [SIMPLE] Exploit/Cheat Exception Handler #3
Doesn't g++ already tell you if you have errors?

Reply

RE: [Release] [SIMPLE] Exploit/Cheat Exception Handler #4
(06-28-2019, 04:24 PM)numer_05 Wrote: Doesn't g++ already tell you if you have errors?

As for the tool, C++ does tell you if you have an error building the program, but it doesn't tell you if it does what you want or not. Say you want to print A and you've written everything correctly and it builds, but you accidentally have a typo and it prints B.
(This post was last modified: 06-28-2019, 11:57 PM by Drako.)
[Image: tumblr_n4fsswcwZa1sbhzgao1_250.gif]

"Crack it open, throw it in a pan and let it cook." ~ Filthy Frank

Reply

RE: [Release] [SIMPLE] Exploit/Cheat Exception Handler #5
(06-28-2019, 07:47 PM)Drako Wrote:
(06-28-2019, 04:24 PM)numer_05 Wrote: Doesn't g++ already tell you if you have errors?

I believe you mean C++. But as for the tool, C++ does tell you if you have an error building the program, but it doesn't tell you if it does what you want or not. Say you want to print A and you've written everything correctly and it builds, but you accidentally have a typo and it prints B.

You then go and check the code to make sure it is correct. Make a few changes and compile again. Basic troubleshooting 101.

Reply






Users browsing this thread: 1 Guest(s)