Skip to content

Instantly share code, notes, and snippets.

@DreamDevLost
Last active January 20, 2020 04:16
Show Gist options
  • Save DreamDevLost/1fbbd9f0105f6e4ff7cc4a9bd95600b4 to your computer and use it in GitHub Desktop.
Save DreamDevLost/1fbbd9f0105f6e4ff7cc4a9bd95600b4 to your computer and use it in GitHub Desktop.
$urls = @(
"https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt",
"https://trackerslist.com/all.txt"
)
$i = 0
$t = $env:TEMP
$p = "$t\__trackers"
$f = "$p.all.txt"
Foreach ($url in $urls)
{
#Write-Host "$p$i.txt"
Invoke-Webrequest $url -OutFile "$p$i.txt"
$i++
}
cat $p* | Sort-Object -Unique | ? {$_.trim() -ne "" } | sc $f
notepad $f
sleep 5
Remove-Item -Path $t"\" -Include trackers*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment