A fun bit of code to be able to use NET SEND in a intranet environment. You will need to enable messenger services (not the msn messenger application) on 2000/XP to get this to work
The IP can be the IP of the receving computer, or the computer name if it has one. Enter '/users' to send to all users on a network.
This is tested on an XP machine running apache / php. Should have no issues on IIS / php machines
Now... the code
<?php
if(!isset($_POST['submit'])){
show_form();
}else{
//get message
if (isset($_POST['message'])){
$mess = escapeshellcmd($_POST['message']);
}else{
echo "no message";
show_form();
die();
}
//$ip is the ip of your friends machine...you could build a db table or array to use the name entry to find the ip
if (isset($_POST['ip'])){
$ip = escapeshellcmd($_POST['ip']);
}else{
echo "no ip";
show_form();
die();
}
echo "NET SEND $ip$mess";
exec("NET SEND $ip$mess");