Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/usr/bin/perl
  2.  
  3. $user = "george";
  4.  
  5. $filename = sprintf("/tmp/filelist.%d%d%d%d", int(rand(1000000)), int(rand(1000000)), int(rand(1000000)), int(rand(1000000)));
  6.  
  7. # I hate George! He's so stupid he stored all his files in /var/tmp and he won't notice that I'm deleting all his files buahahaha
  8.  
  9. system "find /var/tmp/george -perm 777 -type f > $filename";
  10.  
  11. open IN, "$filename";
  12.  
  13. while ($line = <IN>) {
  14.     chomp $line;
  15.     print "File = $line\n";
  16.     system "rm -f $line";
  17. }
  18.  
  19. close IN;
  20.  
  21. system "rm -f $filename";