#! perl -w # fn_with_me.pl # A quick and dirty way to tell if someone is messing with My Computer +s use Net::SMTP; use Sys::Hostname; use Win32; $host = hostname; $user = Win32::LoginName(); $smtp = Net::SMTP -> new('your.mailhost.net'); #Connect to a mail serv +er $smtp -> mail( 'anysender@theirmailhost.net'); #Sender's name $smtp -> to('myemail@mymailhost.net'); #Receivers name $smtp -> data(); # Send the header $smtp -> datasend("To: myemail\@mymailhost.net\n"); $smtp -> datasend("From: theiremail\@mymailhost.net\n"); $smtp -> datasend("\n"); # Send the Body $smtp -> datasend("$user is using $host"); $smtp -> dataend(); $smtp -> quit;
In reply to RE: Watching my Users
by httptech
in thread Watching my Users
by Poetic Justice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |