[Discuss] Looking for a BSD licensed compressor/decompressor like
UPX
David Wu
david.yk.wu at gmail.com
Wed May 31 20:33:46 PDT 2006
Sorry guys,
I was away for a short business trip. David is aboslutely right. P's
solution might be workable for us, but we are trying to add the AES
encryption into the whole compress/decompress process and because it is
going to be implemented on a emebbed linux alike enviroment, so a signle
binary would be the best solution. I did do some surveys and there is
currently no good solution aviable to be used. I think we are simply going
to added the AES encryption algorithm into UPX, of course the code would be
opne-sourced. As the result, the UPX generated binaries would require a
private key to authenticate to it before it can be run/load.
Thanks guys,
David
On 5/24/06, David Bronaugh <dbronaugh at linuxboxen.org> wrote:
>
> David Wu wrote:
> > Hi guys,
> >
> > Can anyone give me some suggestion on what are good BSD licensed
> > compressor/decompressor programs. The requirement is that it should
> > be able
> > to compress ELF format files. Thanx all!
> >
> > David Wu
> I'm guessing what you're talking about is a program that creates
> compressed binaries which include the decompressor... so you can do
> ./someprog and have it automatically decompress itself.
>
> Am I correct?
>
> David
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss
>
On 5/24/06, pw <p.willis at telus.net> wrote:
>
> David Wu wrote:
> > Hi guys,
> >
> > Can anyone give me some suggestion on what are good BSD licensed
> > compressor/decompressor programs. The requirement is that it should be
> > able
> > to compress ELF format files. Thanx all!
> >
> > David Wu
> > _______________________________________________
> > Discuss mailing list
> > Discuss at vlug.org
> > http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss
> >
>
>
> Hello,
>
> how about the following?
>
>
>
> #!/bin/bash
> #$1 is the input file
> #USAGE scriptname <FILE_TO_COMPRESS>
>
>
> #create the compressed binary
> bzip2 -c $1 >temp.dat
>
> SIZE=`find temp.dat -printf "%s"`
>
> #create the combined shell script and binary
> echo -e "#!/bin/bash\nUNCOMPRESSED=$1\nSIZE=$SIZE\ntail -c $SIZE $1.bin\
> > temp.bz2\n bunzip2 -c temp.bz2 > new_hello\nchmod +x\
> new_hello\nexit\n" > temp.txt
>
> cat temp.txt temp.dat > $1.bin
> chmod +x $1.bin
>
> rm temp.* -f
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss
>
More information about the Discuss
mailing list