Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Send popup messages to Windows users Network
A nifty trick to make messages pop up on the screens of Windows users on your network. Just type the following into the terminal:
 smbclient -M NETBIOSNAME -U FROMNAME 
The -U FROMNAME part is optional but it adds a nice touch to the message. The NETBIOSNAME is just that. It is NOT the DNS name of the computer (although on some networks it can be). After you make a connection you type your message, press return and then control-D. It will immediately appear on the screen of your targeted Windows user. The advantage to doing this from a Mac (or other *nix box) as opposed to a Windows PC is that you can specify the "from" user, which I don't *think* you can do from Windows. Please use responsibly.
    •    
  • Currently 4.00 / 5
  You rated: 5 / 5 (4 votes cast)
 
[110,081 views]  

Send popup messages to Windows users | 33 comments | Create New Account
Click here to return to the 'Send popup messages to Windows users' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Send popup messages to Windows users
Authored by: zimwy on Dec 11, '03 12:01:26PM

Hi,
For those of us who aren't windows people ( :) ), how does one find the NETBIOS name of a computer?

Thanks!



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: waffffffle on Dec 11, '03 12:07:32PM

I'm not sure. If you can browse the windows network neighborhood then you can tell by what the names of the network computers are. However I am not sure about computers that aren't sharing things on the network. You may need to try and find out the naming convention of computers on the network. I know that on my university network all Windows 2000 computers and later must be named for the student's user name but that's just here. If anyone knows a trick using smbclient to translate an IP to a netbios name please post it.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: stonemtn on Dec 11, '03 12:08:49PM

On a Windows 2000 network, you can actually use the USERNAME rather than the NETBIOS name. I've been using it all morning to great effect!



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: fxg97873 on Dec 11, '03 03:18:15PM

In the Terminal, type in:

findsmb

This will give you a list of all the smb clients in your subnet.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: msk on Dec 11, '03 03:55:29PM

Which ports do I need to open n my ipfw configuration to make this work? I think I hardened my OS X machine to much for these little tricks.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: olnorth on Dec 17, '03 02:19:31PM

It looks like SMB runs on port 139.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: olnorth on Dec 17, '03 02:22:44PM

You can also do the following:

This gives you the IP:
nmblookup -R [NETBIOS name]

This gives you the NETBIOS name:
nmblookup -A [IP]

But I agree, findsmb is far more useful :-)



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: yellow on Dec 11, '03 12:31:12PM

From the smbclient man page:
"If the receiving computer is running WinPopup the user will receive the message and probably a beep. If they are not running WinPopup the message will be lost, and no error message will occur."

I take this to mean that if the Windows box is 'hardened', then this won't work for you.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: gbennett on Dec 11, '03 12:57:15PM

How/Does this work with XP?



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: djn1 on Dec 11, '03 01:28:49PM

I just tested it with an XP box and it works fine.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: osxpounder on Dec 11, '03 04:54:12PM

For example, if you were trying to message my PCs, I'd never know, because I always disable the Windows messaging service nowadays -- I've never seen it used legitimately, but I have been spammed with popups. If I saw a service that even looked like "WinPopUp" running on my Windoze box, I'd stop that service. I guess these messages we're sending rely on one of those two services.....

---
--
osxpounder



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: crarko on Dec 11, '03 11:03:39PM

Yup, the wise person disables this stuff almost without thinking twice these days. Pity, too, since some of these services used to be good for something at one point.

When I set up my personal XP system a year ago it only took about 45 minutes before being spammed through the messenger service for the first (and last) time.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: djn1 on Dec 11, '03 01:31:03PM

Additionaly, you can use multiple words for FROMNAME if you bracket them with single quotes.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: GeeYouEye on Dec 11, '03 01:39:50PM

Alternately, you can use [code]echo "hello" | smbclient -M NETBIOSNAME[/code], of course replacing hello with the message of your choice.



