Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to define arc4() call address #34

Closed
SmartElec opened this issue Sep 23, 2021 · 4 comments
Closed

Unable to define arc4() call address #34

SmartElec opened this issue Sep 23, 2021 · 4 comments

Comments

@SmartElec
Copy link

ubuntu18.04 amd64

cat test.sh

#!/bin/bash
echo "hello world"

shc -f test.sh #shc version 3.8.9b

$ unshc.sh test.sh.x -o dec.sh

[*] Input file name to decrypt [test.sh.x]
[+] Output file name specified [dec.sh]
[-] Unable to define arc4() call address...
@Ionnutz
Copy link

Ionnutz commented Nov 30, 2021

Same problem, I cannot even UnSHc the sample file, it must be some distro problem. Anyone any help?

@Coding-01
Copy link

的问题,我什至无法提供 UnSHc 示例文件,它一定是一些发行版问题。有人帮忙吗?
I also encountered the same problem. At first I thought there was a problem with the environment, but it was obviously wrong....
In /*//UnSHc/README.md it says: "I will not decrypt any file for people.
Issues on GitHub are only to discuss about bugs and/or improvement of the tool "UnSHc"."

1 similar comment
@Coding-01
Copy link

的问题,我什至无法提供 UnSHc 示例文件,它一定是一些发行版问题。有人帮忙吗?
I also encountered the same problem. At first I thought there was a problem with the environment, but it was obviously wrong....
In /*//UnSHc/README.md it says: "I will not decrypt any file for people.
Issues on GitHub are only to discuss about bugs and/or improvement of the tool "UnSHc"."

@yanncam
Copy link
Owner

yanncam commented Mar 11, 2022

Hello,

When you use shc to protect a script, that script is only usable on the server where the shc's encryption has been done.

To make the encrypted script usable on multiple systems (generic), shc includes the -r argument to relax the security :

-r Relax security. Make a redistributable binary

UnSHc works when the script has been encrypted with this option.

Try with the encryption command:

./shc -v -r -f myScript.sh

Then the decryption command:

./unshc.sh myScript.sh.x

Sincerely,

@yanncam yanncam closed this as completed Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants