I am answering to your doubt in the first answer mentioned by Andrey.
Try the codes given by him.
adb push exename /data/bin/exename
It is used to push the binary file named 'exename' to the execuatable path on Android.
adb shell chmod 777 /data/bin/exename
This line is not required in linux. Its used to change the mode.
The first 7 stands for 'user', next for 'group' and the last for 'other'.
Changing the numbers would CHange the MODe of each group mentioned above.
7 represents - read, write and execute.
6 represents - read, write and NO execute.
adb shell /data/bin/exename
This code is used to execute the binary. Which inturn means that its being used in the Terminal.