arget13 / DDexec

A technique to run binaries filelessly and stealthily on Linux by "overwriting" the shell's process with another.
GNU General Public License v3.0
791 stars 83 forks source link

how to work in sh? #16

Open houjingyi233 opened 1 year ago

houjingyi233 commented 1 year ago

Hello, my environment do not have bash but only sh(just like sh in ubuntu), and sh do not support command:

exec 0< <(printf $data)

It will say:Syntax error: redirection unexpected

What should I do? Thanks for your help.

arget13 commented 11 months ago

Yeah, there are a couple of things I tried to port to POSIX shells but just couldn't, the reasons I can't remember right now. As I say in the README only supported shells are bash, zsh and ash (busybox). I'm not sure if it will be possible to make it work on dash or any other "bare" POSIX shell. Maybe in the future.

This is indeed a serious problem because I really want this to run on Android, and Android's shell, mksh, is pure trash. I hope I will be able to make it.