View Single Post
Old February 20th, 2011, 01:27 PM   #14 (permalink)
JMC31337
Junior Member
 
Join Date: Feb 2011
Posts: 16
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay heres how it works
Create a windows notepad shell script
testx.sh
with
#!/bin/bash
echo "123123123">testx.txt

heres the hex output showing the windows CARRIAGE RETURN + NEWLINE (0d0a)
23 21 2f 62 69 6e 2f 62 61 73 68 0d 0a 65 63 68 6f 20 31 32 33 31 32 33 31 32 33 3e 2f 64 61 74 61 2f 6c 6f 63 61 6c 2f 74 65 73 74 78 2e 74 78 74 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00

now plug in the USB CHORD and setup USB developement debug mode in the settings
place that testx.sh into /sdcard
UNPLUG THE USB CHORD
su
cp /sdcard/testx.sh /data/local
PLUG THE USB CHORD BACK IN
goto /data/local
sh testx.sh
and you will have a file testx.txt with a hidden ?
JMC31337 is offline  
Last edited by JMC31337; February 20th, 2011 at 01:43 PM.
Reply With Quote