forked from mon5termatt/Bing-Bot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPowershell BB1.x Auto.ps1
43 lines (35 loc) · 1.23 KB
/
Powershell BB1.x Auto.ps1
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
$made = 0
$total = 35
mode con:cols=80 lines=4
switch ($PSUICulture)
{
"fr-FR" {$wordlist = Get-Content -Path ".\wordlist\fr-FR.txt"}
Default {
$wordlist = Get-Content -Path ".\wordlist\en-EN.txt"
}
}
Write-Host "Starting Browser, Please Wait"
Start-Sleep -Seconds 5
Start-Process "microsoft-edge:"
while ($made -lt $total) {
$wait = Get-Random -Minimum 3 -Maximum 16
$wordlistindex = Get-Random -Minimum 1 -Maximum 501
$randword = $wordlist[$wordlistindex]
$made++
Start-Process "microsoft-edge:https://www.bing.com/search?q=$randword"
Clear-Host
$title = "$made Searches Made out of $total - Searching for: $randword"
$host.ui.RawUI.WindowTitle = $title
Write-Host "$made Searches Made out of $total"
for ($i = $wait; $i -ge 1; $i--) {
[Console]::SetCursorPosition(0, [Console]::CursorTop)
Write-Host (" " * 80) -NoNewline
[Console]::SetCursorPosition(0, [Console]::CursorTop)
Write-Host "$i seconds until next search" -NoNewline
Start-Sleep -Seconds 1
}
if ($made -eq $total) {
Get-Process -Name "msedge" | ForEach-Object { $_.CloseMainWindow() } | Out-Null
}
}
Start-Sleep -Seconds 1