Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $end = 3000
  2.  
  3. $folder_name = Get-Date -UFormat %Y-%m-%d
  4. $folder_name = 'Steam/' + $folder_name
  5. New-Item -Path $folder_name -ItemType Directory -Force | Out-Null
  6.  
  7. For ($i=0; $i -lt $end; $i++)
  8. {
  9. $path = "valve$i.steamcontent.com"
  10. Write-Progress -Activity "Scanning $path" -Status "$i/$end" -PercentComplete (($i * 100) / $end)
  11.  
  12. $output = Resolve-DnsName -Name $path -Type AAAA -ErrorAction SilentlyContinue
  13.  
  14. if ($output.IP6Address)
  15. {
  16. $output.IP6Address | Out-File -LiteralPath "$folder_name/$path.txt" -Force
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement