文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>关于shc的,好久没玩了

关于shc的,好久没玩了

时间:2010-11-01  来源:jayamge

用shc是很早以前的事了,今天看到群里在讨论,回顾一下:
shc的下载地址
http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.7.tgz
最常用的把shell文件编译成二进制.x文件的方法:
[root@test tmp]# shc -v -r -f check_vipckcode.sh
[root@test tmp]# file check_vipckcode.sh.x
check_vipckcode.sh.x: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
这与以C源码编译出来的可执行文件没什么区别,因此,你很难判定它源代码是C还是Shell写出来的,除非用特定的工具:
[root@test tmp]# file check_http
check_http: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped

另外一种方式是采用静态编译:
CFLAGS=-static shc -r -f check_vipckcode.sh
[root@test tmp]# file check_vipckcode.sh.x
check_vipckcode.sh.x: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, statically linked, stripped
file命令的显示结果明显不一样了。

相关阅读 更多 +
排行榜 更多 +
三楼跳跃广告拦截器app下载

三楼跳跃广告拦截器app下载

生活实用 下载
mcpro相机下载最新版

mcpro相机下载最新版

图像拍照 下载
红桃影视免费最新版下载

红桃影视免费最新版下载

趣味娱乐 下载