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

Stuck, what's the problem? #1

Closed
YMXZ opened this issue Jun 28, 2016 · 2 comments
Closed

Stuck, what's the problem? #1

YMXZ opened this issue Jun 28, 2016 · 2 comments

Comments

@YMXZ
Copy link

YMXZ commented Jun 28, 2016

[root@VM_169_52_centos ~]# ./unsh.sh vpn7.sh.x -o sbw
which: no gcc in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)


| | | | / | | | |
| | | |
__ \ --.| |_| | ___ | | | | '_ \--. \ _ |/ |
| |_| | | | /**/ / | | | (
_
/|| |**/| |/___|

--- UnSHc - The shc decrypter.

--- Version: 0.5

UnSHc is used to decrypt script encrypted with SHc
Original idea from Luiz Octavio Duarte (LOD)
Updated and modernized by Yann CAM

  • SHc : [http://www.datsi.fi.upm.es/~frosal/]

- UnSHc : [https://www.asafety.fr/unshc-the-shc-decrypter/]

[] Input file name to decrypt [vpn7.sh.x]
[+] Output file name specified [sbw]
[+] ARC4 address call defined : [0x400c10]
[
] Extracting each args address and size for the 14 arc4() calls...
[0] Working with var address at offset [0x611687](0x2a bytes)
[1] Working with var address at offset [0x6019e1](0x1 bytes)
[2] Working with var address at offset [0x6116b3](0xa bytes)
[3] Working with var address at offset [0x61151b](0x3 bytes)
[4] Working with var address at offset [0x611672](0xf bytes)
[5] Working with var address at offset [0x611682](0x1 bytes)
[6] Working with var address at offset [0x611701](0x16 bytes)
[7] Working with var address at offset [0x611717](0x16 bytes)
[8] Working with var address at offset [0x6116be](0x13 bytes)
[9] Working with var address at offset [0x61166e](0x1 bytes)
[10] Working with var address at offset [0x6019e0](0x1 bytes)
[11] Working with var address at offset [0x60465c](0xc14e bytes)

@yanncam
Copy link
Owner

yanncam commented Jun 29, 2016

Hello,

As I can see from your UnSHc output provided, your distribution (CentOS 6? 7?) doesn't have GCC installed.
UnSHc requires GCC to compile a C source code, then execute the binary to finally obtain the unencrypted *.sh.x source code.

So you need to install GCC on your server :

Sincerely,

@yanncam yanncam mentioned this issue Jun 29, 2016
Closed
@YMXZ
Copy link
Author

YMXZ commented Jun 29, 2016

Thank you very much! Problem has been solved!

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

2 participants