maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] push2sail profofconcept (https://talk.maemo.org/showthread.php?t=92132)

mikecomputing 2013-12-23 14:29

[Announce] push2sail profofconcept
 
1 Attachment(s)
I really don't know if I should publish this app on the store.

Not sure people need it. This app is just a very simple app but useful if you want to send small text to your Jolla from your laptop or even localy to clipboard in shell using localhost 4444. The text sent from laptop is stored in the clipboard so you easy can insert it in a textfield, browser url or whatever suited...

I just wrote it because I wanted to not tap the very long password used on my SMTP server.

Message are sent over UDP and there is no security et all so don't run this app when not on a safe network.

So atm this is just a prof of concept.

No UI done on PC side just a little shell script:

to send a message to phone just cut and paste below code and save as sendsail.py on your laptop.


Code:

#!/usr/bin/python                                                                                                                                                 
import socket                                                                                                                                                     
import sys                                                                                                                                                       
phoneip = "192.168.1.130"                                                                                                                         
if len(sys.argv) < 2:                                                                                                                                             
    print ("Meeh, what do you want to send?")                                                                                                                                         
else:                                                                                                                                                             
    data = sys.argv[1]                                                                                                                                           
                                                                                                                                                                 
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)                                                                                                             
s.sendto(data, (phoneip, 4444))
s.close()

And the phone app:

http://7b4.se/sailfish/default/downl...9363ebeb555c73

Ideas I may implement:

encrypt data with AES256 before send it.

Screenshot:


All times are GMT. The time now is 16:37.

vBulletin® Version 3.8.8