Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Original author here. An example would be `{ dd bs=1 count=0 skip=1234; myprogram; } < file`. This is similar to C `lseek(0, 1234, SEEK_CUR); execve("myprogram", ...);`

It's not something you'd realistically use, but it's better to be limited by imagination than tooling.



Ah, I get it! What I initially thought you meant was creating a process from an ELF embedded further into the file. For example lseek-ing into a tar file and somehow execve-ing an included binary. Not I wonder if Linux you allow me to run /dev/stdin...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: