找回密码
 注册
查看: 1582|回复: 2

shc加密命令安装和检查依赖包

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-9-28 08:56:06 | 显示全部楼层 |阅读模式
[root@controller1 src]# yum provides shc
" `* I7 o0 O/ G6 V$ p5 KLoaded plugins: fastestmirror/ n: A, W+ P" @* @6 l$ s9 |
Loading mirror speeds from cached hostfile
  P, k# m0 Z- C * base: mirrors.163.com6 p( c8 W9 @! u) a6 j4 h
* epel: mirrors.bfsu.edu.cn( L( [2 P6 O$ A9 M
* extras: mirrors.bupt.edu.cn9 S: u; ~* w, d0 P0 c/ I
* updates: mirrors.bupt.edu.cn
3 M1 X/ k' K" ]shc-4.0.3-1.el7.x86_64 : Shell script compiler
" |4 F6 @, i) p' [2 P6 \  A9 TRepo        : epel
4 v: X* P3 }. k$ O! e; ^7 p
6 c& i7 W  u  O; u% Q- \: R[root@controller1 src]# yum install -y shc.x86_64
) c# P& f* Y$ `  N, l4 rLoaded plugins: fastestmirror" p. Z3 V2 F: n. A, E
Loading mirror speeds from cached hostfile
- d% n% q/ J, H" U% O7 Mepel/x86_64/metalink                                                                                                                        | 7.0 kB  00:00:00       \6 u3 z8 }& i- V. Q  ~: d, |
* base: mirrors.163.com8 N  I& C; n* |
* epel: mirrors.bfsu.edu.cn" E% L# j$ P! j1 p( b" E
* extras: mirrors.bupt.edu.cn
% j2 l5 q7 d4 w  s3 K4 z, y( ~ * updates: mirrors.bupt.edu.cn
* g! Q( p  ?' `base                                                                                                                                        | 3.6 kB  00:00:00     6 _6 g* m/ |9 S2 h8 ~

; F! m/ H4 c) r. t- cRunning transaction
) g3 q- N1 S7 e: n0 X( t  Installing : shc-4.0.3-1.el7.x86_64                                                                                                                          1/1 + ]7 l9 m1 }" y) A
  Verifying  : shc-4.0.3-1.el7.x86_64                                                                                                                          1/1
5 g0 [' V5 x  K+ n+ n2 eInstalled:7 f7 W) _5 E! i6 Q% F2 A$ m
  shc.x86_64 0:4.0.3-1.el7                                                                                                                                         
$ y! F$ l( {" q3 HComplete!' u! e' ]: ]9 k: q

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-9-28 09:14:42 | 显示全部楼层
文件使用shc加密2 |0 K3 G/ \  ]  l9 W8 ^1 ?* S/ {
[root@controller1 src]# shc -r -f xunjian.sh
& T# b) `/ B/ [7 J, G9 P, F# n' n[root@controller1 src]# ./xunjian.sh.x   即可执行

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-9-28 09:17:00 | 显示全部楼层
注意:要有-r选项, -f 后跟要加密的脚本名。
. h9 \4 L% ]- f; h6 j% o5 z& r
3 R0 E* O2 j6 n4 s! Z运行后会生成两个文件,xunjian.sh.x 和 xunjian.sh.x.c
% H2 X* r+ x/ b' L# ]
) f( N3 u  O3 k8 m! }2 \xunjian.sh.x是加密后的可执行的二进制文件./ Z# |) i1 C4 }/ P+ q& T8 w
. B/ `3 D/ x" h. J
./xunjian.sh.x 即可运行.) l. z+ `; S& P

: }+ C9 f: \6 P9 ^- v8 Cxunjian.sh.x.c是生成xunjian.sh.x的原文件(c语言)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 04:07 , Processed in 0.016521 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表