Advertisement
AssazziN

Show all hidden folder in handy drive

Mar 19th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.56 KB | None | 0 0
  1. print "\n [+] Show hidden folders in root partition (Windows)\n [+] Enter name's partition (Ex. G:) :  ";
  2. chomp($drive=<STDIN>);
  3. unless ($drive) { exit; }
  4. unless ($drive=~/:$/) { $drive.=':'; }
  5. @a=`dir /A $drive`;
  6. chomp(@a);
  7. $count=0;
  8. foreach (@a) {
  9.     if ($_=~/<DIR>/) {
  10.         $folder[$count]=$_;
  11.         $count++;
  12.     }
  13. }
  14.  
  15. foreach (@folder) {
  16.     $_=~s/([^~]*?)<DIR>\s\s\s\s\s\s\s\s\s\s//ig;
  17.     system("attrib -s -h -r \"$drive$_\"");
  18.     print "$_\n";
  19. }
  20.  
  21. print "\n\n      Success !\n\n Script by AssazziN\n     22/03/2011\n";
  22. #http://comfreedom.blogspot.com
  23. <STDIN>;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement