Sign in to follow this  
Followers 0
Infinitex0

Loggin logger

5 posts in this topic

#1 ·  Posted (edited)

I was just bored and messing around with macros and I made this script. Just make a new text document labeled log.txt and put it where ever you want just make sure the address in the script is the same as the address for where ever you put the text document.

#NoTrayIcon
$file = FileOpen("C:\Documents and Settings\Owner\My Documents\log.txt", 1)

; Check if file opened for writing OK
If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

FileWriteLine($file, "Day Of Year: " & @YDAY) 
FileWriteLine($file, "Day Of Week: " & @WDAY)
FileWriteLine($file, "Year: " & @YEAR) 
FileWriteLine($file, "Month: " & @MON) 
FileWriteLine($file, "Day Of Month: " & @MDAY) 
FileWriteLine($file, "Hour: " & @HOUR) 
FileWriteLine($file, "Minute: " & @Min)
FileWriteLine($file, "Second: " & @SEC)
FileWriteLine($file, "User: " & @UserName)
FileWriteLine($file, "Operating System: " & @OSVersion)
FileWriteLine($file, "===============Seperate===============")
FileClose($file)

This is my first submited script so any and all feedback would be appreaciated.

EDIT: Put this in your startup folder

Edited by Infinitex0

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites



Nice little tool


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

@infinitex0: why do you need that? if you would log the pw than it might be useful for some people, so they could check the admin-acc, but for normal users with admin-rights this is kinda useless

but, i've got some suggestions anyway:

1. maybe log the progs a user opens + time when opened + time used

2. as i said pw's might be useful (not logged when admin logs in - maybe configurable or stored in a safely encrypted file)

3. for internet-apps a sitelog would be usefull

if you could do that as well, than this little prog would be really nice

Share this post


Link to post
Share on other sites

yeah but thats about as close as you can get to a key logger.(I think)


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites

Log it on CSV format and to a server share. That way it can be used for something.

I created a similar script for a customer and they run it at logon and logoff and it writes to a share and they can import it into Excel.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0