This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2012-05-21 18:08:43

Andres-Vander
Scratcher
Registered: 2010-09-16
Posts: 1000+

Re: How to record ALL keystrokes with VB.NET?

If you won't give the reason you're making the keylogger for, it's probably illegal


http://www.gifsoup.com/view1/2260823/flugelhorn-feline-o.gif

Offline

 

#27 2012-05-21 18:40:52

GameHutSoftware
Scratcher
Registered: 2010-04-24
Posts: 1000+

Re: How to record ALL keystrokes with VB.NET?

Andres-Vander wrote:

If you won't give the reason you're making the keylogger for, it's probably illegal

To distribute it to people that need it.


Lurking more than posting, but still here.

Offline

 

#28 2012-05-21 19:21:35

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: How to record ALL keystrokes with VB.NET?

You could go to a shady website, then do a virus scan, and then repeat until you have a keylogger in your computer, then bend it to your will.


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#29 2012-05-21 20:50:42

Andres-Vander
Scratcher
Registered: 2010-09-16
Posts: 1000+

Re: How to record ALL keystrokes with VB.NET?

GameHutSoftware wrote:

Andres-Vander wrote:

If you won't give the reason you're making the keylogger for, it's probably illegal

To distribute it to people that need it.

What people need it?


http://www.gifsoup.com/view1/2260823/flugelhorn-feline-o.gif

Offline

 

#30 2012-05-21 21:46:30

GameHutSoftware
Scratcher
Registered: 2010-04-24
Posts: 1000+

Re: How to record ALL keystrokes with VB.NET?

Okay, the controversy stops here. I am not making this for malicious purposes, even though I do make worms. I JUST need the answer.


Lurking more than posting, but still here.

Offline

 

#31 2012-05-22 01:48:34

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: How to record ALL keystrokes with VB.NET?

GameHutSoftware wrote:

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  wink

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.

Emmm interesting, I will try it out at some point. Are you getting any kind of error before runtime? I mean like a red underline?  hmm


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#32 2012-05-22 10:29:05

GameHutSoftware
Scratcher
Registered: 2010-04-24
Posts: 1000+

Re: How to record ALL keystrokes with VB.NET?

Daffy22 wrote:

GameHutSoftware wrote:

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  wink

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.

Emmm interesting, I will try it out at some point. Are you getting any kind of error before runtime? I mean like a red underline?  hmm

Nope, no errors before. Want to see my code?


Lurking more than posting, but still here.

Offline

 

#33 2012-05-22 11:47:21

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: How to record ALL keystrokes with VB.NET?

GameHutSoftware wrote:

Daffy22 wrote:

GameHutSoftware wrote:

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  wink

Emmm interesting, I will try it out at some point. Are you getting any kind of error before runtime? I mean like a red underline?  hmm

Nope, no errors before. Want to see my code?

Yes please.


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#34 2012-05-22 12:13:48

GameHutSoftware
Scratcher
Registered: 2010-04-24
Posts: 1000+

Re: How to record ALL keystrokes with VB.NET?

Daffy22 wrote:

GameHutSoftware wrote:

Daffy22 wrote:


Emmm interesting, I will try it out at some point. Are you getting any kind of error before runtime? I mean like a red underline?  hmm

Nope, no errors before. Want to see my code?

Yes please.

Here:

Code:

Imports System.Net.Mail
Imports System.IO

Public Class Form1
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Dim keys As Integer
        keys = 1
        Dim memory As String
        While memory.Length < 1
        End While
        'i removed the code that sends emails
            SmtpServer.Send(mail)
            MsgBox("Sent")
        Catch
        End Try
        memory = ""
    End Sub
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Short
    Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
        For i = 1 To 255
            Dim key1 As Integer = GetAsyncKeyState(i)
        Next
    End Sub
End Class

Lurking more than posting, but still here.

Offline

 

#35 2012-05-22 16:32:21

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: How to record ALL keystrokes with VB.NET?

Em, I've tried that and I get the same error. Its a funny one because it only occurs at runtime  hmm  I'm going to experiment a bit more with it but in the mean time you can check out these sites, they look quite promising:
http://revolt.hyperhub.info/blog.php?ac … mp;item=15
And my search: http://www.bing.com/search?q=vb.net+key … -1&sk=

Hope they help you, I will get back to you if I get a break through though  tongue


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#36 2012-05-22 16:51:23

GameHutSoftware
Scratcher
Registered: 2010-04-24
Posts: 1000+

Re: How to record ALL keystrokes with VB.NET?

Daffy22 wrote:

Em, I've tried that and I get the same error. Its a funny one because it only occurs at runtime  hmm  I'm going to experiment a bit more with it but in the mean time you can check out these sites, they look quite promising:
http://revolt.hyperhub.info/blog.php?ac … mp;item=15
And my search: http://www.bing.com/search?q=vb.net+key … -1&sk=

Hope they help you, I will get back to you if I get a break through though  tongue

yikes  Thank you so much!! Do you know how to read a text document?

Last edited by GameHutSoftware (2012-05-22 16:52:32)


Lurking more than posting, but still here.

Offline

 

#37 2012-05-22 17:07:13

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: How to record ALL keystrokes with VB.NET?

GameHutSoftware wrote:

Daffy22 wrote:

Em, I've tried that and I get the same error. Its a funny one because it only occurs at runtime  hmm  I'm going to experiment a bit more with it but in the mean time you can check out these sites, they look quite promising:
http://revolt.hyperhub.info/blog.php?ac … mp;item=15
And my search: http://www.bing.com/search?q=vb.net+key … -1&sk=

Hope they help you, I will get back to you if I get a break through though  tongue

yikes  Thank you so much!! Do you know how to read a text document?

Yes:

Code:

Dim file as string = System.io.file.readalltext("file.txt") 'returns a string containing all the files content
'OR
Dim file() as string = system.io.file.readalllines("file.txt") 'will return a string array with each line as a variable in the array.

http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#38 2012-05-27 16:27:33

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: How to record ALL keystrokes with VB.NET?

jji7skyline wrote:

You could go to a shady website, then do a virus scan, and then repeat until you have a keylogger in your computer, then bend it to your will.

Oh that's just a great idea.  tongue


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

Board footer