Re^2: Capture Keystroke
by shmem (Chancellor) on Apr 12, 2009 at 19:36 UTC
|
By now you should know the position on helping the Bad Guys create illegal software.
Software which captures key strokes and sends them off to another system is not illegal. If it was, the X Windows system, or Citrix, or NoMachine would be illegal, even OpenSSH. The OP does ring your alarm bell - but what does tell you they are Bad Guys?
| [reply] |
Re^2: Capture Keystroke
by repellent (Priest) on Apr 12, 2009 at 21:12 UTC
|
For what it's worth, my alarm bells were ringing too. Especially after this post prompted me to go through michbach's previous posts.
That's not to say I assumed the worst. It just meant that something smelled slightly fishy.
| [reply] |
|
|
something smelled slightly fishy
What is it that smells fishy? Getting mouse events, manipulating window size and stacking order, recording key strokes - all that are things we do all day long (the latter, for instance: saving those key strokes to a file, e.g. Unnamed.doc). Fishy? Is there more to it than a Pawlow's dog reaction?
Do you have any grounds on which to insinuate criminal energy? Do you know of the OP's purposes?
For myself, I'm capturing all output to any terminal I open, to a file, named after 'begin-end-terminal', via script(1) on UNIX. That way I have a log of all I am doing. Does that sound evil to you?
| [reply] |
|
|
I wasn't insinuating any "criminal energy". That's why I tried/used the word "slightly" :)
Please see my reply to michbach. I hope you catch my tone of emotion from that node. I want the best for michbach, and to avoid any further knee-jerk thoughts (that I've fallen prey to) from other monks.
| [reply] |
|
|
That sounds like something I could use. Is that a module, shmem?
| [reply] |
|
|
|
|
|
|
God in heaven! Let your alarm bell rings! I guess u are feeling great when your bells ring. But i call this a little bit paranoid. I dont know exactly how much keyloggers and all that hacker-waste u can download in the internet but im sure more then hundreds. You can get such software on every corner and there is no need to write one (not for me lol). There are a lot of other reasons to control mouseevent or keyevents then only hack hack hack. Its not my problem if you cant imagine that, but let it be to imply me i have a bad tendency.
Every question here could be help anybody to write a scripts for hacking or other abuse. But i understand also that on such a public board a certain security must be. I try to respekt the board-rules as i know (i dont read the rules every day!) but please avoid suspicions from your side. This is not Quantanamo (evidences no need it). As i already wrote i know how to get a value (Term::ReadKey, bind etc.) of a keystroke but my core intention was to make it not circumstantial with hundred of script-lines.
At the end i wanna say i solved the problem with another help so the problemm dont exist anymore. Sorry for my bad english but im to old to learn english really good. My time is limited :-) and i need ofte a long time to write my questions in this language. But i try my best and i like this board cause you get often quick and professional help.
tx to all, regard michbach
| [reply] |
|
|
Sorry for my bad english but im to old to learn english really good. My time is limited :-) and i need ofte a long time to write my questions in this language.
Your posts often come across as if they were written by a teenager who cannot be bothered to properly type everything out. I realize that English is not your primary language but here are two quick and easy things to work on that will greatly enhance the respect that you receive around here.
- Stop using text messaging shortcuts like "u" when you mean "you" and "ur" when you mean "your".
- If you are going to use contractions then include the apostrophe such as "I'm" instead of "im". (Bonus points for not using contractions at all such as "I have" instead of "I've".)
| [reply] |
Re^2: Capture Keystroke
by michbach (Sexton) on Apr 12, 2009 at 20:29 UTC
|
Omg, Old_Gray_Bear ur fantasie is not good. The world is full of bad guys but may be not so much as u imagine! Im writing a programm with a gui frontend (Tk) where users can store their own keystroke and later in this program they can use this keystroke to control their own desktop functions. Thats all! Nothing bad. But its ok i will do it by myself. I know modules like Term::ReadKey and the function like SendKeys("BlahBlah")will help me but the Problem is under Term::ReadKey i cant get all special keys like F1-F12, Del, Pageup, Pagedown, Arrows, Print etc. to store this value in a scalar to give out later the same keyvalue with SendKeys..
By the way another possibility were to bind a keystroke to a Tk-element like:
$textbox->bind("<Return>", sub{$Entryfiel->delete('0.0','end');$Entryf
+ield->insert("end", "Return");});
but dont wanna do it in this way for every key. Thats really circuitous, so i try to find a better/smart way. Ok many thanks i will try it by myself and im sure i find a way may be in a week but i will find it..
Best regard, michbach | [reply] [d/l] |
|
|
Your trend of questioning and research into your program's implementation does overlap the blackhat domain, at a quick glance.
It's fine to continue asking, but next time, it would be good to state your intentions like you did here to avoid further (superficial) suspicions. Besides, stating your intentions also help you more in that other monks can suggest better solutions to your actual main problem.
With that said, there's lots of third-party tools that already do what you want to do. Search the web. Why not leverage them? If you're writing it for your own education, then it's best to say so, so that other monks can decide whether to help, given that more info is provided.
| [reply] |
|
|
| [reply] |