Advertisement
Guest User

Secret File

a guest
Aug 22nd, 2016
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 3.12 KB | None | 0 0
  1. @echo off
  2. mode con: cols=80 lines=8
  3. title Secret File / Version 2.0 / LeNarvalo
  4. color 0A
  5. :start
  6.  
  7. for /f "usebackq" %%f in (
  8.     `mshta "javascript:new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(new ActiveXObject('WScript.Shell').PopUp('Voulez vous cacher un dossier?',0,'Cacher un dossier!',35));close();"`
  9.         ) do (
  10.             if "%%f"=="6" (
  11.                 rem YES
  12.                 mshta "javascript:var sh=new ActiveXObject( 'WScript.Shell' ); sh.Popup( 'Veuillez mettre votre fichier sur le bureau et inscrivez son nom dans la fenetre noire!', 120, 'Consigne', 0 );close()"
  13.                 goto :hide
  14.  
  15.             ) else if "%%f"=="7" (
  16.                 rem NO
  17.                 goto :open?
  18.             ) else (
  19.                 exit
  20.             )
  21.         )
  22.  
  23. :hide
  24. cls
  25. echo Veuillez entrer le nom du fichier s'il vous plait :
  26. set /p fname=
  27. if not exist "%fname%" (
  28. rundll32 user32.dll,MessageBeep
  29. mshta "javascript:var sh=new ActiveXObject( 'WScript.Shell' ); sh.Popup( 'Fichier inconnu!', 10, 'Erreur', 64 );close()"
  30. goto :hide
  31. )
  32. attrib +h +s "%fname%"
  33.  
  34. :open?
  35. for /f "usebackq" %%f in (
  36.     `mshta "javascript:new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(new ActiveXObject('WScript.Shell').PopUp('Voulez vous ouvrir un dossier cach‚?',0,'Ouvrir un dossier!',35));close();"`
  37.         ) do (
  38.             if "%%f"=="6" (
  39.                 rem YES
  40.                 mshta "javascript:var sh=new ActiveXObject( 'WScript.Shell' ); sh.Popup( 'Inscrivez le nom du dossier dans la fenetre noire!', 120, 'Consigne', 0 );close()"
  41.                 goto :open
  42.  
  43.             ) else if "%%f"=="7" (
  44.                 rem NO
  45.                 goto :decacher?
  46.             ) else (
  47.                 exit
  48.             )
  49.         )
  50.    
  51. :open
  52. cls
  53. echo Veuillez entrer le nom du fichier s'il vous plait :
  54. set /p fnametoopen=
  55. if exist "%fnametoopen%" (
  56. goto :openfile
  57. ) else (
  58. rundll32 user32.dll,MessageBeep
  59. mshta "javascript:var sh=new ActiveXObject( 'WScript.Shell' ); sh.Popup( 'Fichier inconnu!', 10, 'Erreur', 64 );close()"
  60. goto :open
  61. )
  62.    
  63. :decacher?
  64. for /f "usebackq" %%f in (
  65.     `mshta "javascript:new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(new ActiveXObject('WScript.Shell').PopUp('Voulez vous rendre visible un dossier cach‚?',0,'D‚voiler un dossier!',35));close();"`
  66.         ) do (
  67.             if "%%f"=="6" (
  68.                 rem YES
  69.                 mshta "javascript:var sh=new ActiveXObject( 'WScript.Shell' ); sh.Popup( 'Inscrivez le nom du dossier dans la fenetre noire!', 120, 'Consigne', 0 );close()"
  70.                 goto :decacher
  71.  
  72.             ) else if "%%f"=="7" (
  73.                 rem NO
  74.                 goto :eof
  75.             ) else (
  76.                 exit
  77.             )
  78.         )
  79.    
  80. :decacher
  81. cls
  82. echo Veuillez entrer le nom du fichier s'il vous plait :
  83. set /p fnametodisclover=
  84. if not exist "%fnametodisclover%" (
  85. rundll32 user32.dll,MessageBeep
  86. mshta "javascript:var sh=new ActiveXObject( 'WScript.Shell' ); sh.Popup( 'Fichier inconnu!', 10, 'Erreur', 64 );close()"
  87. goto :decacher
  88. )
  89. attrib -h -s "%fnametodisclover%"
  90. goto :start
  91.  
  92.        
  93. :openfile
  94. echo Veuillez entrer le mot de passe :
  95. set /p mdp=
  96. if "%mdp%" NEQ "HackByLeNa" goto :wrong
  97.  
  98. explorer %userprofile%\Desktop\"%fnametoopen%"
  99. timeout /t 10
  100. goto :decacher?
  101.  
  102. :wrong
  103.  
  104. mshta "javascript:var sh=new ActiveXObject( 'WScript.Shell' ); sh.Popup( 'Mot de passe incorrect!', 1, 'Erreur', 64 );close()"
  105. cls
  106. goto :openfile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement