允许自定义假人数量
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
mod bot_socks5;
|
||||
mod utils;
|
||||
|
||||
use rand::Rng;
|
||||
use reqwest;
|
||||
use serde_json::Value;
|
||||
use std::sync::Arc;
|
||||
@@ -18,6 +17,8 @@ const SERVER_ADDR: &str = "49.70.3.146:33009";
|
||||
const UU_URL: &str = "http://uu-proxy.com/api/get_proxies?id=RZ7GS5ZYTA&size=1&schemes=socks5&support_https=false&format=json";
|
||||
// 用户名的开头
|
||||
const USERNAME_PREFIX: &str = "Nikke_"; // 2 3 3
|
||||
// 假人数量
|
||||
const COUNT :i32 = 300;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
@@ -33,7 +34,7 @@ async fn main() {
|
||||
|
||||
let mut handles = Vec::new();
|
||||
|
||||
for i in 0..100 {
|
||||
for i in 0..COUNT {
|
||||
let lock_clone = thread_lock.clone();
|
||||
// let handle = tokio::spawn(async move {
|
||||
// attack_thread(lock_clone).await;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
use rand::distributions::Alphanumeric;
|
||||
use rand::Rng;
|
||||
use reqwest;
|
||||
use crate::USERNAME_PREFIX;
|
||||
|
||||
// 处理json组件(有些TextComponent里面一堆extra看的我头皮发麻,所以整个这个)
|
||||
|
||||
Reference in New Issue
Block a user