Net Send users anonymous over the network
Net Send users anonymous over the network
Now you understand the working of net send? if not then you might want to learn before you mess something up! Net Send utility uses APIs provided by microsoft LAN manager. to send a message, you have to register the message alias in message name table. this is done through "NET MESSAGE NAME ADD" function. only members of local administrator group can execute this function. as mentioned earlier, host name of computer is by default added to message alias table, so you can even send messages without registering a new alias. but i am doing so for explaining the whole process. however thisis not the actual thing which makes anonymous net sends possible, once you have registered any message alias in message name table you can use "net message buffer send" function to send the popup message to any host.
the sample application provided with this article is a dialog based WTL application which can send anonymous messages to many hosts at a time. using this utility you can even send message to more than a thousand hosts. you need to provide a list of ip assresses in a file named checkhost.txt. this program expects one ip address in one line of this text file. for further information, you can open the file provided with sample and check it. Net maessage buffer send accepts 5 arguments. first one is server name which is local host if it is null second is message alias which you created, third is the name of the sender ( got any idea how this works? ), fourth is the pointer to message itself and last is the size if the message. so it is the " from " field of this function which makes makes it all possible. it can be any anonymous name. Following code shows how to send this message.
\\ // 9000q // \\ USES_CONVERSION: Net Message Name Add (NULL, A2W ("RECTOR")); // we have assed a message alias of RECTOR
Net Message Buffer Send ( NULL, server, from (byte * ) &msg,wcslen ( msg) *2 );
Net message name Del (NULL,A2W ("RECTOR"));
// "server" is a unicode string containing IP address // whom you want to send // "from" is the actual field which makes it all happen. // it is unicode string and it contains the name from // which this message is coming form. so you can specify // any anonymous name and it will appear on receiver end // we are multiplying the length of message by 2 // because it is a unicode string which // corresponds to 2 bytes for a single character
This is not the actual code taken from sample application. this is just to demonstrate the whole process.
\\ // Araym // \\
in sample application on clicking the broadcast button, first I retrieve text from edit box and convert the char string to unicode character string using " mbstowcs" function ( these network functions require unicode string). then i go in loop and create a thread for each message i ant to send. in thread i simply send the message using " Net message buffer send " function. hats it
to send messages to your own hosts, you need to change the checkhosts.txt file to remove my added IP assresses and ass those hostnames or IP Addrrsses whom you want to send message.
Remember if your at school and you dont know what your doing dont do it you will be cought!!!
\\ // VELOCITY // \\