Help for this page

Select Code to Download


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