selenium gets detected through normal automated login, which brings up a recaptcha. however, if you login through the iframe on their selenium page, that seems to bypass the captcha.
((WARNING i'm very new at coding))
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
ff_profile = FirefoxProfile()
ff_profile.set_preference("general.useragent.overr ide", "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1")
browser = webdriver.Firefox(firefox_profile = ff_profile)
browser.set_window_size(800, 800)
browser.get('https://www.whatismybrowser.com')
browser.get('https://www.gaiaonline.com/selenium/core/TestRunner.html?test=..%2Fforum%2F&resultsUrl=..%2 FpostResults')
time.sleep(3)
selTest = browser.find_element_by_id('runSeleniumTest')
selTest.click()
time.sleep(3)
iframe = browser.find_element_by_id('myiframe')
browser.switch_to.frame(iframe)
userName = browser.find_element_by_id('username')
userName.send_keys('USERNAME GOES HERE')
passWord = browser.find_element_by_id('password')
passWord.send_keys('PASSWORD GOES HERE')
signInButton = browser.find_element_by_id('signInButton')
signInButton.send_keys(Keys.ENTER)
Results 1 to 4 of 4
Thread: forum bot proof of concept???
- 20 Nov. 2019 12:13am #1
forum bot proof of concept???
- 20 Nov. 2019 01:45am #2
- Join Date
- Apr. 2013
- Location
- Minnesota
- Posts
- 1,325
- Reputation
- 114
- LCash
- 0.00
lol that got blocked quick
https://discord.gg/TvN6xUb ~ chat on discord pls.
- 20 Nov. 2019 10:25am #3
damn. sorry guys. i’ll try to be more discreet from now on
- 20 Nov. 2019 05:16pm #4
- Join Date
- Apr. 2013
- Location
- Minnesota
- Posts
- 1,325
- Reputation
- 114
- LCash
- 0.00
i don't think it was your fault, a few of us were looking at it earlier this week so some random activity probably got flagged and they realized that was something not good to have exposed to the public.
https://discord.gg/TvN6xUb ~ chat on discord pls.