1.

Solve : Batch file logger??

Answer»

Could someone show me a simple 'batch keylogger'? I know it's not a real dangerous keylogger, i just WANT anything that you type in the batch screen be logged into a txt file or something like that. Just wondering if it could work. Thanks I would also like to know if this is possible, can a batch file gather keyboard input without typing in the window? Quote from: shanked on December 15, 2010, 08:28:48 PM

Could someone show me a simple 'batch keylogger'? I know it's not a real dangerous keylogger, i just want anything that you type in the batch screen be logged into a txt file or something like that. Just wondering if it could work. Thanks

You probably could if batch code was a programming language. But it's not, so you can't. You might try one of the Windows script languages, but you'll need access to the Windows API (use a class wrapper). A full service programming language could definitely be USED. Even .Net Framework classes might have something you could use in Powershell or the other .Net languages. Lots of options limited only by your imagination and skill SET.

Quote from: polle123 on December 16, 2010, 05:09:04 AM
I would also like to know if this is possible, can a batch file gather keyboard input without typing in the window?

I'm not understanding.  How would it work to capture keyboard input without typing?

Keyloggers are an invasion of privacy. How would you like someone capturing your keystrokes every time you use the computer?  Quote
I'm not understanding.  How would it work to capture keyboard input without typing?

You DO type, but not in the open prompt. Was wondering if it could be done

And having a keylogger on your computer is just the thing you want if you suspect parents or brothers/sisters going trough your stuffA Keylogger of any "usable" caliber needs to IMPLEMENT a Global Windows hook.

This is something that is not easy to do properly; you can create Windows Hooks in almost any language that can call the API, but in order to create a global hook you need to make a stdcall dll. There are some workarounds, thankfully, that allow you to create and receive Hook events. They are usually quite messy (in any language).

Of course, there are probably a lot of COM and/or .NET components that expose this functionality so you don't have to write your own. But even suggesting it is something batch can or should be able to do is kind of dumb.

Quote from: polle123 on December 16, 2010, 11:50:47 AM
Was wondering if it could be done
No. Not in batch. Quote from: BC_Programmer on December 16, 2010, 11:56:00 AM
No. Not in batch.

meh, expected as muchAre you guys sure? I think I've made something somewhat similar before i just forgot what i did.  I know (somehow) you can put words into a text file (what you type in batch screen) and when you press 'enter' it will move those words into the text file. The thing i'm trying to make is just to update the text file of what they type (such as every letter) or if you cant update every letter, every time you press enter.The only other thing I can think of is the DOS copy con command. This is not a key logger, more of a primitive editor (even more primitive than EDLIN, if that's possible) Copy Con takes no prisoners, you can't edit an existing file and if you make a mistake, you get to start all over again.

Quote
Usage:

copy con test.txt


Finally, a user can create a file using the copy con command as shown above, which creates the test.txt file. Once the above command has been typed in, a user could type in whatever he or she WISHES. When you have completed creating the file, you can save and exit the file by pressing CTRL+Z, which would create ^Z, and then press enter. An easier way to view and edit files in MS-DOS would be to use the edit command.
Source

Why not use an editor like Notepad or even the DOS EDIT?

Good luck.



Quote from: shanked on December 16, 2010, 04:11:39 PM
Are you guys sure? I think I've made something somewhat similar before i just forgot what i did.  I know (somehow) you can put words into a text file (what you type in batch screen) and when you press 'enter' it will move those words into the text file. The thing i'm trying to make is just to update the text file of what they type (such as every letter) or if you cant update every letter, every time you press enter.

yes, but the thing of a keylogger is capturing keyboard input that is NOT typed directly in the prompt but somewhere else, like in a browser (also this would probably be used maliciously)


Discussion

No Comment Found