A Remote Cmd Server for Android
I had the opportunity to get a new phone a few weeks ago, and like everything I get, I sat down with some docs, how-tos, and examples. The end result is a basic command server that listens a selected port and IP address assigned to the device, either the wireless address or the ppp0. There is also a basic GUI that allows the user to input and execute unprivileged OS commands on the device.
The server itself will receive commands such as put, get, exec, and a few undocumented ones. Below are some of the commands:
- “put /path/filename b64_data_string” will put a file on the remote android phone (untested)
- “get /path/filename” will get a file on the remote android phone
- “exec ” will execute a command on the remote android phone
The results of the commands all come in the form of:
- <SUCCESS,size_result:int,b64_result:string>
- <FAIL,size_result:int,b64_result:string>
Here is a link to the project for those interested: http://code.google.com/p/aremoteserver/
Posted in Uncategorized having no comments »