![]() |
[Request] SHC compiled for Fremantle/Harmattan
Hey,
another little request from my side. Could any kind soul try to compile SHC (a converter from shell script to C program) for Harmattan and also Fremantle. Main purpose I want this to have is to have some shell scripts calling devel-su (hereby containing my root password as plain text). I found no other possibility to hide the text of a sh script to a user (which should have the right to execute). Here are the sources. TIA |
Re: [Request] SHC compiled for Fremantle/Harmattan
Actually, you can use this command:
Code:
echo <your-devel-su-password> | devel-su -c "<command-here>" Code:
echo rootme | devel-su -c "apt-get update" shame on me, seems, that's not what you are looking for, i was inattentive reading your post, sorry :( |
Re: [Request] SHC compiled for Fremantle/Harmattan
Quote:
|
Re: [Request] SHC compiled for Fremantle/Harmattan
Code:
#include <stdio.h> |
Re: [Request] SHC compiled for Fremantle/Harmattan
2 Attachment(s)
So I compiled the sources and I try to make the example "match" but it is obvious that you need a c compiler ("cc" command") on your phone.
You can have a try. Edit: What is your command for the c compiler? gcc? then you need to export CC=gcc |
All times are GMT. The time now is 02:35. |
vBulletin® Version 3.8.8