Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Receive net send-like messages from windows
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 832
Location: Villach, Austria

PostPosted: Tue Apr 25, 2017 7:52 am    Post subject: Receive net send-like messages from windows Reply with quote

Hello everyone,

I have this task to solve: I would like to send a text message from a windows 10 laptop to my gentoo box and this message should appear as a pop-up, a notification, whatever...
I guess I have to run samba, but from there? Has anyone tried to do something recently. It seems that the old net send command was purged from windows due to security concerns.

If possible, I would like to "touch" the windows laptop as little as possible
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Tue Apr 25, 2017 10:29 am    Post subject: Reply with quote

Or you could use Windows' powershell to send a message, e.g., [1].


[1] https://cyber-defense.sans.org/blog/2016/06/01/powershell-function-to-send-udp-syslog-message-packets
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 832
Location: Villach, Austria

PostPosted: Wed Apr 26, 2017 9:23 am    Post subject: Reply with quote

Thanks, but this seems to be over-complicated. In the end, I used ncat in this script:

Code:
#!/bin/sh
killall ncat >& /dev/null
ncat -k -l 13333 | while read line; do Xdialog --msgbox "$line" 6 25; done &


the windows part was more complicated because I need to receive a notification when I receive an email on outlook (and it is a corporate mail account with exchange). I configured outlook to run this code whenever an email arrives:

Code:
echo "You got an email" | ncat X.Y.Z.W 13333%
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5823

PostPosted: Wed Apr 26, 2017 10:35 am    Post subject: Reply with quote

how about...

Code:
ssh othermachine wall your-message-here
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 832
Location: Villach, Austria

PostPosted: Thu Apr 27, 2017 1:45 pm    Post subject: Reply with quote

Mmm... does not suit my need. It will print on the terminals but I might not notice it or not have a local terminal opened
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum