[APP] Remote Terminal - (Execute Any Shell Command by SMS) - Update 05/07/2013

Search This thread

RavinduSha

Senior Member
REMOTE TERMINAL
Execute any shell command by SMS

Introduction:
This app will read receiving sms and executes shell commands in them. It is very useful in many ways. You can delete your private data from your device in case you lost your phone. You can even turn off your device by this method. Every command that you execute in terminal emulators in your devices can be executed by this method. Every command is executed with super user permissions. So you have full control over your device by a simple sms. To stop any other people using this other than the owner, I added password protection for it.

Instructions:
1. Open the app (Remote Terminal)
2. Enter "null" as the current password. (case sensitive)
3. Enter anything as you wish as your password. (case sensitive)
4. Start typing a sms from any device, anywhere in the world starting with your password. (CASE SENSITIVE)
5.Enter your set of commands - each command in a NEW line
(when starting terminal session it's in the root folder)

Example: making a folder in sdcard named ravindu
Code:
yourpassword
cd sdcard
mkdir ravindu
or
Code:
yourpassword
mkdir sdcard/ravindu

6.Send the sms to your device.
7. You will be asked to grant SuperUser access to the app. Give permanent superuser permissions (only for the first time)

You don't have to waste your sms by sending 1 sms for 1 command. Send all commands in 1 sms :)

Requirements:
A ROOTED device

NOTE:
Password is case sensitive in every place.


Give me your comments and suggestions about this app. If I have any time, I will try to develop this app.


See the 2nd post for a list of some useful commands

SCREENSHOT:
Screenshot_2013-04-28-11-08-35.png


Flash it & enjoy!!!



If you like my work, hit the THANKS button!!! :)


Donate me if you think my work is valuable
 

Attachments

  • RemoteTerminal.zip
    332.3 KB · Views: 1,017
Last edited:

RavinduSha

Senior Member
List of Useful Commands

