Solves bombcrypto newest captcha

Overview

Solves Bombcrypto newest captcha

Working example A very compact implementation using just cv2 and ctypes, ready to be deployed to your own project.

How does it work

It takes multiple pictures (cropped to a smaller area) whilst moving the mouse in a sweep movement throughout the screen.

The small pictures are joined together using bitwise or operation within the image:

bitwise or image

A HSV filter is applied to isolate the contrast

hsv image

The red portion its masked with a band pass filter

filtered image

And finally the noise is reduced by applying mathematical morphology

morph image

The image is compared withing a preset of numbered images in a very shallow OCR attempt.

This will result in a numbered string with the number ordered.

Sliding

The slider is located with template matching and by using a small variation to avoid detection, it moves the slider towards the right while comparing the appeared numbers with the puzzle number.

Once found the slider is let go, completing the captcha.

Usage

Clone this repository into a folder While in the directory, using Python 3.9 (suggested), do the following in the terminal:

python -m pip install -r requeriments.txt

This will install the used libraries.

The program will try to find windows with Bombcrypto within its name, focus on the window and locate the captcha. If you have multiple windows with Bombcrypto name that ain't the game, the bot probably won't do its thing.

You can run the CaptchaSolver by running:

python captchaSolver.py

Importing to your project

You probably will have a way of targeting the window, if so, you can remove the code that targets the windows and the functions it uses (most of ctypes functions)

You will need to specify the area in which your game is running, for performance purpose by creating the following dict:

m = {
    'left': X,
    'top': Y,
    'width': width,
    'height': height
}

to receive the full image from the captcha:

img = sweepScreen(m)

using the image to get the code, hsvOcr is the folder name containing the hsv numbered images

number = numberOcr(img, "hsvOcr")

this will solve the captcha by comparing with the number found

slideAndDrop(m,number)

Donations

If you liked the project, consider donating to the following address:

0x07CdF7E94C637298315F134ebB02309896349Ad4

You might also like...
Bombcrypto-robot - Python bot to automate BombCrypto game. Updated 01.02.2022

About: This is an open-source bot, the code is open for anyone to see, fork and

Spacecrypto-bombcrypto-bot - SpaceCrypto And Bombcrypto Bot - MultiScreen

SpaceCrypto And Bombcrypto Bot - MultiScreen This is a open source project inspi

Um simples projeto para fazer o reconhecimento do captcha usado pelo jogo bombcrypto
Um simples projeto para fazer o reconhecimento do captcha usado pelo jogo bombcrypto

CaptchaSolver - LEIA ISSO 😓 Para iniciar o codigo: pip install -r requirements.txt python captcha_solver.py Se você deseja pegar ver o resultado das

Ranger deep learning optimizer rewrite to use newest components
Ranger deep learning optimizer rewrite to use newest components

Ranger21 - integrating the latest deep learning components into a single optimizer Ranger deep learning optimizer rewrite to use newest components Ran

A platform which give you info about the newest video on a channel
A platform which give you info about the newest video on a channel

youtube A platform which give you info about the newest video on a channel. This uses web scraping, a better implementation will be to use the API. BR

The newest contender in Server Gateway Interface.

nsgi The newest contender in Server Gateway Interface. Why use this webserver? This webserver is made with the newest version of asyncio, and sockets,

This is a python bot to automate BombCrypto game

This is a python bot to automate BombCrypto game. Logs in to the game, reconnects when needed, closes error warnings, sends heroes to work or home automatically, has Telegram integration and lets you know by message or call if the farm stop. It is fully open source and free, compatible with Windows and Ubuntu.

My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA

My solutions to adventofcode.com puzzles. I post videos of me solving the puzzles in real-time at https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41

Solves Maths24 problems for you!

maths24-solver Solves Maths24 problems for you! Enjoy this open scource project! You can edit modify and share! My wishes is for you to use this proje

This solves the autonomous driving issue which is supported by deep learning technology. Given a video, it splits into images and predicts the angle of turning for each frame.
This solves the autonomous driving issue which is supported by deep learning technology. Given a video, it splits into images and predicts the angle of turning for each frame.

Self Driving Car An autonomous car (also known as a driverless car, self-driving car, and robotic car) is a vehicle that is capable of sensing its env

Because trello only have payed options to generate a RunUp chart, this solves that!
Because trello only have payed options to generate a RunUp chart, this solves that!

Trello Runup Chart Generator The basic concept of the project is that Corello is pay-to-use and want to use Trello To-Do/Doing/Done automation with gi

A Python program that generates a maze that solves itself using DFS

Maze Generator And Solver Program Purpose: Generates a maze that then solves itself Language: Python and Pygame Algorithm: Randomized DFS / Floodfill

Wordle-solver - A program that solves a Wordle using a simple algorithm

Wordle Solver A program that solves a Wordle using a simple algorithm. To see it

A decent AI that solves daily Wordle puzzles. Works with different websites with similar wordlists,.

Wordle-AI A decent AI that solves daily "Wordle" puzzles. Works with different websites with similar wordlists. When prompted with "Word:" enter the w

This application solves sudoku puzzles using a backtracking recursive algorithm

This application solves sudoku puzzles using a backtracking recursive algorithm. The user interface is coded with Pygame to allow users to easily input puzzles.

Deep LearningImage Captcha 2
Deep LearningImage Captcha 2

