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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
| @echo off
Title Download Multi-Files by Hackoo 2018
Color 9E & Mode 70,3
echo(
echo Please wait ... Downloading the file is in progress ...
Set "Downloader=%Temp%\Hackoo_Downloader.vbs"
Set "File=%~dp0URLS.txt"
If Not Exist "%File%" echo "%File%" does not exist & Timeout /T 5 /nobreak>nul & Exit
@For /f "delims=" %%F in ('Type "%File%"') do ( Call :Download "%%F" )
Exit
::*************************************************************************************
:Download <url>
(
echo Option Explicit
echo Const Copyright =" (C) by Hackoo 2018"
echo Dim Title : Title = "Download Files"
echo Const WHR_EnableRedirects = 6
echo Dim Base_Link,Dynamic_Link,Flag,Question,DirectLink,Save2File
echo Dim fso,ws,Temp,WaitingMsg,oExec
echo Set fso = CreateObject^("Scripting.FileSystemObject"^)
echo Set ws = CreateObject^("WScript.Shell"^)
echo Temp = ws.ExpandEnvironmentStrings^("%%Temp%%"^)
echo If WSH.Arguments.Count = 0 Then
echo MsgBox "Usage in command line : "^& vbCrlf ^&_
echo "Cscript //nologo "^& DblQuote^(WSH.Scriptname^) ^& " " ^& DblQuote^("URL"^),_
echo vbExclamation,Title ^& Copyright
echo Wscript.Quit^(1^)
echo End If
echo Base_Link = wscript.Arguments^(0^)
echo If CheckDirectLink^(Base_Link^) = True Then 'Check if it is a direct link
echo Save2File = GetFileNamefromDirectLink^(Base_Link^)
echo If Save2File = "" Then
echo MsgBox "An unknown error has occurred ! Quitting the script !",vbCritical,Title
echo Wscript.Quit^(^)
echo End If
echo WaitingMsg = "Please wait ... The download of : <font color=Yellow>"^& DblQuote^(Save2File^) ^& "</font> is in progress ..."
echo Call CreateProgressBar^(Title,WaitingMsg^)'Creation of Waiting Bar
echo Call LaunchProgressBar^(^) 'Launch of the Waiting Bar
echo Call Download^(Base_Link,Save2File^)
echo pause^(3^)
echo Call CloseProgressBar^(^)
echo ws.Popup "The download of the file : "^& Save2File ^& vbCrlf ^& "is completed successfully ! ",3,Title,vbInformation
echo 'MsgBox "The download of the file : "^& Save2File ^& vbCrlf ^&_
echo '"is Completed !",vbInformation,Title
echo wscript.Quit^(^)
echo End If
echo Call GetHeaderLocation^(Base_Link^)
echo If Flag = True And CheckDirectLink^(GetHeaderLocation^(Base_Link^)^) = True Then 'Checking for a direct link of Malwarebytes
echo Save2File = GetFileNamefromDirectLink^(GetHeaderLocation^(Base_Link^)^)
echo If Save2File = "" Then
echo MsgBox "An unknown error has occurred ! Quitting the script !",vbCritical,Title
echo Wscript.Quit^(^)
echo End If
echo DirectLink = GetHeaderLocation^(Base_Link^)
echo 'wscript.echo DirectLink ^& vbCrlf ^& Save2File
echo 'Question = MsgBox^("Did you want to download this file ?" ^& vbCrlf ^&_
echo 'Save2File,vbQuestion+vbYesNo,Title^)
echo 'If Question = vbYes Then
echo If Save2File ^<^> "" Then
echo WaitingMsg = "Please wait ... The download of : <font color=Yellow>"^& DblQuote^(Save2File^) ^& "</font> is in progress ..."
echo Call CreateProgressBar^(Title,WaitingMsg^)'Creation of Waiting Bar
echo Call LaunchProgressBar^(^) 'Launch of the Waiting Bar
echo Call Download^(DirectLink,Save2File^)
echo Call CloseProgressBar^(^)
echo ws.Popup "The download of the file : "^& Save2File ^& vbCrlf ^& "is completed successfully ! ",3,Title,vbInformation
echo 'MsgBox "The download of the file : "^& Save2File ^& vbCrlf ^&_
echo '"is Completed !",vbInformation,Title
echo Wscript.Quit^(^)
echo End If
echo 'End If
echo ElseIf Instr^(Base_Link,"toolslib"^) ^<^> 0 And Flag = True Then 'for Adwcleaner
echo Dynamic_Link = Extract_Dynamic_Link^(GetDataFromURL^(Base_Link,"Get", ""^)^)
echo Save2File = GetFileName^(GetHeaderLocation^(Dynamic_Link^)^)
echo If Save2File = "" Then
echo MsgBox "An unknown error has occurred ! Quitting the script !",vbCritical,Title
echo Wscript.Quit^(^)
echo End If
echo 'Question = MsgBox^("The Dynamic Link is = "^& Dynamic_Link ^& vbcrlf ^& vbcrlf ^&_
echo '"Response of The Dynamic Link is : "^& vbcrlf ^& GetHeaderLocation^(Dynamic_Link^) ^& vbCrlf ^& vbCrlf ^&_
echo '"Extracted FileName is = " ^& Save2File,vbYesNo+vbQuestion,Title^)
echo 'If Question = vbYes Then
echo WaitingMsg = "Please wait ... The download of : <font color=Yellow>"^& DblQuote^(Save2File^) ^& "</font> is in progress ..."
echo Call CreateProgressBar^(Title,WaitingMsg^)'Creation of Waiting Bar
echo Call LaunchProgressBar^(^) 'Launch of the Waiting Bar
echo Call Download^(Dynamic_Link,Save2File^)
echo Call CloseProgressBar^(^)
echo ws.Popup "The download of the file : "^& Save2File ^& vbCrlf ^& "is completed successfully ! ",3,Title,vbInformation
echo 'wscript.echo "The download of the file : "^& Save2File ^& " is Completed !"
echo 'MsgBox "The download of the file : "^& Save2File ^& vbCrlf ^&_
echo '"is Completed !",vbInformation,Title
echo 'Else
echo Wscript.Quit^(^)
echo 'End If
echo ElseIf Instr^(Base_Link,"php"^) ^> 0 And Flag = False Then
echo Save2File = GetFileName^(GetHeaderLocation^(Base_Link^)^) ' for site of autoitscript.fr
echo If Save2File = "" Then
echo MsgBox "An unknown error has occurred ! Quitting the script !",vbCritical,Title
echo Wscript.Quit^(^)
echo End If
echo 'Question = MsgBox^("Did you want to download this file ?" ^& vbCrlf ^&_
echo 'Save2File,vbQuestion+vbYesNo,Title^)
echo 'If Question = vbYes Then
echo WaitingMsg = "Please wait ... The download of : <font color=Yellow>"^& DblQuote^(Save2File^) ^& "</font> is in progress ..."
echo Call CreateProgressBar^(Title,WaitingMsg^)'Creation of Waiting Bar
echo Call LaunchProgressBar^(^) 'Launch of the Waiting Bar
echo Call Download^(Base_Link,Save2File^)
echo pause^(3^)
echo Call CloseProgressBar^(^)
echo MsgBox "The download of the file : "^& Save2File ^& vbCrlf ^&_
echo "is Completed !",vbInformation,Title
echo 'Else
echo ' Wscript.Quit^(^)
echo 'End If
echo End If
echo '------------------------------------------------
echo Function GetHeaderLocation^(URL^)
echo On Error Resume Next
echo Dim h,GetLocation
echo Set h = CreateObject^("WinHttp.WinHttpRequest.5.1"^)
echo h.Option^(WHR_EnableRedirects^) = False
echo h.Open "HEAD", URL , False
echo h.Send^(^)
echo GetLocation = h.GetResponseHeader^("Location"^)
echo If Err = 0 Then
echo Flag = True
echo GetHeaderLocation = GetLocation
echo Else
echo Flag = False
echo GetHeaderLocation = h.GetResponseHeader^("Content-Disposition"^)
echo End If
echo End Function
echo '---------------------------------------------
echo Function GetFileName^(Data^)
echo Dim regEx, Match, Matches,FileName
echo Set regEx = New RegExp
echo regEx.Pattern = "\x27{2}(\w.*)"
echo regEx.IgnoreCase = True
echo regEx.Global = True
echo If regEx.Test^(Data^) Then
echo Set Matches = regEx.Execute^(Data^)
echo For Each Match in Matches
echo FileName = Match.subMatches^(0^)
echo Next
echo Else
echo Set regEx = New RegExp
echo regEx.Pattern = "\x22(\w.*)\x22"
echo regEx.IgnoreCase = True
echo regEx.Global = True
echo Set Matches = regEx.Execute^(Data^)
echo For Each Match in Matches
echo FileName = Match.subMatches^(0^)
echo Next
echo End If
echo GetFileName = FileName
echo End Function
echo '---------------------------------------------
echo Function Extract_Dynamic_Link^(Data^)
echo Dim regEx, Match, Matches,Dynamic_Link
echo Set regEx = New RegExp
echo regEx.Pattern = Base_Link ^& "\?s=[^""]*"
echo regEx.IgnoreCase = True
echo regEx.Global = True
echo Set Matches = regEx.Execute^(Data^)
echo For Each Match in Matches
echo Dynamic_Link = Match.Value
echo Next
echo Extract_Dynamic_Link = Dynamic_Link
echo End Function
echo '------------------------------------------------
echo Function GetDataFromURL^(strURL, strMethod, strPostData^)
echo Dim lngTimeout
echo Dim strUserAgentString
echo Dim intSslErrorIgnoreFlags
echo Dim blnEnableRedirects
echo Dim blnEnableHttpsToHttpRedirects
echo Dim strHostOverride
echo Dim strLogin
echo Dim strPassword
echo Dim strResponseText
echo Dim objWinHttp
echo lngTimeout = 59000
echo strUserAgentString = "http_requester/0.1"
echo intSslErrorIgnoreFlags = 13056 ' 13056: ignore all err, 0: accept no err
echo blnEnableRedirects = True
echo blnEnableHttpsToHttpRedirects = True
echo strHostOverride = ""
echo strLogin = ""
echo strPassword = ""
echo Set objWinHttp = CreateObject^("WinHttp.WinHttpRequest.5.1"^)
echo objWinHttp.SetTimeouts lngTimeout, lngTimeout, lngTimeout, lngTimeout
echo objWinHttp.Open strMethod, strURL
echo If strMethod = "POST" Then
echo objWinHttp.setRequestHeader "Content-type", _
echo "application/x-www-form-urlencoded"
echo End If
echo If strHostOverride ^<^> "" Then
echo objWinHttp.SetRequestHeader "Host", strHostOverride
echo End If
echo objWinHttp.Option^(0^) = strUserAgentString
echo objWinHttp.Option^(4^) = intSslErrorIgnoreFlags
echo objWinHttp.Option^(6^) = blnEnableRedirects
echo objWinHttp.Option^(12^) = blnEnableHttpsToHttpRedirects
echo If ^(strLogin ^<^> ""^) And ^(strPassword ^<^> ""^) Then
echo objWinHttp.SetCredentials strLogin, strPassword, 0
echo End If
echo On Error Resume Next
echo objWinHttp.Send^(strPostData^)
echo If Err.Number = 0 Then
echo If objWinHttp.Status = "200" Then
echo GetDataFromURL = objWinHttp.ResponseText
echo Else
echo GetDataFromURL = "HTTP " ^& objWinHttp.Status ^& " " ^& _
echo objWinHttp.StatusText
echo End If
echo Else
echo GetDataFromURL = "Error " ^& Err.Number ^& " " ^& Err.Source ^& " " ^& _
echo Err.Description
echo End If
echo On Error GoTo 0
echo Set objWinHttp = Nothing
echo End Function
echo '------------------------------------------------
echo Sub Download^(URL,Save2File^)
echo Dim File,Line,BS,ws
echo On Error Resume Next
echo Set File = CreateObject^("WinHttp.WinHttpRequest.5.1"^)
echo File.Open "GET",URL, False
echo File.Send^(^)
echo If err.number ^<^> 0 then
echo Line = Line ^& vbcrlf ^& "Error Getting File"
echo Line = Line ^& vbcrlf ^& "Error " ^& err.number ^& "(0x" ^& hex^(err.number^) ^& ") " ^& vbcrlf ^&_
echo err.description
echo Line = Line ^& vbcrlf ^& "Source " ^& err.source
echo MsgBox Line,vbCritical,"Error getting file"
echo Err.clear
echo wscript.quit
echo End If
echo If File.Status = 200 Then ' File exists and it is ready to be downloaded
echo Set BS = CreateObject^("ADODB.Stream"^)
echo Set ws = CreateObject^("wscript.Shell"^)
echo BS.type = 1
echo BS.open
echo BS.Write File.ResponseBody
echo BS.SaveToFile Save2File, 2
echo ElseIf File.Status = 404 Then
echo MsgBox "File Not found : " ^& File.Status,vbCritical,"Error File Not Found"
echo Else
echo MsgBox "Unknown Error : " ^& File.Status,vbCritical,"Error getting file"
echo End If
echo End Sub
echo '------------------------------------------------
echo Function GetFileNamefromDirectLink^(URL^)
echo Dim ArrFile,FileName
echo ArrFile = Split^(URL,"/"^)
echo FileName = ArrFile^(UBound^(ArrFile^)^)
echo GetFileNamefromDirectLink = FileName
echo End Function
echo '------------------------------------------------
echo Function CheckDirectLink^(URL^)
echo Dim regEx
echo Set regEx = New RegExp
echo regEx.Pattern = "(.exe|.zip|.rar|.msi|.vbs|.bat|.hta|.txt|.log|.doc" ^& _
echo "|.docx|.xls|.xlsx|.pdf|.mp3|.mp4|.avi|.png|.jpg|.jpeg|.bmp|.gif|.swf)"
echo regEx.IgnoreCase = True
echo regEx.Global = False
echo If regEx.Test^(URL^) Then
echo CheckDirectLink = True
echo End If
echo End Function
echo '------------------------------------------------
echo '**********************************************************************************************
echo Sub CreateProgressBar^(Title,WaitingMsg^)
echo Dim ws,fso,f,f2,ts,ts2,Ligne,i,fread,LireTout,NbLigneTotal,Temp,PathOutPutHTML,fhta,oExec
echo Set ws = CreateObject^("wscript.Shell"^)
echo Set fso = CreateObject^("Scripting.FileSystemObject"^)
echo Temp = WS.ExpandEnvironmentStrings^("%%Temp%%"^)
echo PathOutPutHTML = Temp ^& "\Barre.hta"
echo Set fhta = fso.OpenTextFile^(PathOutPutHTML,2,True^)
echo fhta.WriteLine "<HTML>"
echo fhta.WriteLine "<HEAD>"
echo fhta.WriteLine "<Title> " ^& Title ^& Copyright ^& "</Title>"
echo fhta.WriteLine "<HTA:APPLICATION"
echo fhta.WriteLine "ICON = ""magnify.exe"" "
echo fhta.WriteLine "BORDER=""THIN"" "
echo fhta.WriteLine "INNERBORDER=""NO"" "
echo fhta.WriteLine "MAXIMIZEBUTTON=""NO"" "
echo fhta.WriteLine "MINIMIZEBUTTON=""NO"" "
echo fhta.WriteLine "SCROLL=""NO"" "
echo fhta.WriteLine "SYSMENU=""NO"" "
echo fhta.WriteLine "SELECTION=""NO"" "
echo fhta.WriteLine "SINGLEINSTANCE=""YES"">"
echo fhta.WriteLine "</HEAD>"
echo fhta.WriteLine "<BODY text=""white""><CENTER>"
echo fhta.WriteLine "<marquee DIRECTION=""LEFT"" SCROLLAMOUNT=""3"" BEHAVIOR=ALTERNATE><font face=""Comic sans MS"">" ^& WaitingMsg ^&"</font></marquee>"
echo fhta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Jzr+3tfdSdXbYZ/UX5ygYeLdkCEao15jomMiFmKlFqDZz8FoKEFE6KhpKWjD6ipDqunpa+isaaqqLOgEwO6uwO5vLqutbDCssS0rbbGuMqsAMHIw9DFDr+6vr/PzsnSx9rR3tPg3dnk2+LL1NXXvOXf7eHv4+bx6OfN1b0P+PTN/Lf98wK6ExgO37pd/pj9W6iwIbd6CdP9OmjtGzcNFsVhDHfxDELGjxw1Xpg4kheABAAh+QQJCgAAACwAAAAAgAAPAAAD/wi0C/6sPRfJpPGqfKv2HTeBowiZjqCqG9malYS5sXXScYnvcP6swJqux2MMjTeiEjlbyl5MAHAlTEarzasv+8RCu9uvjTuWTgXedFhdBLfLbGf5jF7b30e3PA+/739ncVp4VnqDf2R8ioBTgoaPfYSJhZGIYhN0BZqbBROcm56fnQ+iow6loZ+pnKugpKKtmrGmAAO2twOor6q7rL2up7C/ssO0usG8yL7KwLW4tscA0dPCzMTWxtXS2tTJ297P0Nzj3t3L3+fmzerX6M3hueTp8uv07ezZ5fa08Piz/8UAYhPo7t6+CfDcafDGbOG5hhcYKoz4cGIrh80cPAOQAAAh+QQJCgAAACwAAAAAgAAPAAAD5wi0C/6sPRfJpPGqfKv2HTeBowiZGLORq1lJqfuW7Gud9YzLud3zQNVOGCO2jDZaEHZk+nRFJ7R5i1apSuQ0OZT+nleuNetdhrfob1kLXrvPariZLGfPuz66Hr8f8/9+gVh4YoOChYhpd4eKdgwFkJEFE5KRlJWTD5iZDpuXlZ+SoZaamKOQp5wAm56loK6isKSdprKotqqttK+7sb2zq6y8wcO6xL7HwMbLtb+3zrnNycKp1bjW0NjT0cXSzMLK3uLd5Mjf5uPo5eDa5+Hrz9vt6e/qosO/GvjJ+sj5F/sC+uMHcCCoBAA7AAAAAAAAAAAA"" />"
echo fhta.WriteLine "</CENTER></BODY></HTML>"
echo fhta.WriteLine "<SCRIPT LANGUAGE=""VBScript""> "
echo fhta.WriteLine "Set ws = CreateObject(""wscript.Shell"")"
echo fhta.WriteLine "Temp = WS.ExpandEnvironmentStrings(""%%Temp%%"")"
echo fhta.WriteLine "Sub window_onload()"
echo fhta.WriteLine " CenterWindow 575,100"
echo fhta.WriteLine " Self.document.bgColor = ""DarkOrange"" "
echo fhta.WriteLine " End Sub"
echo fhta.WriteLine " Sub CenterWindow(x,y)"
echo fhta.WriteLine " Dim iLeft,itop"
echo fhta.WriteLine " window.resizeTo x,y"
echo fhta.WriteLine " iLeft = window.screen.availWidth/2 - x/2"
echo fhta.WriteLine " itop = window.screen.availHeight/2 - y/2"
echo fhta.WriteLine " window.moveTo ileft,itop"
echo fhta.WriteLine "End Sub"
echo fhta.WriteLine "</script>"
echo fhta.close
echo End Sub
echo '**********************************************************************************************
echo Sub LaunchProgressBar^(^)
echo Set oExec = Ws.Exec^("mshta.exe " ^& Temp ^& "\Barre.hta"^)
echo End Sub
echo '**********************************************************************************************
echo Sub CloseProgressBar^(^)
echo oExec.Terminate
echo End Sub
echo '**********************************************************************************************
echo Function DblQuote^(Str^)
echo DblQuote = Chr^(34^) ^& Str ^& Chr^(34^)
echo End Function
echo '**********************************************************************************************
echo Sub Pause^(Secs^)
echo Wscript.Sleep^(Secs * 1000^)
echo End Sub
echo '*********************************************************************************************
)>"%Downloader%"
Call "%Downloader%" "%~1"
goto :eof
::************************************************************************************* |
Partager