You are not logged in.
Pages: 1
I don't have one of those fancy phones with ssh or internet capabilities (that i feel like paying for), but i wanted to be able to control my computer remotely from my phone. My phone can text to an email address that my computer can access. So i made a bash script that searches through emails for special SMS commands.
#! /bin/bash
$(grep smscmd path/to/Inbox | tail -1 | cut -d\ -f 3-)
So if i emailed myself the text:
smscmd mplayer videos/*
It will execute that. Now my phone is a fancy remote
Right now i have it set up to run in a thunderbird filter that checks if it's from my phone before executing. Any security improvements to stop random people from accessing my shell would be appreciated. Or anything else
Offline
I wrote the same program, but used python. I include a password within the first digits of the message. The script breaks off x digits from the beginning of the message, and will not parse the command unless the password matches.
Last edited by Varreon (2009-09-11 00:52:22)
Offline
That's pretty cool. What kind of thing would you use it for though? pacman -Syu ?? lol
Offline
That's pretty cool. What kind of thing would you use it for though? pacman -Syu ?? lol
rtorrent porn
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
haha. I'm not sure. What would be useful? Would it be worthwhile to make it reply with the stdout? then i could get information stored on my computer from anywhere. I don't really have anything I would want to access from my phone though.
Or i could get it to picture and video message me porn...
Offline
Or if someone else in your house uses the computer you can make it pop up porn while they're at it...they won't know what hit 'em
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
echo "She would still be alive now" | xmessage -center -file -
Offline
echo "She would still be alive now" | xmessage -center -file -
Offline
Also have a look at the "eject" command. Quite funny when the CD tray starts to open and close at its own will.
Offline
Pages: 1