1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
| <html>
<head>
<HTA:APPLICATION
ICON="Explorer.exe"
APPLICATIONNAME = "Login"
BORDER="dialog"
BORDERSTYLE="complex"
CONTEXTMENU="no"
SYSMENU="yes"
MAXIMIZEBUTTON="no"
SCROLL="no"
>
<title>VerifPass+NBEssais © Hackoo</title>
<script language="VBScript">
Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim WS : Set WS = CreateObject("wscript.shell")
Temp = WS.ExpandEnvironmentStrings("%Temp%")
Essais = Temp &"\Essais.txt"
Sub window_onload()
CenterWindow 280,180
Call TextFocus
Call Fermer("Explorer.exe")
Dim Compteur : Compteur = 0
If Not objFSO.FileExists(Essais) Then
Dim Logfile : Set Logfile = objFSO.OpenTextFile(Essais,2,True)
Logfile.writeline Compteur
Logfile.Close
end if
End Sub
Sub CenterWindow(x,y)
window.resizeTo x, y
iLeft = window.screen.availWidth/2 - x/2
itop = window.screen.availHeight/2 - y/2
window.moveTo ileft, itop
End Sub
Sub VerifPass
Dim NB_MAX : NB_MAX = 3
Password = "motdepasse"
Set Readfile = objFSO.OpenTextFile(Essais,1)
Compteur = Readfile.ReadAll
Readfile.Close
Controle = True
While Controle
Compteur = Compteur + 1
NB_Essais_Restant = NB_MAX - Compteur
Set Logfile = objFSO.OpenTextFile(Essais,2,True)
Logfile.writeline Compteur
Logfile.Close
If PasswordArea.Value <> Password Then
MsgBox "Mauvais Mot de passe et NB° ESSAIS est " & Compteur &vbCr&_
"Le Nombre d'essais restant est "& NB_Essais_Restant,16,"Mauvais Mot de passe"
Location.Reload(True)
end if
If PasswordArea.Value = Password Then
MsgBox "Mot de Passe Correct !",64,"Mot de Passe Correct !"
If objFSO.FileExists(Essais) Then objFSO.DeleteFile Essais,True
Call Ouvrir("Explorer.exe")
resultat=WS.Run("Calc.exe",1,False)'si le mot est correct on lance l'application calculatice
Controle = False
window.close
Exit Sub
End If
If Compteur = NB_MAX Then
If objFSO.FileExists(Essais) Then objFSO.DeleteFile Essais,True
MsgBox "Le Nombre Limite d'essais est atteint ! "&vbcr& "L'ordinateur va Rebooter dans 30 secondes ",48,"Le Nombre Limite de Essai est atteint"
Command="cmd /c Shutdown.exe -r -t 30 -c " & chr(34) & "Sauvegarder votre Travail car l'ordinateur va rebooter dans 30 secondes" & chr(34)
Exec = WS.Run(Command,0,False)
window.close
End If
Exit Sub
wend
End Sub
Sub TextFocus
PasswordArea.Focus
End Sub
Sub Fermer(Process)
Set Ws = CreateObject("Wscript.Shell")
Command = "cmd /c Taskkill /F /IM "&Process&""
Execution = Ws.Run(Command,0,True)
End Sub
Sub Ouvrir(Process)
Set Ws = CreateObject("Wscript.Shell")
Command = "cmd /c Start "&Process&""
Execution = Ws.Run(Command,0,True)
End Sub
</SCRIPT>
</head>
<body STYLE="font:14 pt arial; color:white;filter:progid:DXImageTransform.Microsoft.Gradient
(GradientType=1, StartColorStr='#000033', EndColorStr='#0000FF')"
<!--HTMLPORTION-->
<center>Mot de Passe<br><br><input type="password" name="PasswordArea" size="20" onKeyUp="TextFocus"><P>
<input id=runbutton class="button" type="Submit" value="Accès" name="run_button" onClick="VerifPass">
</body>
</html> |
Partager