[ Reply to This | # ]
Security Hole?
Authored by: EatingPie on Dec 11, '03 03:37:29PM

On my Win2K Machine at home, I was receiving messages from the Internet. They said something like "A new kind of security hack is coming..." and directed me to a decidedly non-Microsoft web site to download (and pay for) some decidely non-Microsoft utility. Yeah... right....

A quick Google search gave me instructions on turning off the messanging service, and I haven't been bothered since.

That Windows ships with it on by default, however, and that it can be exploited from the Internet, constitutes a security risk in my book. Maybe it's been changed with WinXP, but given the functionality of this hint, I doubt it.


---
-Pie
<http://www.storybytes.com>



[ Reply to This | # ]
Security Hole?
Authored by: osxpounder on Dec 11, '03 04:57:11PM

Right, this is what I was talking about when I said I'd never actually seen this service used legitimately -- but I was getting intentionally annoying popups on my PCs until someone hipped me that there was a Messaging service running in the background, by default, allowing anyone in the world to send me pop ups.

---
--
osxpounder



[ Reply to This | # ]
Receive Net Send messages on OS X
Authored by: climberbry on Dec 11, '03 04:42:11PM

http://www.versiontracker.com/dyn/moreinfo/macosx/21240



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: waffffffle on Dec 11, '03 05:45:51PM

In response to an email that I got, there is no confirmation in the terminal. The only confirmation you get is by looking at the recipient's screen.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: Faux Plastic on Dec 11, '03 06:43:55PM

Perhaps this would not be categorized as "responsible" use, but in my defense I'm only using it for a little fun at home with my wife and my dad. My wife has already found me out. They get the following message from "Microsoft Licensing Division":

"Failure to purchase enough Microsoft products has caused your Windows XP license to be revoked. Please shut off your computer immediately and ship it to: Contraband Device Receiving, Microsoft Corp., Redmond, WA 96775. We apologize for any inconvenience.

"Click OK or close the Window to signify agreement."

It's all harmless fun in the family. ;)



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: semios on Dec 11, '03 09:03:26PM

That's genius. I'm so going to get my coworkers with this!



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: Hes Nikke on Dec 11, '03 09:08:46PM
anyone know how to do this with a workgroup or a domain? under windows (yeah i know) the sytax is...
NET SEND {name | * | /DOMAIN[:name] | /USERS} message
any hints? for the record the following is what i tried:
[tibook:~] natef% smbclient -M MORNINGBELL -U YourMaster
Connection to MORNINGBELL failed
[tibook:~] natef% smbclient -M domain:MORNINGBELL -U YourMaster
Connection to domain:MORNINGBELL failed
[tibook:~] natef% smbclient -M apl4evr -U YourMaster
Connected. Type your message, ending it with a Control-D
teehee^D
sent 8 bytes
in this case morningbell is the domain, and apl4evr happens to be the windows 2000 adv server box (a member of morningbell) i was sitting in front of when i tried this.

---
vacuums do not suck. they merely provide an absence that allows other objects to take the place of what becomes absent.

[ Reply to This | # ]

Send popup messages to Windows users
Authored by: waffffffle on Dec 13, '03 06:51:33PM

You can set your workgroup in the Directory Access program in the utilities folder.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: Hes Nikke on Dec 13, '03 09:06:35PM
thats not what i'm saying.

what i'm saying is that i want to be able to send to a workgroup, not participate :P

---
vacuums do not suck. they merely provide an absence that allows other objects to take the place of what becomes absent.

[ Reply to This | # ]

Send popup messages to Windows users
Authored by: waffffffle on Dec 15, '03 04:33:41PM

As far as I know, you have to be part of the workgroup that you want to send messages to.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: rjbailey on Dec 11, '03 09:12:38PM
This is an excellent hint. I do lengthy computer simulations on Linux systems and needed some way to know when the simulations had completed. Using this method, I can create a script like:
...
run simulation
echo "Yoohoo, simulation is done!" | smbclient -M mymac
and as long as I've installed MacXPop I get a nice little reminder message in my desktop Mac when my Linux jobs are done!

[ Reply to This | # ]
Send popup messages to Windows users
Authored by: maged on Dec 13, '03 08:56:00AM
Nice companion to this hint is the open source nbtscan. You can run:

nbtscan <IP ADDRESS>
and it will give you a dump of all relevant NETBIOS info, including NETBIOS machine name (similar to Windoze):

nbtstat -A <IP ADRESS>
Compiles fine from source under 10.2.x and 10.3 with normal UNIX compile sequence:
tar zxvf nbtscan-1.5.1.tar.gz
./configure
make
make install
(use sudo as appropriate)



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: kyle_r_b on Dec 13, '03 03:30:34PM

Does anyone know how to lookup NETBIOS names over the internet. I've tried nbtscan, but it only seems to work for IPs on my local network. Am I configuring something wrong? Are there any other programs that probide this funtionality?

Thanks



[ Reply to This | # ]
Compiling nbtscan-1.5.1
Authored by: olmy on Dec 16, '03 11:10:41AM

I'm a Mac person (17" G4 PB running 10.2.8) who wants to learn about UNIX and as such am a newcomer to UNIX syntax, so this may seem to be a silly question. I am trying to install the "nbtscan-1.5.1.tar.gz" utility. Using Terminal I moved the package file from my desktop to the "/usr/bin" directory where it looked like all the other Terminal utilities were stored. I then unpacked it using your directions and it unpacked itself as a folder full of stuff called "nbtscan-1.5.1a". Then I typed "./configure" and it said "command not found". I changed my working directory from "usr/bin" to "usr/bin/nbtscan-1.5.1a" and typed "configure" (which is the name of a file in there) but got the same result. What am I missing? Thanks for your help!



[ Reply to This | # ]
Making sure it's executable
Authored by: osxpounder on Dec 17, '03 10:13:32AM
I'm no UNIX expert, but:

In Terminal, look at a listing of that directory you mention, the one that has the file "configure" in it, but type the ls command as follows:

ls -la|more

[If there are too many files to show in the window, the 'more' keeps the list from scrolling until you whack the space bar]

Listing the files this way shows you what permissions are set on each file, over at the far left. You want to see if the 4th place over from the left has an 'x' in it, as follows:

-rwxr--r-x 1 james james 169 12 Dec 17:32 foo

The above example shows a file that is executable, and I know because of the 4th character from the left: it's an 'x' instead of a dash ['-'].

If you don't see an 'x' there, you need to use the chmod command to make your file executable:

chmod u+x foo

Pardon me if I've just explained something you already knew! I started this post yesterday and just now noticed I hadn't finished it yet.

---
--
osxpounder

[ Reply to This | # ]

Send popup messages to Windows users
Authored by: waffffffle on Dec 15, '03 04:36:05PM

I got an email asking how to send messages to linux. The messages are sent the same way but you have to configure samba on the linux box to display those messages in some way. I don't know how to do it but I would imagine the documentation is out there somewhere.



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: lynxie on Dec 16, '03 08:20:40PM

Does anone know how can Windoze users reply to a Mac machine, or send messages?



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: climberbry on Dec 19, '03 08:46:34AM

There's LinPopUp for *nix
http://sourceforge.net/project/showfiles.php?group_id=83081&package_id=85382

There's MacXPop for Mac OS X
http://wwww.versiontracker.com/dyn/moreinfo/macosx/21240



[ Reply to This | # ]
Send popup messages to Windows users
Authored by: kevsteelio on Feb 26, '04 10:25:06AM

My question is about Sending to another Mac through MacXPop. I have a 3 computers doing jobs and when they are done with each job they send a message to my Mac telling me the job is done. One PC and 2 other macs. on the macs, I have thems set up to send like this

"smbclient -M THEODORE -U SIMON
Current Job Finished"

That isn't quite how I have it written out, but anyways, when ever I send a message from a mac using the -U option, I never actually get a name. for instance I send from -U GOD and the MacXPop window says

Message From: ___D__________

Even If I don't send it with a -U, I end up with __________ and not my NETBIOS Name for my mac.

Whats UP???

---
Kevin Steele



[ Reply to This | # ]