Giter Site home page Giter Site logo

decsh's Introduction

decsh

Shell Script to decrypt SHC and SSC

Due to Android user complaining about shebang because system hiearchy problem, I recommend you to run it via shell instead of treating it as an executable

Usage : sh ./deshc.sh <shc binary>

Example : ./deshc.sh ./shcfiles.sh

Output : shc_binary.dec.sh

Multiple files are supported

SECURITY

This shell script still execute in the machine. I still configuring it by using prlimit --pid <pid> --nofile=X so it can only open the shared library. Give time with sleep 0.01 until it calls execve and then send SIGSTOP signal after that so atleast the shell script isn't running while being decrypted.

How does it work?

SHC

SHC works internally called execve to shell, it decrypted at runtimes and visible via command line args process

eg: /bin/sh -c "decrypted shell"

SSC

SSC works almost same with SHC except the shell reads from file descriptor 3. It visible via fd number 3 on the process

Read my Indonesian writeup here https://medium.com/@kaw411gh0st/membongkar-program-shc-encrypted-shell-script-1d945b76080b

decsh's People

Contributors

kawaii-ghost avatar

Stargazers

Richard Yu avatar Thomas Strömberg avatar  avatar LoveDoLove avatar XDTunnel avatar  avatar eraselk avatar CallMESuper avatar Saulius Krasuckas avatar Asuka Minato avatar Ciel's Valdimne avatar Aldo Adirajasa Fathoni avatar Luis Adha avatar ज्योति द्विवेदी avatar

Watchers

 avatar

decsh's Issues

Not running on termux

./deshc.sh: 4: playx102-bin: not found
./deshc.sh: 6: kill: No such process

cat: /proc/14416/cmdline: No such file or directory
./deshc.sh: 8: kill: No such process

Isi File $arg.dec.sh kosong

Gw mendapati masalah pada device android dengan menggunakan aplikasi termux sebagai terminalnya, yaitu pada saat gw selesai mengeksekusi scriptnya lalu gw check isi file $arg.dec.sh kosong. Mohon bantuannya

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.