Help for this page

Select Code to Download


  1. or download this
        $user=$ARGV[1]  # user the jr admin wants to change
        if ($user ne "root"){
    ...
    
        (**NOTE: this is here in WAY simplistic form & theory just to
            illustrate the point)
    
  2. or download this
        
        page.cgi?page=1
    
  3. or download this
        page.cgi?page=page.cgi%00      (%00 == '\0' escaped)
    
  4. or download this
        $file="/etc/passwd\0.txt.whatever.we.want";
        die("hahaha!  Caught you!) if($file eq "/etc/passwd");
        if (-e $file){
            open (FILE, ">$file");}
    
  5. or download this
        
        $insecure_data=~s/\0//g;
    
  6. or download this
    s**lil*;  $*=join'',sort split q**;  s;.*;grr; &&s+(.(.)).+$2$1+; $; =
    qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)