aplesner / Breaking-reCAPTCHAv2

Code for the paper Breaking reCAPTCHAv2 accepted at COMPSAC 2024
195 stars 28 forks source link

Breaking reCAPTCHAv2

Code for the paper Breaking reCAPTCHAv2 accepted at COMPSAC 2024 (https://arxiv.org/abs/2409.08831).

Introduction

CAPTCHAs (Completely Automated Public Turing Tests to Tell Computers and Humans Apart) have been a vital security measure on the internet, protecting websites from automated bots and malicious activities. However, with the rapid advancements in machine learning and artificial intelligence, the effectiveness of CAPTCHAs in distinguishing between humans and machines has come into question.

This project focuses on Google's reCAPTCHAv2 system, which is widely used across the web. We aim to analyze the effectiveness of reCAPTCHAv2 in rejecting bots using advanced deep learning models such as YOLO (You Only Look Once). Our research explores the vulnerabilities of image-based CAPTCHAs and develops efficient methods to solve them using state-of-the-art machine learning techniques.

Our main findings include:

CAPTCHA Example CAPTCHA Result

Requirements

Installation

  1. Clone the repository

  2. Install the required libraries:

    pip install -r requirements.txt
  3. Download and set up Geckodriver:

    • Download Geckodriver from the official website: Geckodriver Releases
    • Extract the downloaded archive and add the path to the geckodriver executable to your system's PATH environment variable.

Usage

Data

Project Structure

This project has the following directory structure:

System Compatibility

Please note that the code in this project was developed and tested on macOS M1. While most of the code should be compatible with other operating systems, certain functionalities, such as the VPN script (vpn.py), may not work on non-macOS systems. If you encounter any issues running the code on a different operating system, please refer to the documentation of the specific libraries or tools used in the project for guidance on how to set them up for your system.