跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • shc 加密的 shell 脚本在运行时卡住没反应。
未分類
23 11 月 2020

shc 加密的 shell 脚本在运行时卡住没反应。

shc 加密的 shell 脚本在运行时卡住没反应。

資深大佬 : aocif23 3

hello.sh 脚本内容 #!/bin/bash echo "hello" 
./hello.sh hello 

运行 shc 并生成 hello.sh.x 和 hello.sh.x.c

shc -v -f hello.sh  shc shll=bash shc [-i]=-c shc [-x]=exec '%s' "[email protected]" shc [-l]= shc opts= shc: cc  hello.sh.x.c -o hello.sh.x shc: strip hello.sh.x shc: chmod go-r hello.sh.x 
file hello.sh.x  hello.sh.x: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=f0a0b69bf0de61bd28c34fe9d4a5c0655321bdaa, stripped 
file hello.sh.x.c  hello.sh.x.c: C source, ASCII text 

运行 hello.sh.x,然后就卡住,没反应,只能按 ctrl+c 取消

运行 hello.sh.x 卡住时,在另一个终端运行 ps -efww | grep hello.sh.x

./hello.sh.x -c exec './hello.sh.x' "[email protected]" ./hello.sh.x 

请问这是什么问题?网上看教程都是直接”shc -f 脚本名” 就可以,我自己试就不行。

大佬有話說 (2)

  • 資深大佬 : aloxaf

    看了下, 这玩意儿最终还是把代码送给 bash 执行的。那这种所谓的加密就没有任何意义……

    建议不要在没有意义的事情上浪费时间

  • 資深大佬 : 0zero0

    哈哈,只是起到了一个障眼法的作用

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具