1. reboot - reboot your device
2. reboot -p - turn off your device
3. rm data/dalvik-cache/*.* - clear dalvik cache
4. rm sdcard/pictures - delete entire pictures folder from sdcard ( change the path to your desired folder to delete it )
5. rm data/system/gesture.key - reset your pattern lock ( accepts any pattern you input )
6.rm data/system/password.key - reset your password lock


I'll update the list when I get more free time :)
 
Last edited:

alanasgari86

Member
Jul 1, 2008
36
5
question....

Is it compatible with gryphon secure messaging platform? Or does it listen to default SMS app only...?

I use gryphon a lot, and would prefer to use it to send the commands; just as an extra precaution...
 

dynamic503

Senior Member
Dec 19, 2010
366
53
when you loss your phone, your SIM card was replaced! and you can not know Phone number, can we control by 3G or wifi?
:D:D:D
and can you give us all command of emulator?:D:D:D
 

abcdjdj

Senior Member
May 28, 2012
1,732
3,228
Thane
when you loss your phone, your SIM card was replaced! and you can not know Phone number, can we control by 3G or wifi?
:D:D:D
and can you give us all command of emulator?:D:D:D

By default the only available commands for the emulator are :-
Code:
echo -- prints text to stdout.
set -- sets shell variables
export -- makes shell variables available to command-line programs
cd -- change the current directory.
pwd -- print name of the current directory.

But if you have busybox installed on your device then you have many more commands like cp, rm and many more Linux commands;)

@RavinduSha- Nice work bro. Happy programming:D
 
Last edited:
  • Like
Reactions: richard.elgh

jkok

Senior Member
Jan 26, 2013
262
169
super user request?

(deleted post as i figured out i had a setting on go sms pro interfeering with it opps both apps work now)
 
Last edited:

RavinduSha

Senior Member
By default the only available commands for the emulator are :-
Code:
echo -- prints text to stdout.
set -- sets shell variables
export -- makes shell variables available to command-line programs
cd -- change the current directory.
pwd -- print name of the current directory.

But if you have busybox installed on your device then you have many more commands like cp, rm and many more Linux commands;)

@RavinduSha- Nice work bro. Happy programming:D
thanks bro!
 
  • Like
Reactions: Shadhin Techs

mdsohail98

Senior Member
Dec 25, 2012
63
3
How should i turn off my phone using shell command?
Which command should i use?

Sent from my SK17i using xda premium
 

mdsohail98

Senior Member
Dec 25, 2012
63
3
Thanx.....
Can you provide me commands for better use of this app because i want some new commands apart from cd,cp,mkdir,dd,df,rm,mv.....
Is there any command from which I can open an app which is installed in my phone....

Sent from my SK17i using xda premium
 

RavinduSha

Senior Member
Thanx.....
Can you provide me commands for better use of this app because i want some new commands apart from cd,cp,mkdir,dd,df,rm,mv.....
Is there any command from which I can open an app which is installed in my phone....

Sent from my SK17i using xda premium

Bro there are many guides for using shell commands. Just search.

I can give the code for opening an app. For that you have to provide me the AndroidManifest.xml file from that package. If it's a stock app tell me the package name.
(AndroidManifest.xml file is needed for identifying the package name and the main activity)
 

mdsohail98

Senior Member
Dec 25, 2012
63
3
Can you try for stock walkman app??
I want to play music remotely.....:D

Sent from my SK17i using xda premium
 

mdsohail98

Senior Member
Dec 25, 2012
63
3
Hey thanx allot.....
Can do me one more favour????
I just want to know, how to delete messages using remote terminal?????
Please do me this as a last favour :)

Sent from my SK17i using xda premium
 

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    REMOTE TERMINAL
    Execute any shell command by SMS

    Introduction:
    This app will read receiving sms and executes shell commands in them. It is very useful in many ways. You can delete your private data from your device in case you lost your phone. You can even turn off your device by this method. Every command that you execute in terminal emulators in your devices can be executed by this method. Every command is executed with super user permissions. So you have full control over your device by a simple sms. To stop any other people using this other than the owner, I added password protection for it.

    Instructions:
    1. Open the app (Remote Terminal)
    2. Enter "null" as the current password. (case sensitive)
    3. Enter anything as you wish as your password. (case sensitive)
    4. Start typing a sms from any device, anywhere in the world starting with your password. (CASE SENSITIVE)
    5.Enter your set of commands - each command in a NEW line
    (when starting terminal session it's in the root folder)

    Example: making a folder in sdcard named ravindu
    Code:
    yourpassword
    cd sdcard
    mkdir ravindu
    or
    Code:
    yourpassword
    mkdir sdcard/ravindu

    6.Send the sms to your device.
    7. You will be asked to grant SuperUser access to the app. Give permanent superuser permissions (only for the first time)

    You don't have to waste your sms by sending 1 sms for 1 command. Send all commands in 1 sms :)

    Requirements:
    A ROOTED device

    NOTE:
    Password is case sensitive in every place.


    Give me your comments and suggestions about this app. If I have any time, I will try to develop this app.


    See the 2nd post for a list of some useful commands

    SCREENSHOT:
    Screenshot_2013-04-28-11-08-35.png


    Flash it & enjoy!!!



    If you like my work, hit the THANKS button!!! :)


    Donate me if you think my work is valuable
    4
    List of Useful Commands

    1. reboot - reboot your device
    2. reboot -p - turn off your device
    3. rm data/dalvik-cache/*.* - clear dalvik cache
    4. rm sdcard/pictures - delete entire pictures folder from sdcard ( change the path to your desired folder to delete it )
    5. rm data/system/gesture.key - reset your pattern lock ( accepts any pattern you input )
    6.rm data/system/password.key - reset your password lock


    I'll update the list when I get more free time :)
    1
    U are determined to make some remote apps...
    Good going..

    Sent from my Sk17i using xda premium
    1
    keep it up bro!!! I love that GUI :)
    1
    when you loss your phone, your SIM card was replaced! and you can not know Phone number, can we control by 3G or wifi?
    :D:D:D
    and can you give us all command of emulator?:D:D:D

    By default the only available commands for the emulator are :-
    Code:
    echo -- prints text to stdout.
    set -- sets shell variables
    export -- makes shell variables available to command-line programs
    cd -- change the current directory.
    pwd -- print name of the current directory.

    But if you have busybox installed on your device then you have many more commands like cp, rm and many more Linux commands;)

    @RavinduSha- Nice work bro. Happy programming:D