Display results as :

Rechercher Advanced Search

Latest topics
» ~=?{The future is here, TastyExploit officially open to the public}?=~
Tue Mar 02, 2010 11:00 pm by Dami

» My first aa script
Tue Mar 02, 2010 7:00 am by wafflemaster

» the real story behind Maverin
Tue Mar 02, 2010 1:33 am by SoundOfDeat

» Random spam
Mon Mar 01, 2010 11:52 pm by Danny1994

» [Request] EMS v56 Exe
Mon Mar 01, 2010 12:39 am by Dami

» [Blacklist] NX-Trading Blacklist.
Mon Mar 01, 2010 12:38 am by Danny1994

» I have a question regarding the meso farmer
Sat Feb 27, 2010 10:30 pm by Dami

» What are you listening to now?
Sat Feb 27, 2010 7:57 pm by Noname111111

» Video(s) Of The Day
Sat Feb 27, 2010 7:37 pm by Noname111111

free forum

[C++] Calculator Detector

Go down

[C++] Calculator Detector

Post by Dami on Fri Oct 30, 2009 4:11 am

By appalsap

Any tutorial that tries to teach people binary, bitwise operators, even basic arithmetic will have cheaters, those who decide to abuse calculators to leech leech leech. I have devised a method of detecting these calculators, and from my tests it detects a lot of them. False positive rate is nearly zero, you'd have to make an application try to look like a calculator. biggrin.gif

Here is a sample program you can use to test it.
#include <windows.h>

#define print(lol) WriteFile(hStd, lol, lstrlen(lol), &ass, NULL);

#define TOLERANCE 4

int __stdcall wCheck(HWND hWnd, LPARAM lpUnused);

char *suspicious = "0123456789+-=*C.x^/%"; DWORD ass; HANDLE hStd;

int main()


    hStd = GetStdHandle(-11);

    print("CalcDetect by appalsap-- For better forced tutorials.\n");

    for(;;SleepEx(5,0), EnumWindows(&wCheck, 0));

    return 0;


int __stdcall wCheck(HWND hWnd, LPARAM lpUnused)


    int Kount = 0, i = 0; char Kurrent[1];

    for(Kurrent[1] = NULL; i < 20; i++)


        if (Kount >= TOLERANCE) {

            print("Calculator detected. Exiting.\n");


            __asm { hlt };

        } else {

            Kurrent[0] = suspicious[i];

            if (FindWindowEx(hWnd, NULL, NULL, Kurrent) != NULL) Kount++;



    return TRUE;


Posts : 1414
Join date : 2009-08-10
Age : 29
Location : Finland

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum