OP Posted at 27-10-2025, 05:36 PM
(This post was last modified: 27-10-2025, 06:05 PM by Manfruity.)
No captcha, bypasses cloudflare as long as you are not gay.
Instructions:
Instructions:
- pip install undetected-chromedriver selenium
- Install google chrome if you dont have it
- Add your message line 12
- Open patched.sh in a logged in session export cookies and put them in "cookies.json"
https://chromewebstore.google.com/detail...fddnkalmdm
- Run it on a server 24/7 to rape the marketplace even more
[ Hidden Content! ]
Code:
import json
import time
from datetime import datetime
import undetected_chromedriver as uc
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
message = "" # Message to send (Max 176 characters)
delay = 1810 # Delay in seconds (Min 1800)
show = True # Show browser (Recommended TRUE otherwise may cause Cloudflare issues)
with open('cookies.json', 'r') as file:
cookies = json.load(file)
options = uc.ChromeOptions()
options.add_argument("--start-maximized")
if not show:
options.add_argument("--headless")
options.add_argument("--window-size=1440,960")
options.add_argument("user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/91.0.4472.124 Safari/537.36")
driver = uc.Chrome(options=options)
def check_and_solve_captcha():
time.sleep(5)
if "Attention Required!" in driver.title or "Cloudflare" in driver.page_source:
print("Cloudflare Captcha or Challenge Detected! Please solve it manually.")
WebDriverWait(driver, 300).until_not(
EC.title_contains("Attention Required!")
)
print("Captcha cleared manually or expired.")
return True
return False
driver.get("https://patched.sh")
time.sleep(3)
for cookie in cookies:
cookie.pop("storeId", None)
if cookie.get("sameSite") not in ["Strict", "Lax", "None"]:
cookie.pop("sameSite", None)
if "domain" not in cookie or not cookie["domain"]:
cookie["domain"] = ".patched.sh"
try:
driver.add_cookie(cookie)
except Exception as e:
print(f"Failed to add cookie: {cookie.get('name', 'unknown')} | Error: {e}")
driver.refresh()
time.sleep(3)
if check_and_solve_captcha():
driver.refresh()
time.sleep(5)
# Main loop
while True:
driver.refresh()
if check_and_solve_captcha():
continue
try:
marketplace_button = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable((By.XPATH, "//ul[@class='chat-channels']//button[text()='Marketplace']"))
)
marketplace_button.click()
print("Switched to the Marketplace tab.")
except Exception as e:
print(f"Error clicking Marketplace tab: {e}")
input_field = None
for _ in range(3):
try:
input_field = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.XPATH, "//input[@type='text' and @placeholder='Message #marketplace']"))
)
if input_field.get_attribute('value') != "":
input_field.clear()
break
except Exception as e:
print(f"Error finding input field, retrying...: {e}")
time.sleep(2)
if input_field:
try:
input_field.send_keys(message)
except Exception as e:
print(f"Error sending message: {e}")
else:
print("Failed to find input field after retries.")
time.sleep(1)
try:
send_button = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable((By.XPATH, "//button[@class='chat-form-controls-send']"))
)
send_button.click()
print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Message Sent: {message}")
except Exception as e:
print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Failed to Send: {e}")
time.sleep(delay)





![[Image: signature.webp]](https://patched.to/pbb-proxy/UUNCQ0JeTUoCQl0JAEtaVklWEURdREoaWl4GHxVZUQtYQ0NBVEoVAAZH/signature.webp)