Pages: 1 2
Topic closed
Hi. I'm making a keystroke logger, and I've run into a problem. The program will only record keystrokes that were entered into a textbox.
Private Sub Control_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox3.KeyPress
This only records keystrokes entered into TextBox3. I need to record all of them typed into any program.
Offline
Why are you making a keystroke logger :I
Offline
veggieman001 wrote:
Why are you making a keystroke logger :I
...reasons
Offline
This is not the forum to post this on. This one is for books and game talk.
Offline
rememberchicken wrote:
This is not the forum to post this on. This one is for books and game talk.
Whoops, sorry. Wasn't thinking when I posted.
Offline
GameHutSoftware wrote:
rememberchicken wrote:
This is not the forum to post this on. This one is for books and game talk.
Whoops, sorry. Wasn't thinking when I posted.
OK, I moved it.
Offline
I don't think making a key logger is a good idea... especially in America.
Offline
jji7skyline wrote:
I don't think making a key logger is a good idea... especially in America.
Why specifically not in America?
Offline
veggieman001 wrote:
jji7skyline wrote:
I don't think making a key logger is a good idea... especially in America.
Why specifically not in America?
You know... FBI might find out and things like that. You're more likely to get busted than say Russia or Nigeria.
Offline
jji7skyline wrote:
veggieman001 wrote:
jji7skyline wrote:
I don't think making a key logger is a good idea... especially in America.
Why specifically not in America?
You know... FBI might find out and things like that. You're more likely to get busted than say Russia or Nigeria.
I'd say you were more likely to get busted in Russia, actually.
Offline
I don't know anything about VB.NET (whatever that is. A programming language I suppose, but I've never heard of it), but obviously you shouldn't need a TextBox to write into if you want to record keystrokes that don't input data into your (potentially malicious) program.
Offline
veggieman001 wrote:
jji7skyline wrote:
veggieman001 wrote:
Why specifically not in America?
You know... FBI might find out and things like that. You're more likely to get busted than say Russia or Nigeria.
I'd say you were more likely to get busted in Russia, actually.
Hm... well I've noticed that there are lots of hackers based in Russia, so I assumed that
Offline
Guys, it's completely legal. They're mainly used for security purposes, like to make sure an employee isn't writing viruses, and the government uses them to watch suspected criminals.
technoguyx wrote:
I don't know anything about VB.NET (whatever that is. A programming language I suppose, but I've never heard of it), but obviously you shouldn't need a TextBox to write into if you want to record keystrokes that don't input data into your (potentially malicious) program.
Writing into that text box was for testing purposes.
Last edited by GameHutSoftware (2012-05-20 22:19:01)
Offline
GameHutSoftware wrote:
They're mainly used for security purposes, like to make sure an employee isn't writing viruses, and the government uses them to watch suspected criminals.
*Ahem* Assumption *Ahem*
Offline
stevetheipad wrote:
GameHutSoftware wrote:
They're mainly used for security purposes, like to make sure an employee isn't writing viruses, and the government uses them to watch suspected criminals.
*Ahem* Assumption *Ahem*
I've read articles about this sort of thing in Popular Mechanics.
Offline
Well, it's a known fact that most governments use hackers and malware to do things that they want done.
Offline
Let's not make this political, guys. I just want the answer.
Offline
I'm not really familiar with writing a keylogger in VB, but I guess you could take a look at some open source code for VB.NET keylogger programs for ideas? There's a lot of them floating out there on the web.
Offline
I made one before. It has the ability to capture which key but I just used it to make a graph of how many keys I press each day. No I'm not going to post the source code on a public forum.
What I will show is
GetAsyncKeyState(Cnt) <> 0
That should get you started.
Offline
what-the wrote:
I made one before. It has the ability to capture which key but I just used it to make a graph of how many keys I press each day. No I'm not going to post the source code on a public forum.
What I will show is
GetAsyncKeyState(Cnt) <> 0
That should get you started.
Can you just give me the source? You can change any private info, I just need to know how to use it.
Last edited by GameHutSoftware (2012-05-21 11:26:22)
Offline
I think the reason he isn't posting it is because even if you're not gonna use it for illegal purposes, anyone else who sees it could (right?). Unless you give him your email or something.
Offline
GameHutSoftware wrote:
what-the wrote:
I made one before. It has the ability to capture which key but I just used it to make a graph of how many keys I press each day. No I'm not going to post the source code on a public forum.
What I will show is
GetAsyncKeyState(Cnt) <> 0
That should get you started.Can you just give me the source? You can change any private info, I just need to know how to use it.
You also delete it after I see it.
Offline
veggieman001 wrote:
jji7skyline wrote:
veggieman001 wrote:
Why specifically not in America?You know... FBI might find out and things like that. You're more likely to get busted than say Russia or Nigeria.
I'd say you were more likely to get busted in Russia, actually.
But you're more likely to get arrested for no reason in the U.S.
When I saw the title I thought "Sounds like he's making a keylogger" and then I saw "I am trying to make a keystroke logger"
iWin!
Offline
Put what-the's code in a timer tick event:
For i = 1 To 255
Dim key as Integer = GetAsyncKeyState(I)
Next
You also need to include this line so that it knows what code to look for:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Put this somewhere in the form class between functions and stuff.
I havent tested any of this but if you need any more help let me know
Offline
Daffy22 wrote:
Put what-the's code in a timer tick event:
For i = 1 To 255
Dim key as Integer = GetAsyncKeyState(I)
Next
You also need to include this line so that it knows what code to look for:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Put this somewhere in the form class between functions and stuff.
I havent tested any of this but if you need any more help let me know
Stupid exception wrote:
GetAsyncKeyState' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Offline
Topic closed
Pages: 1 2