try this:

--- cat id0.c ---
int getuid(){return 0;}
int geteuid(){return 0;}
int getgid(){return 0;}
int getegid(){return 0;}
--- end cut ---

# shell (as normal user):
id -un
cc -shared id0.c -o id0
LD_PRELOAD=./id0 sh
id -un

best,
Daniel



2014-02-16 22:36 GMT+01:00  <openda...@hushmail.com>:
> Hello!
>
> Came across this on Hacker News earlier today:
>
>      New Linux userland rootkit with anti-debugging, new backdoors and
> pcap hiding
>
>     https://news.ycombinator.com/item?id=7246836
>
> And it made me wonder -- how vulnerable is OpenBSD to this type of
> stuff?
>
> Thanks!
>
> O.D.

Reply via email to