Re: Tool for sending Windows popup messages?
On Tue, 26 Aug 2003 10:49:44 -0700 Vineet Kumar wrote: * Carlos Sousa ([EMAIL PROTECTED]) [030826 07:25]: On Mon, 25 Aug 2003 18:53:47 -0700 Vineet Kumar wrote: * Joe Emenaker ([EMAIL PROTECTED]) [030825 17:03]: Is there some Debian tool that would let me specify an IP and a message and it would handle the delivery without making me bother with finding out the NetBIOS name, etc.? Did you try smbclient's -I option? Seems to need the netbios name all the same. I haven't tried it I have. $ echo 'hello' | smbclient -M pc-049 added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 Connected. Type your message, ending it with a Control-D sent 7 bytes $ echo 'hello' | smbclient -I 192.168.0.67 -M pc-049 added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 Connected. Type your message, ending it with a Control-D sent 7 bytes $ echo 'hello' | smbclient -I 192.168.0.67 -M XX added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 session request failed , so I could be wrong, but: ... ... then so is the man page. Apparently. Cheers, -- Carlos Sousa http://vbc.dyndns.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Tool for sending Windows popup messages?
On Mon, 25 Aug 2003, Joe Emenaker wrote: Is there some Debian tool that would let me specify an IP and a message and it would handle the delivery without making me bother with finding out the NetBIOS name, etc.? It's not what you want, but this might work. No comments on the legality of what you want to do. #!/bin/sh # grabs the pcname using nmblookup and dumps it to a file. nmblookup -A $1 | head --lines=2 | tail --lines=1 | awk '{print $1}' pcname # checks if the filesize is greater than one, which indicates something # was written to it(like the remote pcname) if [ `ls -l pcname | awk '{print $5}'` -gt 1 ]; then echo your statement on fixing | smbclient -U yourname -I $1 -M `cat name`; else echo Couldn't find servername(or Mike can't code) fi; Call it with ./filename IP, of course. It'll probably horribly break if it can't find some of this stuff, and my redirect into a file called pcname is just ugly. So's the head/tail thing, actually. You can clean it up and add your own error detection. I'm sure I also won a useless use of cat award too. I'll put it in my collection. Someone have a way to clean that up, so it can be done in one chain? Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Tool for sending Windows popup messages?
On Tue, 26 Aug 2003, Vineet Kumar wrote: -- Using this parameter will force the client to assume that the -- server is on the machine with the specified IP address and the -- NetBIOS name component of the resource being connected to will -- be ignored. From what I've played with it, you still need a name for -M, but not for other smbclient services. Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Tool for sending Windows popup messages?
* Carlos Sousa ([EMAIL PROTECTED]) [030826 14:05]: On Tue, 26 Aug 2003 10:49:44 -0700 Vineet Kumar wrote: , so I could be wrong, but: ... ... then so is the man page. Apparently. Or I just misinterpreted it. I guess it meant it ignores the netbios names for lookup purposes, but that it's still necessary in order for the host to accept the message. It says that the client will ignore the netbios name, but I guess the server won't accept the message unless the netbios name is correct. I'd bet, though, that if the host is wide open enough to receive a message this way, it's probably enough to be able to use nmblookup to get its netbios name. So the OP could use nmblookup first, and then use that with smbclient's -M, in conjunction with -I. good times, Vineet -- http://www.doorstop.net/ -- As we enjoy great advantages from inventions of others, we should be glad of an opportunity to serve others by any invention of ours; and this we should do freely and generously. --Benjamin Franklin pgp0.pgp Description: PGP signature
Tool for sending Windows popup messages?
So, I had an idea of *something* I could do to try to help fix this Sobig virus problem. Since the sender address is certainly spoofed, I figure the only way to track down the source is from the Received lines in the mail header. I figured that, if their machine is poorly-managed enough for them to get the virus, it might also still be running the Windows Messenger service (or whatever that thing is that lets other people send popup messages to your screen). The problem I'm having is *how* would I send a message like this? I tinkered around with smbclient, but it seemed to want the NetBIOS name of the machine that I was sending to, etc. Basically, all I've got is an IP address and I want to send a popup message to them. I figure that, if people out there are selling software that can do spam popups... it can't be *that* hard to do. Is there some Debian tool that would let me specify an IP and a message and it would handle the delivery without making me bother with finding out the NetBIOS name, etc.? - Joe -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Tool for sending Windows popup messages?
* Joe Emenaker ([EMAIL PROTECTED]) [030825 17:03]: Is there some Debian tool that would let me specify an IP and a message and it would handle the delivery without making me bother with finding out the NetBIOS name, etc.? Did you try smbclient's -I option? good times, Vineet -- http://www.doorstop.net/ -- If you can put it on a T-shirt, it's speech... To enjoin the T-shirts as a circumvention device is ludicrous. --Robin Gross, EFF staff attorney pgp0.pgp Description: PGP signature
Re: Tool for sending Windows popup messages?
On Mon, 25 Aug 2003 18:53:47 -0700 Vineet Kumar wrote: * Joe Emenaker ([EMAIL PROTECTED]) [030825 17:03]: Is there some Debian tool that would let me specify an IP and a message and it would handle the delivery without making me bother with finding out the NetBIOS name, etc.? Did you try smbclient's -I option? Seems to need the netbios name all the same. -- Carlos Sousa http://vbc.dyndns.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Tool for sending Windows popup messages?
* Carlos Sousa ([EMAIL PROTECTED]) [030826 07:25]: On Mon, 25 Aug 2003 18:53:47 -0700 Vineet Kumar wrote: * Joe Emenaker ([EMAIL PROTECTED]) [030825 17:03]: Is there some Debian tool that would let me specify an IP and a message and it would handle the delivery without making me bother with finding out the NetBIOS name, etc.? Did you try smbclient's -I option? Seems to need the netbios name all the same. I haven't tried it, so I could be wrong, but: -I IP-address IP address is the address of the server to connect to. It should be specified in standard a.b.c.d notation. Normally the client would attempt to locate a named SMB/CIFS server by looking it up via the NetBIOS name resolution mecha- nism described above in the name resolve order parameter above. -- Using this parameter will force the client to assume that the -- server is on the machine with the specified IP address and the -- NetBIOS name component of the resource being connected to will -- be ignored. There is no default for this parameter. If not supplied, it will be determined automatically by the client as described above. ... then so is the man page. good times, Vineet -- http://www.doorstop.net/ -- http://www.anti-dmca.org/ pgp0.pgp Description: PGP signature