An open API service indexing awesome lists of open source software.

https://github.com/the-real-virus/pycaptcha

pyCAPTCHA: A Simple & Secure CAPTCHA Generator ! Generate and verify CAPTCHA images effortlessly with pyCAPTCHA – a lightweight, user-friendly, and interactive Python-based solution.
https://github.com/the-real-virus/pycaptcha

ai automation bash captcha captcha-generator coding ctf cyber-security ethical-hacking github linux networking open-source pentesting programming python redteam scripting software tools

Last synced: 9 months ago
JSON representation

pyCAPTCHA: A Simple & Secure CAPTCHA Generator ! Generate and verify CAPTCHA images effortlessly with pyCAPTCHA – a lightweight, user-friendly, and interactive Python-based solution.

Awesome Lists containing this project

README

          

# 💀pyCAPTCHA💀

## 📜 Description
pyCAPTCHA is a lightweight and interactive CAPTCHA generator built with Python. It provides an easy way to generate and verify CAPTCHA images, preventing automated bots from accessing protected areas of an application.

## 🔑 Features
- 🖼️ **Image-Based CAPTCHA**: Generates random 6-digit CAPTCHA images.
- 🎨 **Custom Font Support**: Uses user-defined fonts for better customization.
- 💡 **User-Friendly Interface**: Built with `tkinter` for a smooth experience.
- ✅ **Cross-Platform Compatibility**: Works on Windows, macOS, and Linux.
- 🔄 **Auto-Refresh on Incorrect Input**: Automatically generates a new CAPTCHA if verification fails.
- ⚡ **Lightweight & Fast**: Minimal dependencies and efficient performance.

## 🚀Step-by-Step Guide in Linux Terminal !

Step 1: Update & upgrade your system
>sudo apt update

>sudo apt upgrade

Step 2: install Dependencies
>pip install captcha --break-system-packages

>sudo apt install python3-pillow

Step 3: Clone the repository
>git clone https://github.com/The-Real-Virus/pyCAPTCHA.git

Step 4: Go to the Tool Directory where u clone it
>cd pyCAPTCHA

Step 5: After Completing the process now u can run script
>python3 pycaptcha.py

## 💡 Tips !
- Make sure you have the required fonts (`ChelseaMarketsr.ttf` & `DejaVuSanssr.ttf`) in the script directory.
- If fonts are missing, replace them with system fonts.
- If you're running this on a different OS, update the font paths accordingly.

## 🤝 Follow the Prompts !
1. **Install Dependencies:**
```bash
follow step 2
```
2. **Run the script:**
```bash
python3 pycaptcha.py
```
3. **Enter the CAPTCHA displayed in the image.**
4. **Click "Submit" to verify or "Refresh" to generate a new one.**

## ⚙️ Troubleshooting
### ❌ `ModuleNotFoundError: No module named 'captcha'`
✅ **Solution:** Install the `captcha` module:
```bash
follow step 2
```

### ❌ `OSError: cannot open resource`
✅ **Solution:**
- Ensure font files are in the correct location.
- Use absolute paths in the script.
- Try using a system font instead.

### ❌ `ValueError: invalid literal for int() with base 10`
✅ **Solution:** Enter only numeric values in the input field.

## 🛠️MODIFICATION

IF U WANT TO MODIFY OR USE THE SCRIPT IN UR PROJECTs , CONSIDER GIVING CREDITS !

## 📂 Example Output
```
[INFO] Generating CAPTCHA: 728349
[INFO] CAPTCHA saved as captcha.png
[INFO] User entered: 728349
[SUCCESS] CAPTCHA Verified!
```
# ⚠️Disclaimer !
This tool is intended for ethical and educational use only.
Do not use it for illegal activities. The author is not responsible for any misuse.
This script is intended for educational purposes and authorized testing only.
Unauthorized use of this script is illegal and unethical.
Ensure you have explicit permission before testing any system.
- Obtain explicit permission before testing any system.
- Adhere to all applicable laws and regulations.
- Respect user privacy and data.
- By using this script, you agree to take full responsibility for your actions.