From 9ec6066615d914d4e0ae594b64bc0997ee151ed3 Mon Sep 17 00:00:00 2001 From: lim114514 <1941068@qq.com> Date: Sat, 25 Jan 2025 10:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=81=87=E4=BA=BA=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 5 +++-- src/utils.rs | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index c9e2bbb..6c92de6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; diff --git a/src/utils.rs b/src/utils.rs index 365e70c..5e49e23 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -2,7 +2,6 @@ use rand::distributions::Alphanumeric; use rand::Rng; -use reqwest; use crate::USERNAME_PREFIX; // 处理json组件(有些TextComponent里面一堆extra看的我头皮发麻,所以整个这个)