This project is a CLI tool for testing various types of captchas including puzzle, text, complicated text, and reCAPTCHA using Python and Selenium. The tool also uses OpenAI GPT-4 to help solve the captchas.
- Python 3.7+
- Firefox Browser
- Imgur Account for uploading images
- OpenAI Account for GPT-4 API
-
Clone the repository:
git clone https://github.com/aydinnyunus/gpt4-captcha-bypass cd gpt4-captcha-bypass
-
Install the required Python packages:
pip install -r requirements.txt
-
Create a
.env
file in the root directory of your project and add your Imgur Client ID and OpenAI API Key:echo "OPENAI_API_KEY=sk-your-openai-api-key" > .env echo "IMGUR_CLIENT_ID=your-imgur-client-id" >> .env
-
Make sure you have the
geckodriver
for Firefox installed. You can install it usingwebdriver-manager
:pip install webdriver-manager
Run the CLI tool with the desired captcha type:
python captcha_tester.py [captcha_type]
where [captcha_type]
can be one of: puzzle
, text
, complicated_text
, recaptcha
.
Example:
python captcha_tester.py text
text
: Tests simple text captchas.complicated_text
: Tests complicated text captchas.recaptcha
: Tests Google's reCAPTCHA.puzzle
: Tests puzzle captchas.
![image](https://private-user-images.githubusercontent.com/52822869/348546365-840a58c5-4a5b-47fe-89a3-845063585907.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNDMwMzQsIm5iZiI6MTcyNDI0MjczNCwicGF0aCI6Ii81MjgyMjg2OS8zNDg1NDYzNjUtODQwYTU4YzUtNGE1Yi00N2ZlLTg5YTMtODQ1MDYzNTg1OTA3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDEyMTg1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0OWYzMGEwNjc1NDVlOWVjM2U4MWZiMzQwYjA0NjYzMzllNjU3ODVmZThlNjEzNjQxYjgzZGMyYWI3MWUzNTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.JnJ5JKaP9y1OKug38lXEtVi0-BSZfWBX-gKQEpUBjuE)
![image](https://private-user-images.githubusercontent.com/52822869/348546451-409e2386-2db5-4af7-9150-f374f7ee4ac6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNDMwMzQsIm5iZiI6MTcyNDI0MjczNCwicGF0aCI6Ii81MjgyMjg2OS8zNDg1NDY0NTEtNDA5ZTIzODYtMmRiNS00YWY3LTkxNTAtZjM3NGY3ZWU0YWM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDEyMTg1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmZWE5YTQzMzg3MzA3NDUwZjY0ODc5YjBmYzJjZGM4MTUxYjU3MzBmYWExMDAwZWM5NTY5MjQ0NWVlZDk2NjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iRud2MqMIygJTkOgjpjSztPDGRVDU03JS_9QLTpefEQ)
Recaptcha and Slider may be bypassed in average 10 attempts.
![image](https://private-user-images.githubusercontent.com/52822869/348571421-1972322b-fd6b-4641-8cdf-a74e53311de7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNDMwMzQsIm5iZiI6MTcyNDI0MjczNCwicGF0aCI6Ii81MjgyMjg2OS8zNDg1NzE0MjEtMTk3MjMyMmItZmQ2Yi00NjQxLThjZGYtYTc0ZTUzMzExZGU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDEyMTg1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3MDE3MTdmNzQzMDM5MGYzOTIyNmUxZWQ5NDA0YzUyYzkyMzg0Y2Y2YmUwMWY1ZjY3ZWU4ODFkNjk0OTE3OWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.2lgIcVkYOv2yIzvZv5J6U5-duGgV55MLpII3N-FAmWc)
![image](https://private-user-images.githubusercontent.com/52822869/348571502-fe7c5c5b-e8d3-4f03-9c94-e778c849640a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNDMwMzQsIm5iZiI6MTcyNDI0MjczNCwicGF0aCI6Ii81MjgyMjg2OS8zNDg1NzE1MDItZmU3YzVjNWItZThkMy00ZjAzLTljOTQtZTc3OGM4NDk2NDBhLnBuZz9YLUFtei1BbGdvcml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