The Funelephant Forums!

You are not logged in.

Announcement

The Forums are currently Read-Only except for Mods & admin. These forums are closing down, but don't worry! We created a new forum, with more features! They are almost ready. We know it's hard to transition, but it's for the best! :D New Forums are here!

Adverts

Adverts

#1 Wednesday, July 18, 2012 13:06:18

daniel_j
From: Adelaide, Australia
Registered: Monday, July 2, 2012
Posts: 303
FunCoinz: 256
Bank: 50
Reputation :   
Website

Visual Basic Help.

Hey guys, quick question, I have made a personal keylogger using VB 2010, and I am upto the point of auto saving the textbox as log.txt, but eveything I try just is not working!
I have come up with a few versions of codes, but here is my most hopeful code for this;

Code:

  Private Sub Main_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
        Dim sw As New IO.StreamWriter("test.txt")
        sw.WriteLine(TextBox1.Text)
        sw.Close()
        End
    End Sub
    Sub Save()
        Dim sw As New IO.StreamWriter("test.txt")
        sw.WriteLine(TextBox1.Text)
        sw.Close()
        End
    End Sub

Basically, atm this should save as test.txt in the location of my executable, is this right?
This code might be totally wrong, and if it is could you please correct it :)
**This keylogger will be for personal use, you are not helping me hack anyone or anything :P**
Thanks for any help :)
P.S Any help and I will put you in my credits form, although it would be useless as this wont be released xD

Last edited by daniel_j (Wednesday, July 18, 2012 13:07:36)


For all those wondering why, why?

Offline

 

Wednesday, July 18, 2012 13:06:18

AdBot
Advertisements

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting