royalemaster777
High Performance Computing Expert
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 2
700 XP
HISmile toothpaste the toothpaste brand all over tiktok is doing a giveaway, so I create a script that abuses this to set it up just download Firefox browser, download python, pip install selenium, edit the email in the code ( random_email = f"{random_name}@catchallemail.co.uk" ) you can change how many threads run at a time: thread_count = 1
Code is super messy as I made this in 20 minutes but seems to be working with no issues for me
Download:
Code:
Download:
Virus Total: https://www.virustotal.com/gui/file...3f239aeccd2b71129307496f0c84e62b1e5?nocache=1
Virustotal link https://www.virustotal.com/gui/file...3f239aeccd2b71129307496f0c84e62b1e5?nocache=1
Code is super messy as I made this in 20 minutes but seems to be working with no issues for me
Download:
You must reply in the thread to view hidden content. Upgrade your account to always see hidden content.
Code:
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import random
import string
import threading
import time
import requests
from bs4 import BeautifulSoup
PROXY_LIST = []
PROXY_REFRESH_COUNT = 10
def get_proxies():
global PROXY_LIST
url = "https://www.sslproxies.org/"
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36"
}
soup = BeautifulSoup(requests.get(url, headers=headers).content, "html.parser")
# Get the list of proxies
proxy_list = []
for row in soup.select("tr")[1:]: # Skipping header
columns = row.select("td")
if len(columns) > 2: # Ensure we have enough columns for IP and Port
proxy_list.append({"ip": columns[0].text, "port": columns[1].text})
PROXY_LIST = random.sample(proxy_list, 10) # Select 10 random proxies
def get_random_proxy_from_list():
global PROXY_LIST
return random.choice(PROXY_LIST)
def enter_giveaway():
proxy = get_random_proxy_from_list()
print(f"Using proxy: {proxy['ip']}:{proxy['port']}")
# Set up Firefox options for headless mode
options = webdriver.FirefoxOptions()
options.headless = True
options.add_argument("--headless")
# Set up proxy
options.add_argument(f"--proxy-server={proxy['ip']}:{proxy['port']}")
driver = webdriver.Firefox(options=options)
driver.get("https://hismileteeth.com/pages/100-giveaway-toothpaste?rdr=1")
random_name = ''.join(random.choices(string.ascii_letters, k=7))
random_email = f"{random_name}@yourcatchallemail.co.uk"
wait = WebDriverWait(driver, 20)
first_name_input = wait.until(EC.presence_of_element_located((By.XPATH, '//input[@placeholder="First Name"]')))
first_name_input.send_keys(random_name)
print(random_name)
email_input = wait.until(EC.presence_of_element_located((By.XPATH, '//input[@aria-label="Email"]')))
email_input.send_keys(random_email)
print(random_email)
enter_now_button = wait.until(EC.presence_of_element_located((By.XPATH, '//button[text()="Enter Now"]')))
enter_now_button.click()
wait.until(EC.presence_of_element_located((By.XPATH, '/html/body/main/div/div/div/form/div/div[1]/div/div/p/span')))
print("Completed")
driver.quit()
def main():
global PROXY_LIST
thread_count = 1
completed_entries = 0
attempts = 0
get_proxies() # Initially fetch the proxies
while True:
time.sleep(1)
threads = []
# Start threads
for _ in range(thread_count):
t = threading.Thread(target=enter_giveaway)
t.start()
threads.append(t)
# Wait for all threads to finish
for t in threads:
t.join()
completed_entries += thread_count
attempts += thread_count
if attempts >= PROXY_REFRESH_COUNT:
print("Refreshing proxy list...")
get_proxies()
attempts = 0 # Reset the attempts counter
print(f"Completed {completed_entries} entries.")
if __name__ == "__main__":
main()
You must reply in the thread to view hidden content. Upgrade your account to always see hidden content.
Loading…
www.virustotal.com