What's new
Runion

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Project - mass acc creation script through Selenium

Benten22

Light Weight
Депозит
$0
Hello everyone! I trust you're all doing well. It's your friendly neighborhood chucklehead c0dy.

I'm a newcomer to this community and wanted to share some of my work for advice, guidance, or anyone who might find it useful as a gift. To start, here's a simple script I've created for email creation automation. I know, I know, you can find similar scripts all over Hitlerub, but I'm in the process of learning Selenium, and I thought this would be a great project to begin with.
I chose Outlook for email, more out of randomness than anything else. Of course, I plan to change it later to an email provider that respects user privacy, perhaps Proton?

Here's a rundown of what im trying to achieve in the code:
Thorough concept explanation
Implementation of basic automation
Implementation of captcha bypass
Implementation of a list of usable usernames / passwords as variables in the script
Proxy connection for each account to have a unique IP associated
give the script more function - i.e mass socail media / discord acc creation script
Server host script
have a beer
Date: 10/01/2024
I've successfully created the script to automate the process of entering a new email, a username, and the birth month / day / year. However, I've hit a roadblock when it comes to bypassing the captcha. im yet ot come accross an article or post on how to bypass the captcha. it seems that most people who have made scripts like this purposely leave out there capatha bypass and then sell that code on there website. Im assuming this is to stop companies in discovering there bypass by having a paywall.

ofc I dont want to go that route. so any article / advice worth reading or a point in the right direction would be appreciated.

img1



img 2
I'm eager to learn how to bypass this. Any articles, posts, or general advice would be greatly appreciated!

posted code as text sense DL file might seem sus af.

script as of 01/10/24
Код:
Скопировать в буфер обмена
# Web automation script
# Please enjoy and feel free to use
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import TimeoutException
import time

driver = webdriver.Chrome ( )

# For Email creation through outlook
driver.get ( 'https://signup.live.com/signup?cobr...lc=1033&uaid=0b0142ed87794b82b0de03f7ec8d4fe5')

element = WebDriverWait ( driver, 20 ) .until (
EC.element_to_be_clickable ( ( By.ID, 'liveSwitch' ) )
)

element.click ( )
time.sleep (2)

member_name_element = WebDriverWait ( driver, 10 ) .until (
EC.presence_of_element_located ( ( By.ID, 'MemberName' ) )
)

member_name_element.send_keys('TESTINGusername12364213')

driver.execute_script("OnNext();")

# more gobbolty gook
password_element = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable((By.ID, 'PasswordInput'))
)
password_element.send_keys('TestingPassword')
time.sleep(2)

# Execute JavaScript to click the next button
driver.execute_script("document.getElementById('iSignupAction').click();")

# Wait sequince
first_name_element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.ID, 'FirstName'))
)

# first name
first_name_element.send_keys('YourFirstName')

# Wait for the 'LastName' element to be present
last_name_element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.ID, 'LastName'))
)

# last name
last_name_element.send_keys('YourLastName')

driver.execute_script("document.getElementById('iSignupAction').click();")

# Couldent figure out, straight ripped from web action becouse im a caveman
try:
day_input = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.ID, 'BirthDay'))
)
month_input = driver.find_element(By.ID, 'BirthMonth')
year_input = driver.find_element(By.ID, 'BirthYear')

day_input.send_keys('11')
month_select = Select(month_input)
month_select.select_by_value('8')
year_input.send_keys('1992')
except TimeoutException:
print("TimeoutException: Script failed to locate the birthdate elements.")
driver.quit()


try:
next_button = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable ((By.ID, 'iSignupAction'))
)
time.sleep (2)
driver.execute_script ("arguments [0] .scrollIntoView (true);", next_button)
next_button.click ()
except TimeoutException:
print ("TimeoutException: Script failed to locate the 'Next' button.")
driver.quit ()

try:
# Adjust the time if needed
next_puzzle_button = WebDriverWait (driver, 10) .until (
EC.element_to_be_clickable ((By.XPATH, "//button [@ data-theme = 'home.verifyButton']"))
)
print ("Found the 'Next' button after solving the puzzle.")
next_puzzle_button.click ()
except TimeoutException:
print ("TimeoutException: Script failed to locate the 'Next' button after solving the puzzle.")
driver.quit ()
time.sleep (2)

input ("Press Enter to close the script")

driver.quit ()
Вложения
Screenshot from 2024-01-10 12-25-28.png
Screenshot from 2024-01-10 12-25-28.png
Последнее редактирование модератором: 11.01.2024
 
Top