فروشگاه بزرگ چیت های خصوصی
سبد خرید
0
با چیت های ما در هر بازی برنده باشید!

آموزش ساخت ایم بات

آموزش ساخت ایم بات با پایتون

در این مقاله به آموزش ساخت ایم بات می پردازیم.

از زمان پیدایش اینترنت هکرها سعی می کنند اطلاعات خود را بروز نگه دارند تا به هدف خود برسند 
همانطور که می دانید بازی های آنلاین از سیستم آنتی چیت استفاده می کنند و سعی میکنند هکرها را از بازی دور نگه دارند ، ولی حقیقت این است که هکرها بروز هستند و نهایت راه و باگ برای نفوذ پیدا می کنند.
یکی از راه هایی که میشود برای بازی های آنلاین و افلاین ایم بات ساخت استفاده از برنامه نویسی پایتون می باشد.
برای شروع شما نیاز به یک هاب دارید تا بتوانید سیستم آنتی چیت را دور بزنید.
هاب پیشنهادی ما :

Tensorflow Hub 

ابتدا کتابخانه مربوط به پیکس بات و هاب را اضافه می کنید.
  1. import win32gui
  2. import win32ui
  3. import win32api
  4. import numpy as np
  5. import cv2
  6. import pyautogui
  7. import random
  8. import time
سپس با این دستورات برای انمی باکس میسازیم:
  1. # Create a bitmap object
  2. bitmap = win32ui.CreateBitmap()
  3. bitmap.CreateCompatibleBitmap(hdc_source, width, height)
  4. hdc_mem.SelectObject(bitmap)
بعد از ساخت باکس شما باید فاصله انمی هارو تشخیص بدید:
  1. # Load the template image
  2. template = cv2.imread(“agent_template.png”, cv2.IMREAD_GRAYSCALE)
  3. etc….
  4.  
  5. # Define the mouse movement parameters
  6. min_distance = 20 # minimum distance to move the mouse
  7. max_distance = 50 # maximum distance to move the mouse
  8. min_duration = 0.1 # minimum duration of the mouse movement
  9. max_duration = 0.3 # maximum duration of the mouse movement
  10.  
و در آخر شما برای ساخت ایم بات باید حلقه ایجاد کنید و با استفاده از این دستورات می توانید خط خود را اجرا کنید
  1. while True:
  2. # Copy the game window to the bitmap object
  3. hdc_mem.BitBlt((0, 0), (width, height), hdc_source, (0, 0), win32con.SRCCOPY)
  4.  
  5. # Get the bitmap data as a 3-dimensional numpy array
  6. bitmap_data = bitmap.GetBitmapBits(True)
  7. image = np.frombuffer(bitmap_data, dtype=np.uint8).reshape(height, width, 4)
  8.  
  9. # Extract the red channel from the image and apply the color threshold
  10. red_channel = image[:, :, 2]
  11. red_pixels = (red_channel > red_threshold)
  12.  
  13. # Check if there are any red pixels
  14. if red_pixels.any():
  15. # Perform template matching on the captured image
  16. screenshot_gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
  17. result = cv2.matchTemplate(screenshot_gray, template, cv2.TM_CCOEFF_NORMED)
  18.  
  19. # Get the best match location
  20. min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(result)
  21.  
  22. # Check if the best match is above a certain threshold
  23. threshold = 0.8
  24. if max_val > threshold:
  25. # The agent was detected, move the mouse cursor to the location
  26. x, y = max_loc
  27. # Randomize the mouse movement
  28. distance = random.uniform(min_distance, max_distance)
  29. angle = random.uniform(0, 2*np.pi)
  30. dx = distance * np.cos(angle)
  31. dy = distance * np.sin(angle)
  32. duration = random.uniform(min_duration, max_duration)
  33. # Move the mouse cursor to the location with randomized movement
  34. pyautogui.moveTo(x+dx, y+dy, duration=duration)
  35. # Wait for a short time to simulate human-like behavior
  36. time.sleep(random.uniform(0.1, 0.3))
  37. else:
  38. # The agent was not detected
  39. print(“Agent not detected”)
  40. else:
  41. # The red pixels were not detected
  42. print(“No red pixels detected”)
توجه داشته باشید که هرچه سیستم شما قوی تر باشد، سرعت و دقت ایم بات شما بیشتر می شود. برای گرفتن ایم بات بهتر نیاز به زمان دارید و باید وقت بگذارید تا ایم بات دقیق و بی نقص داشته باشید و برای تکمیل کردن هم می توانید دستوراتی اضافه کنید که فاصله های نزدیک را ایگنور کرد چرا که ممکن کارکتر یا دست شما در بازی به عنوان باکس شناخته شود.

 

پیشنهاد می کنیم برای درک بهتر این ویدیو را تا آخر مشاهده کنید.

آیا این نوشته برایتان مفید بود؟

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *