- or download this
#!/usr/bin/perl
...
# system "/bin/echo hello";
# or
# my $out = `/bin/echo hello`;
- or download this
/* fakesys.c */
#include <unistd.h> /* for execvp */
...
/* execute original lib function */
return real_execvp(file, argv);
}
- or download this
$ gcc -D_GNU_SOURCE -fPIC -shared fakesys.c -o libfakesys.so
- or download this
$ LD_PRELOAD=./libfakesys.so perl ./685699.pl
- or download this
calling execvp("/bin/echo", ...)
hello