滑动验证码深度学习识别 本项目使用深度学习 YOLOV3 模型来识别滑动验证码缺口,基于 https://github.com/eriklindernoren/PyTorch-YOLOv3 修改。 只需要几百张缺口标注图片即可训练出精度高的识别模型,识别效果样例: 克隆项目 运行命令: git cl

An easy to use an (hopefully useful) captcha solution for pyTelegramBotAPI
An easy to use an (hopefully useful) captcha solution for pyTelegramBotAPI

pyTelegramBotCAPTCHA An easy to use and (hopefully useful) image CAPTCHA soltion for pyTelegramBotAPI. Installation: pip install pyTelegramBotCAPTCHA

CoWIN Vaccination slot booking telegram bot with auto captcha resolver & alerting feature.Now, never miss a slot.
CoWIN Vaccination slot booking telegram bot with auto captcha resolver & alerting feature.Now, never miss a slot.

COWIN VACCINATION SLOT AUTO BOOKING (Bot with captcha solving & alerting capabilities. Never miss the vaccine slot.) June-10-2021/ 0030 hrs: 23 succes

A Telegram Bot which will ask new Group Members to verify them by solving an emoji captcha.

Emoji-Captcha-Bot A Telegram Bot which will ask new Group Members to verify them by solving an emoji captcha. About API: Using api.abirhasan.wtf/captc

Comments
  • Assertion failed

    Assertion failed

    Thank for your repo !

    I've cloned it to my machine, and run but I had an error. Do you have any suggestion

    D:\Projects\BombCryptoCaptchaSolver>python captchaSolver.py
    Traceback (most recent call last):
      File "D:\Projects\BombCryptoCaptchaSolver\captchaSolver.py", line 195, in <module>
        number = numberOcr(img, "hsvOcr")
      File "D:\Projects\BombCryptoCaptchaSolver\captchaSolver.py", line 113, in numberOcr
        positions = locateAll("%s/%s.png" % (folder, number), img, confidence=thresh)
      File "D:\Projects\BombCryptoCaptchaSolver\captchaSolver.py", line 87, in locateAll
        res = cv2.matchTemplate(img, template, cv2.TM_CCOEFF_NORMED)
    cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\templmatch.cpp:1164: error: (-215:Assertion failed) (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 in function 'cv::matchTemplate'
    
    opened by luckymancvp 2
  • I've got error

    I've got error

    Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information.

    ======= RESTART: C:\script\BombCryptoCaptchaSolver-main\captchaSolver.py ======= Traceback (most recent call last): File "C:\script\BombCryptoCaptchaSolver-main\captchaSolver.py", line 194, in img = sweepScreen(m) File "C:\script\BombCryptoCaptchaSolver-main\captchaSolver.py", line 127, in sweepScreen res = locate("Recognition/robot.png", im, confidence=0.8) File "C:\script\BombCryptoCaptchaSolver-main\captchaSolver.py", line 78, in locate array = locateAll(tmpName, img, confidence) File "C:\script\BombCryptoCaptchaSolver-main\captchaSolver.py", line 93, in locateAll if mask[pt[1] + int(round(h / 2)), pt[0] + int(round(w / 2))] != 255: IndexError: index 160 is out of bounds for axis 1 with size 160

    opened by Miracle1981 1
Owner
null
Spacecrypto-bombcrypto-bot - SpaceCrypto And Bombcrypto Bot - MultiScreen

SpaceCrypto And Bombcrypto Bot - MultiScreen This is a open source project inspi

Paulo Bramante 5 Nov 3, 2022
My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA

My solutions to adventofcode.com puzzles. I post videos of me solving the puzzles in real-time at https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41

null 195 Jan 4, 2023
CoWIN Vaccination slot booking telegram bot with auto captcha resolver & alerting feature.Now, never miss a slot.

COWIN VACCINATION SLOT AUTO BOOKING (Bot with captcha solving & alerting capabilities. Never miss the vaccine slot.) June-10-2021/ 0030 hrs: 23 succes

Shashank Bafna 17 Nov 12, 2022
A Telegram Bot which will ask new Group Members to verify them by solving an emoji captcha.

Emoji-Captcha-Bot A Telegram Bot which will ask new Group Members to verify them by solving an emoji captcha. About API: Using api.abirhasan.wtf/captc

Abir Hasan 52 Dec 11, 2022
A discord token creator that uses the service capmonster for captcha solving!

Discord Token Creator A discord token creator that uses the service capmonster for captcha solving! Report Bug · Request Feature Features Autojoin dis

dropout 41 Oct 25, 2021
A python library for anti-captcha.com

AntiCaptcha A python library for anti-captcha.com Documentation for the API Requirements git Install git clone https://github.com/ShayBox/AntiCaptcha.

Shayne Hartford 3 Dec 16, 2022
Create Discord Accounts Semi-Automatically Without Captcha Solving API Key

Discord-Account-Generator Create Discord Accounts Semi-Automatically without captcha solving api key IMPORTANT: Your chromedriver version should be th

NotSakshyam 11 Mar 21, 2022
DDoS Script (DDoS Panel) with Multiple Bypass ( Cloudflare UAM,CAPTCHA,BFM,NOSEC / DDoS Guard / Google Shield / V Shield / Amazon / etc.. )

KARMA DDoS DDoS Script (DDoS Panel) with Multiple Bypass ( Cloudflare UAM,CAPTCHA,BFM,NOSEC / DDoS Guard / Google Shield / V Shield / Amazon / etc.. )

Hyuk 256 Jan 2, 2023
Cleiton Leonel 4 Apr 22, 2022