[英]How execute encrypted bash script file in linux
I have a bash file and I want execute it by encrypted mode. 我有一个bash文件,我想通过加密模式执行它。
by using this command I encrypted my file. 通过使用此命令,我对文件进行了加密。 now I want to run it.
现在我要运行它。 How could I do this?
我该怎么办?
openssl des3 -salt -in file.txt -out file.txt.enc -pass pass:password
use shc
script compiler to encrypt it (Blowfish), see this http://www.thegeekstuff.com/2012/05/encrypt-bash-shell-script/?utm_source=tuicool 使用
shc
脚本编译器对其进行加密(河豚),请参阅此http://www.thegeekstuff.com/2012/05/encrypt-bash-shell-script/?utm_source=tuicool
http://www.linuxsecurity.com/content/view/117920/171 http://www.linuxsecurity.com/content/view/117920/171
http://www.datsi.fi.upm.es/~frosal/ http://www.datsi.fi.upm.es/~frosal/
If you want to use DES3 you can try the answer of soFan in this: 如果您想使用DES3,可以尝试使用soFan的答案:
https://unix.stackexchange.com/questions/90178/how-can-i-either-encrypt-or-render-my-shell-script-unreadable https://unix.stackexchange.com/questions/90178/how-can-i-ever-encrypt-or-render-my-shell-script-unread
write the wrapper #!/bin/sh openssl enc -d -DES3 ... -a -in script-enc | sh -
写包装程序
#!/bin/sh openssl enc -d -DES3 ... -a -in script-enc | sh -
#!/bin/sh openssl enc -d -DES3 ... -a -in script-enc | sh -
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.