Re: Simple way for web to execute root shell script.

Liste des GroupesRevenir à col misc 
Sujet : Re: Simple way for web to execute root shell script.
De : fritz (at) *nospam* spamexpire-202505.rodent.frell.theremailer.net (Fritz Wuehler)
Groupes : comp.os.linux.misc
Date : 24. May 2025, 22:34:48
Autres entêtes
Organisation : dizum.com - The Internet Problem Provider
Message-ID : <554abf986e89bab937f0f6061f61122f@msgid.frell.theremailer.net>
References : 1 2
Andrew Smallshaw <andr...@sdf.org> [AS]:
AS> I have a vague memory of an "shc" package which describes itself
AS> as a shell script compiler.  In reality it isn't but it does
AS> package up the script in a directly executable format (i.e. ELF)
AS> and pass it to the shell at runtime.  That would allow a SetUID
AS> flag to work.

Nope.

The 'shc' generated executable will first decrypt/validate itself and
then launch behind the scenes whatever shell was specified as
its option (or the default shell), feeding it with the original
shell script. The kernel will still not honour the setuid bit.

'shc' was written as a way to obfuscate/ensure the integrity of
released shell scripts, it doesn't parse/understand the script
commands itself, thus it's useless in the OP's scenario.


Date Sujet#  Auteur
23 May13:26 * Simple way for web to execute root shell script.31The Natural Philosopher
23 May13:51 +* Re: Simple way for web to execute root shell script.4Pancho
23 May15:47 i+* Re: Simple way for web to execute root shell script.2Lew Pitcher
23 May16:06 ii`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
23 May16:00 i`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
23 May15:08 +* Re: Simple way for web to execute root shell script.7Lew Pitcher
23 May15:23 i+* Re: Simple way for web to execute root shell script.2Lew Pitcher
23 May16:03 ii`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
23 May16:02 i`* Re: Simple way for web to execute root shell script.4The Natural Philosopher
23 May16:24 i `* Re: Simple way for web to execute root shell script.3Marc Haber
23 May17:53 i  +- Re: Simple way for web to execute root shell script.1The Natural Philosopher
24 May01:37 i  `- Re: Simple way for web to execute root shell script.1Lawrence D'Oliveiro
23 May15:14 +* Re: Simple way for web to execute root shell script.2John-Paul Stewart
23 May16:05 i`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
23 May17:46 +- Re: Simple way for web to execute root shell script.1Eli the Bearded
23 May19:44 +* Re: Simple way for web to execute root shell script.6Rich
23 May21:44 i`* Re: Simple way for web to execute root shell script.5The Natural Philosopher
24 May03:13 i +* Re: Simple way for web to execute root shell script.2Rich
24 May09:18 i i`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
24 May08:27 i +- Re: Simple way for web to execute root shell script.1Theo
24 May13:28 i `- Re: Simple way for web to execute root shell script.1Chris Elvidge
23 May22:17 +- Re: Simple way for web to execute root shell script.1druck
24 May00:11 +- Re: Simple way for web to execute root shell script.1Lawrence D'Oliveiro
24 May09:20 +* Re: Simple way for web to execute root shell script.6The Natural Philosopher
24 May10:58 i+* Re: Simple way for web to execute root shell script.4Richard Kettlewell
24 May11:27 ii+- Re: Simple way for web to execute root shell script.1The Natural Philosopher
24 May18:55 ii`* Re: Simple way for web to execute root shell script.2Eli the Bearded
24 May19:24 ii `- Re: Simple way for web to execute root shell script.1Richard Kettlewell
24 May16:41 i`- Re: Simple way for web to execute root shell script.1Rich
24 May18:35 `* Re: Simple way for web to execute root shell script.2Andrew Smallshaw
24 May22:34  `- Re: Simple way for web to execute root shell script.1Fritz Wuehler

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal