c8-20251031_002439|062_download_pastebin_ch8

[source] c8-20251031_002439|062_download_pastebin_ch8.txt

TIME: 2025-10-31 00:45:21
CMD : $urls = Get-Content 'D:\work\challenge8_native\decrypted_urls.txt'
$outDir = 'D:\work\challenge8_native\pastebin_raw'
New-Item -ItemType Directory -Force -Path $outDir | Out-Null

$index = 1
foreach ($url in $urls) {
$file = Join-Path $outDir ("paste_{0:00}.txt" -f $index)
try {
Invoke-WebRequest -Uri $url -UseBasicParsing -OutFile $file
} catch {
"Failed to download $url`n$($_.Exception.Message)" | Tee-Object -FilePath "$file.error"
}
$index++
}

Get-ChildItem $outDir
---- OUTPUT ----

Directory: D:\work\challenge8_native\pastebin_raw

Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2025/10/31 0:45 7 paste_01.txt
-a--- 2025/10/31 0:45 4 paste_02.txt
-a--- 2025/10/31 0:45 4 paste_03.txt
-a--- 2025/10/31 0:45 8 paste_04.txt
-a--- 2025/10/31 0:45 4 paste_05.txt

---- END (Status=True) ----

~  ~  The   End  ~  ~


 赏 
感谢您的支持,我会继续努力哒!
支付宝收款码
tips
(*) 6 + 5 =
快来做第一个评论的人吧~