Skip to content

Commit

Permalink
Update cloudflare_bypass.py
Browse files Browse the repository at this point in the history
  • Loading branch information
0xYumeko authored Oct 22, 2024
1 parent cd4956c commit 9c44169
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions cloudflare_bypass.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from DrissionPage import ChromiumPage, ChromiumOptions
from colorama import Fore, Style

# Header design with stars and improved spacing
def print_logo():
logo = f"""
{Fore.RED}******************************************************************************{Style.RESET_ALL}
Expand All @@ -20,7 +19,6 @@ def print_logo():
"""
print(logo)

# Function to print status messages with proper formatting
def print_status(message, status_type='info'):
if status_type == 'info':
print(f"{Fore.BLUE}[INFO] {Style.RESET_ALL}{message}")
Expand All @@ -31,7 +29,6 @@ def print_status(message, status_type='info'):
elif status_type == 'error':
print(f"{Fore.RED}[ERROR] {Style.RESET_ALL}{message}")

# CAPTCHA bypass cycle with organized steps and status updates
def pass_cycle(_driver: ChromiumPage):
try:
if _driver('xpath://div/iframe').s_ele(".ctp-checkbox-label") is not None:
Expand All @@ -44,13 +41,12 @@ def pass_cycle(_driver: ChromiumPage):


if __name__ == '__main__':
print_logo() # Display the enhanced logo
print_logo()

browser_path = "/usr/bin/google-chrome"

# Set Chromium options
options = ChromiumOptions()
options.set_paths(browser_path=browser_path) # Setting the browser path
options.set_paths(browser_path=browser_path)

arguments = [
"-no-first-run",
Expand All @@ -67,17 +63,14 @@ def pass_cycle(_driver: ChromiumPage):
"-disable-gpu"
]

# Apply Chromium arguments for better performance
for argument in arguments:
options.set_argument(argument)

# Initialize the ChromiumPage
driver = ChromiumPage(options=options)

print_status("Launching the browser and opening the website...", "info")
driver.get('https://nowsecure.nl')

# Loop to check for the CAPTCHA and bypass if detected
while True:
pass_cycle(driver)
try:
Expand Down

0 comments on commit 9c44169

Please sign in to comment.