Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1634324
  • 博文数量: 135
  • 博客积分: 2820
  • 博客等级: 少校
  • 技术积分: 2544
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-16 13:33
文章分类

全部博文(135)

文章存档

2015年(1)

2014年(8)

2013年(16)

2012年(43)

2011年(56)

2010年(11)

分类: LINUX

2013-09-22 10:31:51


在我们工作生产过程中使用到shell ,shell脚本是可读写,可执行的,但是这样会泄露敏感信息,用户名,密码等等。

这样我们就可以用shc来加密我们写的 shell.

过程是这样的:

[manzuo@svn src]# wget ~frosal/sources/shc-3.8.6.tgz


[root@svn src]# tar xzvf shc-3.8.6.tgz 
shc-3.8.6/CHANGES
shc-3.8.6/Copying
shc-3.8.6/match
shc-3.8.6/pru.sh
shc-3.8.6/shc-3.8.6.c
shc-3.8.6/shc.1
shc-3.8.6/shc.README
shc-3.8.6/shc.html
shc-3.8.6/test.bash
shc-3.8.6/test.csh
shc-3.8.6/test.ksh
shc-3.8.6/makefile
[root@svn src]# cd shc-3.8.6


[root@svn shc-3.8.6]# mkdir -p /usr/local/man/man1
[root@svn shc-3.8.6]# make
[root@svn shc-3.8.6]# make strings
[root@svn shc-3.8.6]# make install
*** ?o you want to continue? yes  #输入yes




使用方法:
[root@svn test]# shc -r -f take.sh   
[root@svn test]# ls
take.sh  take.sh.x  take.sh.x.c


其中take.sh.x 是加密过的执行文件。

更多用法请man shc 
阅读(4694) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~