易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1576|回复: 2
收起左侧

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

[复制链接]
发表于 2021-9-28 08:56:06 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
[root@controller1 src]# yum provides shc  Z' o, f: E2 n3 i
Loaded plugins: fastestmirror
* P7 o: r9 [; C% f' hLoading mirror speeds from cached hostfile' I. Y* C, C- ^
* base: mirrors.163.com
7 D# p# `; f3 E) ]$ h * epel: mirrors.bfsu.edu.cn, W- r/ D& l0 [1 Y- O
* extras: mirrors.bupt.edu.cn% K! V$ B; c9 Q5 y
* updates: mirrors.bupt.edu.cn
* Z# U! V4 A# f$ ?; Y' @shc-4.0.3-1.el7.x86_64 : Shell script compiler
" T; T. ]: O+ }' M+ e9 uRepo        : epel
( R. C% o5 Y, J# O7 k: B# S: w' B1 M, l/ K+ c
[root@controller1 src]# yum install -y shc.x86_64 * d/ o8 Y& Y- k+ V! y* z% \
Loaded plugins: fastestmirror
; |- Q( }9 [7 h: o0 _Loading mirror speeds from cached hostfile
. n& G$ D+ j# Q, pepel/x86_64/metalink                                                                                                                        | 7.0 kB  00:00:00     4 S- k5 v% m% A7 c0 L# E1 x7 p  C
* base: mirrors.163.com
7 ?/ d* S$ D- B3 t, B/ P * epel: mirrors.bfsu.edu.cn
+ O8 z$ Z2 h9 i * extras: mirrors.bupt.edu.cn6 N- m6 Q3 h+ i
* updates: mirrors.bupt.edu.cn
0 t$ y. n: a2 C9 u7 Q! C4 y1 Qbase                                                                                                                                        | 3.6 kB  00:00:00     
3 t2 C0 A, w0 r' R$ C# b8 S) `% B
. x# D. D: g3 Q3 g" R% V6 DRunning transaction$ y4 I% d9 q, ?
  Installing : shc-4.0.3-1.el7.x86_64                                                                                                                          1/1
+ y2 L- ~, |" \- N9 t8 S0 q  Verifying  : shc-4.0.3-1.el7.x86_64                                                                                                                          1/1
7 C$ U# ?8 R3 z" f! RInstalled:
! R/ L2 }6 P- r6 K- o( A( W+ b/ A  shc.x86_64 0:4.0.3-1.el7                                                                                                                                         + g+ [, O# Q2 ]5 ^5 q* F2 e  G2 w
Complete!5 n+ |3 l$ _9 D6 A: d
 楼主| 发表于 2021-9-28 09:14:42 | 显示全部楼层
文件使用shc加密  {, h" n# s% Y- B! d$ z  ~
[root@controller1 src]# shc -r -f xunjian.sh- D$ G% m& P$ h- k
[root@controller1 src]# ./xunjian.sh.x   即可执行
 楼主| 发表于 2021-9-28 09:17:00 | 显示全部楼层
注意:要有-r选项, -f 后跟要加密的脚本名。
* U& Q2 G/ ^% p4 e: T' o" X- {! v2 m1 x  w0 d$ P
运行后会生成两个文件,xunjian.sh.x 和 xunjian.sh.x.c
5 j1 S, l( x! J, L0 p
3 P& e3 ^/ ?% Q, W# ^! u6 k* Zxunjian.sh.x是加密后的可执行的二进制文件.  o/ J5 [/ p% v. ~; S+ z7 Z
+ q' U& J# K( t  [0 I" u
./xunjian.sh.x 即可运行.
  M- I3 F/ [5 N; o4 M" K' x* i. c
! s3 B& E+ \3 L; V" P4 [* M1 j# H! `xunjian.sh.x.c是生成xunjian.sh.x的原文件(c语言)
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 23:55 , Processed in 0.052990 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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