How do i send a message to a specific IP? Internal and external to my network? Is there a program to do this or any commands i can use? I would prefer a GUI for a program but a command-line program is just fine.
Thanks for any help
How do i send a message to a specific IP? Internal and external to my network? Is there a program to do this or any commands i can use? I would prefer a GUI for a program but a command-line program is just fine.
Thanks for any help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That depends a lot on where you want to see it on the receiving side.
You can’t just send data to a box and have it get through the firewall,
though there are a million ways to get data on a box. For example, you
could send “message” in files that were copied via SSH, or Samba, or
NFS, or whatever. A process on the destination could watch for those
files and process them as received. You could also send commands
directly via SSH that could go into syslog, or the commands could create
files, run processes, etc. An example, sending to syslog on the remote
machine via an SSH connection, would look like the following:
ssh user@remotebox ‘logger “message goes here”’
Good luck.
DrEaMeR23 wrote:
> How do i send a message to a specific IP? Internal and external to my
> network? Is there a program to do this or any commands i can use? I
> would prefer a GUI for a program but a command-line program is just
> fine.
>
> Thanks for any help
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIwVYJ3s42bA80+9kRAt0XAJ91EThm0ygPl0X6HPC+ylEw8aMivQCgiOAE
KVs4nWrCFbg/VFx+oZ2k4+Q=
=F3b0
-----END PGP SIGNATURE-----
DrEaMeR23 wrote:
> How do i send a message to a specific IP? Internal and external to my
> network? Is there a program to do this or any commands i can use? I
> would prefer a GUI for a program but a command-line program is just
> fine.
netcat(1) can do that.
I just want to send a message to a specific IP address, which somehow shows up on-screen. Without other software on the target machine if possible.
netcat? how do i use this what is the most basic syntax for sending a message?
Thanks
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Netcat is basically a program to bind to a port and send/receive data
over it. Assuming you create an allowance for your desired port in the
firewall on the receiving side you could set netcat to listen on that
port and just have an xterm always open showing the output of whatever
comes across the wire. Using UDP may work even better since it is
connectionless and netcat will not close when the source closes the
connection (requiring a loop on the receiving side to continually
restart netcat). This all still requires you to somehow start netcat
upon login and keep viewing the window (shell) in which it is running to
get messages. You could also have netcat dump anything it receives to a
file and then have another process read that file at intervals and do
something with the contents with some basic scripting.
Open port 8989 on your receiving box in the Firewall and run the
following command:
netcat -u -l -p 8989
On the source box use the following command:
echo ‘message goes here’ | netcat -u <ipAddressOfDestination> 8989
Note that using UDP means you are not guaranteed things will work, but
it solves the netcat closing after each “connection” problem.
Good luck.
DrEaMeR23 wrote:
> I just want to send a message to a specific IP address, which somehow
> shows up on-screen. Without other software on the target machine if
> possible.
>
> netcat? how do i use this what is the most basic syntax for sending a
> message?
>
> Thanks
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIwXP13s42bA80+9kRAod2AJ4w9BsdwrzjPGZEVD+iqpEnfk+RsgCffE04
1XxX2Fvbmfw4B2n4H3EYGF4=
=GPOm
-----END PGP SIGNATURE-----
OK ill try that. Is there any way i can send a message without opening a port on the target computer?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Directly? Obviously not. Indirectly? Sure… open a port on the
sending computer and host a web server there, then have the receiving
computer parse that webpage once in a while. Open a port on neither by
pushing a page to a central server from which the destination can pull
the page and parse. There are a million ways to do what you need, but
the constraints will govern the options you find acceptable. Having
them all up front would be useful.
Good luck.
DrEaMeR23 wrote:
> OK ill try that. Is there any way i can send a message without opening a
> port on the target computer?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIwXyx3s42bA80+9kRAtSSAJ9aGmVwPxKcNpYkpGcMZDKwGSZSGACfUoXr
tjJWIvJ1QemY4oQdVFtQP+o=
=9gTT
-----END PGP SIGNATURE-----
> I just want to send a message to a specific IP address, which somehow
> shows up on-screen. Without other software on the target machine if
> possible.
you just have to use the same software that they use when making all
those Hollyweird movies…
in other words: ain’t gonna happen, except in the movies!!
and, the CIA can see through walls and ceilings anywhere on
earth…AND, have a database with the engineering drawings of EVERY
building and city sewer system on the planet—right!!!
–
DenverD (Linux Counter 282315) via NNTP, Thunderbird 2.0.0.14, KDE
3.5.7, SUSE Linux 10.3, 2.6.22.18-0.2-default #1 SMP i686 athlon
On Fri, 2008-09-05 at 15:06 +0000, DrEaMeR23 wrote:
> How do i send a message to a specific IP? Internal and external to my
> network? Is there a program to do this or any commands i can use? I
> would prefer a GUI for a program but a command-line program is just
> fine.
There is no (very insecure) default service running on all platforms
to receive messages (well… perhaps with the exception of certain
versions of Windows).
Sorry.
I have used the winpopup feature of Windows to alert some
stupid people that their machines are infected with a virus
before. But that is insecure… the fact that I sent them
a message is proof of that.
DrEaMeR23 wrote:
> I just want to send a message to a specific IP address, which somehow
> shows up on-screen. Without other software on the target machine if
> possible.
That sounds rather suspicious don’t you think? Something like the
Windows messenger spam hacks.
It’s not going to happen, even Windows PC do not work like that (anymore)…
But if you’re on a Linux system with others, you can always[li] use[/li]write(1) or wall(1) to send a message.
[li] Except when the user has set ‘mesg n’[/li]
LittleRedRooster wrote:
> DrEaMeR23 wrote:[color=green]
>> I just want to send a message to a specific IP address, which somehow
>> shows up on-screen. Without other software on the target machine if
>> possible.
>
> That sounds rather suspicious don’t you think? Something like the
> Windows messenger spam hacks.
> It’s not going to happen, even Windows PC do not work like that (anymore)…
>
> But if you’re on a Linux system with others, you can always[li] use[/li]> write(1) or wall(1) to send a message.
>
> [li] Except when the user has set ‘mesg n’[/color][/li]I think the OP is looking for something similar to net send message or
http://blog.netnerds.net/2007/05/vista-net-send-is-gone-use-msg-console-instead/
on vista.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Perhaps it would be best to take a couple steps back and get a business
reason for this. What is the end goal? How will the data be used?
Will a user be involved?
Good luck.
69_rs_ss wrote:
> LittleRedRooster wrote:[color=green]
>> DrEaMeR23 wrote:[color=darkred]
>>> I just want to send a message to a specific IP address, which somehow
>>> shows up on-screen. Without other software on the target machine if
>>> possible.
>>
>> That sounds rather suspicious don’t you think? Something like the
>> Windows messenger spam hacks.
>> It’s not going to happen, even Windows PC do not work like that
>> (anymore)…
>>
>> But if you’re on a Linux system with others, you can always[li] use[/li]>> write(1) or wall(1) to send a message.
>>
>> [li] Except when the user has set ‘mesg n’[/color][/li]> I think the OP is looking for something similar to net send message or
> http://blog.netnerds.net/2007/05/vista-net-send-is-gone-use-msg-console-instead/
> on vista.[/color]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIwfo/3s42bA80+9kRAma4AJ90hOZUOCcfb8KEZODoWBWeNzUzxACeMg5v
DFBvor3YR/wXzpItL0xFIhE=
=1mB/
-----END PGP SIGNATURE-----
Well my main plan was to send a message to insecure access points to tell the owners that anyone could use there wifi within range. But another use would be to send messages from one of my Linux computers to my Linux laptop, But i don’t want to be messing around with changing open ports and things. The one i really want answering is how to send a message from a Linux computer to my Linux laptop on the same network. The other idea was just an idea to help out owners of access points so they don’t have there identity stolen or whatever you can do with access to someones Internet. I must stress, this is not for illegal or bad use. It is for helping my community and my own education of Linux.
Thanks anyway
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Well, a copule thoughts come to mind. First, you could have your own
computers on your own network just send you an e-mail to your normal
e-mail address by using the ‘mail’ command. You could get that from
anywhere, of course, so you wouldn’t even need to be on the network, and
with applications that watch your e-mail to tell you when you have some
(I think they all do this now, or they seem to) it is probably nice and
quick.
Another option is you could open up syslog on your laptop, lock it with
a firewall so only certain IP addresses can send data to it (those would
be your other servers) and then just forward syslog data to your laptop
and when you were on the network you would receive it. When you
weren’t, you wouldn’t. You could then have a script watch for lines in
your own ‘/var/log/messages’ file from those boxes.
Anyway, there are options… when it comes to alerting people who have
open wireless networks it’s a bit trickier since, hopefully, they aren’t
just listening for data (that’s a bad idea in any environment when
accepted from just anybody with a TCP/UDP/etc. connection… see
microsoft for details). Sometimes the name of the access point may help
you find the owner but not always unless you know the residents of the
area (or at least their wireless hardware) intimately. Personally I
would just avoid this category since as soon as you try to help you are
going to try to help out some lawyer with a deluded sense of security,
privacy, and the law who will take you to court for ‘hacking’ his
network, trespassing, and sending threatening messages (despite your
obviously-good intentions… it’s all about interpretation).
Good luck.
DrEaMeR23 wrote:
> Well my main plan was to send a message to insecure access points to
> tell the owners that anyone could use there wifi within range. But
> another use would be to send messages from one of my Linux computers to
> my Linux laptop, But i don’t want to be messing around with changing
> open ports and things. The one i really want answering is how to send a
> message from a Linux computer to my Linux laptop on the same network.
> The other idea was just an idea to help out owners of access points so
> they don’t have there identity stolen or whatever you can do with access
> to someones Internet. I must stress, this is not for illegal or bad use.
> It is for helping my community and my own education of Linux.
>
> Thanks anyway
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIwrwL3s42bA80+9kRAvcXAJwO2hNQx7b2UpdSpEauH54BaXtgKgCfbrh3
MtjNFMI4LCtWb/4sSNnYbTs=
=UOai
-----END PGP SIGNATURE-----
Oh, OK. Since i last posted i found out about kdialog. This sends pop ups to all users logged on. Would it be possible to use kdialog to send a pop up to other computers on my network? Otherwise, would my laptop receive pop ups when connected via SSH?
Thanks anyway.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sure… you could have your other machines SSH into your box using
public/private key exchanges and then execute the command you desire to
show up for all users on your system, or if configurable, to just you.
This may end up being more work than the ‘mail’ suggestion, though it
would be more-immediate and only applicable when you were on the network
which may be desirable to you. Anyway, test it out manually and if it
has the results you desire then add the automation to make it perfect.
If you get the chance post back what you can for others who may have
similar inclinations.
Good luck.
DrEaMeR23 wrote:
> Oh, OK. Since i last posted i found out about kdialog. This sends pop
> ups to all users logged on. Would it be possible to use kdialog to send
> a pop up to other computers on my network? Otherwise, would my laptop
> receive pop ups when connected via SSH?
>
> Thanks anyway.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIwtf53s42bA80+9kRAkoTAJ9bu703FGx4xLzs7GsuR4ugOkG3wwCeL+RQ
Z8ueJxaj9F1S25e0EY7zkNY=
=rGgk
-----END PGP SIGNATURE-----
I can’t try it with Suse as it doesn’t install on my laptop. Ill just have to hope i can use ssh with ark linux. Apparently that is the only distro that will work on my laptop (Acer Aspire 1355LC) Ill try tomorrow and post with my results.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
If one distro works but another does not it’s probably just a driver
problem… Linux is a kernel and all distributions use, more or less,
the same kernel. They may ship more/less drivers along with them or may
have different ways of doing their installs but this it is unlikely any
one distribution is exclusively available to a specific set of hardware.
Anyway, SSH comes with almost every OS on the planet so you should be
fine using SSH w/ArkLinux.
Good luck.
DrEaMeR23 wrote:
> I can’t try it with Suse as it doesn’t install on my laptop. Ill just
> have to hope i can use ssh with ark linux. Apparently that is the only
> distro that will work on my laptop (Acer Aspire 1355LC) Ill try tomorrow
> and post with my results.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIyu/I3s42bA80+9kRAsgmAJ4oGY84bfInai+DxNChNBJFha59BQCeID5n
PSgmvooA121DYJr3R+POh5I=
=vkJT
-----END PGP SIGNATURE-----