Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
thepycoach authored Jan 10, 2023
1 parent 66b83d7 commit 8e01f46
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
29 changes: 29 additions & 0 deletions bypass/bypass-2captcha.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import undetected_chromedriver as uc
from twocaptcha import TwoCaptcha
import time

web = "https://www.google.com/recaptcha/api2/demo"
driver = uc.Chrome()
driver.get(web)

# Site Key
sitekey = driver.find_element(by='id', value='recaptcha-demo').get_attribute('data-sitekey')
print(sitekey)

api_key = "YOUR_API"
solver = TwoCaptcha(api_key)
print("Solving captcha...")
response = solver.recaptcha(
sitekey=sitekey,
url=web,
)

print(f'Captcha Key: {response["code"]}')

# Send Captcha Key to form
driver.execute_script("document.getElementById('g-recaptcha-response').value = '{}';".format(response["code"]))

# Click Submit
driver.find_element(by='xpath', value='//*[@id="recaptcha-demo-submit"]').click()

time.sleep(5)
12 changes: 12 additions & 0 deletions bypass/bypass-cloudflare.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from undetected_chromedriver import Chrome
import time

# create a new instance of Chrome
chrome = Chrome()

# navigate to the website
chrome.get("https://example.com")

time.sleep(10)
# close the browser
chrome.close()

0 comments on commit 8e01f46

Please sign in to comment.