| Language: | C++ |
| Category: | System |
| Date: | 2009-03-31 |
| Author: | WEB Consulting Company |
The command has the following syntax:
NET SEND Address Text
As an address, you can specify either the NETBios-name of the computer or its IP-address. For example, here is a command that sends the "Hi Dany" message to a computer named Dany:
NET SEND Dany Hi Dany
Most interesting, Windows 2000 and XP have no protection against bombing with the NET SEND command. You can easily send as many commands as you like to your fiend's computer with any message, and they will reach that computer. If you don't want to send them manually, you can write a small program.
Create a new Win32 Project application in Visual C++ and write the following code just before the main message loop:
for (int i=0; i<10; i++)
{
WinExec("NET SEND 192.168.1.121 I'll make you cry", SW_SHOW);
Sleep(1000);
}
This loop repeats ten times, and the WinExec function is called ten times. This function executes the code specified as the first parameter in the Windows command line. The first parameter is "NET SEND 192.168.1.121 I'll make you cry". When this code is executed in the command line, the message "I'll make you cry" will be sent to the computer with the address 192.168.1.121.
In each iteration, a one-second delay is made with the Sleep function so that the events come with a delay.
If someone started bombing you with NET SEND messages, don't try to close all those windows. Do as follows:
1. Unplug the network cable that connects you with the network. If this is impossible for some reason, move to the next step.
2. Select Start/Settings/Control Panel/Administrative tools/Services and find the Messenger service in the window that appeared. Right-click it and select Stop in the pop-up menu.
If you don't use this command, you should disable it beforehand (it is enabled by default) to prevent such an attack on your computer.
The example in the article is easy-to-use because it is written a long tim ago.