shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compilador de Shell


From: Heitor
Subject: Re: Compilador de Shell
Date: Fri, 02 Jan 2009 16:23:14 -0000
User-agent: eGroups-EW/0.82

Acho que o compilador que o Denis falou deve ser o shc -
http://www.datsi.fi.upm.es/~frosal/sources/shc.html

Realmente o que ele faz é o que o Julio C.N. disse:
>Quem conhece C, sabe que o cmd system chama um shell para interpretar
o cmd

Tanto é que se você acompanhar os processos com o ps da para ver os
comandos serem executados.

E só serve para esconder o script (encriptado) e colocar data de
expiração.

"...
     shc itself is not a compiler such as cc, it  rather  encodes
     and encrypts a shell script and generates C source code with
     the added expiration capability. It  then  uses  the  system
     compiler  to compile a stripped binary which behaves exactly
     like the  original  script.  Upon  execution,  the  compiled
     binary  will  decrypt and execute the code with the shell -c
     option.  Unfortunatelly, it will  not  give  you  any  speed
     improvement as a real C program would.

     shc's main purpose is to protect  your  shell  scripts  from
     modification  or  inspection.  You can use it if you wish to
     distribute your scripts but don't want  them  to  be  easily
     readable by other people.
..."

[ ]'s
Heitor.


--- Em address@hidden, jimmy <ronaldo_tgz@...> escreveu

> saudações anderson,
> 
> nesse caso só haverá ganho se o shell script for bem reescrito em
> linguagem C e compilado; transformar código shell em chamadas
> para system e compilar simplesmente ofusca o código.
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]