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.
![]() |
|||||||
---|---|---|---|---|---|---|---|
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 |
|||||||
Posted On: 08/05/2009 2:12AM | View STGill's Profile | # | ||||||
|
Very nice, but I’d like to see someone code a Linux keylogger =P. |
||||||
Posted On: 08/05/2009 1:20PM | View LostKhaos's Profile | # | ||||||
|
LostKhaos Posted:
Way to show how illiterate you are. It would only take a minor tweak or two to make that code viable for *nix. Log in to see images!
ATTENTION NEWBS: SEARCH BEFORE YOU POST
Log in to see images! |
||||||
Posted On: 08/05/2009 2:31PM | View Xylon's Profile | # | ||||||
LostKhaos Posted:
Well, you wouldn’t use windows.h to be sure but the hex code for key strokes should be universal.
The same principle can be applied in linux using different libraries (can’t remember them offhand) as the root user add it to /etc/inittab or /etc/init.d
The preceding code was written in “Dev C++” for Win32, and is actually the base code for a Text Adventure Engine I am working on. (The TAE has much more code.)
Another way to do it in linux is to use evbug [4298922.635000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 103, Value: 0 [4298922.635000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0 [4298923.302000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 4, Code: 4, Value: 200 [4298923.302000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 103, Value: 1 [4298923.302000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0 [4298923.380000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 4, Code: 4, Value: 200 [4298923.380000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 103, Value: 0 [4298923.380000] evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0 STGill edited this message on 08/05/2009 3:50PM |
|||||||
Posted On: 08/05/2009 3:48PM | View STGill's Profile | # | ||||||
|
shut teh **** up yuo fat ugly nerdvomits no1 care about ur list of madeup words Log in to see images! |
||||||
Posted On: 08/05/2009 4:01PM | View 1337xxxxxxxxxlol...'s Profile | # | ||||||
|
ChilePepino Posted: |
||||||
Posted On: 08/05/2009 4:03PM | View ChilePepino's Profile | # | ||||||
ChilePepino Posted:
LOL, awesome. Nethack FTW
|
|||||||
Posted On: 08/05/2009 4:08PM | View STGill's Profile | # | ||||||
1337xxxxxxxxxlolololololololololxxxxxxxxx1337 Posted:
LOL. What part is made up? |
|||||||
Posted On: 08/05/2009 4:09PM | View STGill's Profile | # | ||||||
|
there were all made up by SOMEONE DUH Log in to see images! Log in to see images! This is the part where Single Tingle turns into Double Trouble and ends up in If you don’t fall for the joke, you get to be in on it. |
||||||
Posted On: 08/05/2009 4:38PM | View Adapt's Profile | # | ||||||
|
STGill Posted:
GAUUGGHGHGH BUH BUH BUH I TALK LIEK BABBY SO NO ADULTS COULD HERE ME & MAKE UP SECRETE CODES W/ MY FRIEND TOMY PICKELS Log in to see images! |
||||||
Posted On: 08/05/2009 4:48PM | View 1337xxxxxxxxxlol...'s Profile | # | ||||||
|
hadfhfsgS Log in to see images! |
||||||
Posted On: 08/05/2009 5:03PM | View Physics's Profile | # | ||||||
|
You’re all retards. I stab this thread repeatedly with a rusty spatula.
I'M A SIG-DISABLING COCKMONGLER
|
||||||
Posted On: 08/10/2009 5:41PM | View Lord Boxtop's Profile | # | ||||||