captcha 相关问题

验证码是一种用于计算的质询 - 响应测试,旨在确保响应由人类提供而不是由计算机生成。

工作证明登录而不是验证码

我刚刚在github上看到了这个天才脚本: https://github.com/jsavoie/proof-of-work-login 我的问题是:为什么 POW 登录在 2018 年还没有成为世界标准?这绝对是天才! 为什么...

回答 4 投票 0

在puppeteer中运行hcaptcha的回调函数

有没有办法在puppeteer中运行这个函数来提交hcaptcha? 我已经将验证码的 h-captcha-response 加载到文本字段中,我只需要在 puppeteer 中运行回调即可...

回答 1 投票 0

当 CAPTCHA 嵌入 iframe 中时,如何使用 2Captcha 解决 LinkedIn 上的 Arkose FunCaptcha?

我尝试在 Python/Selenium/Google Chrome 脚本中通过 2Captcha 登录 LinkedIn 时自动解决验证码。 为此,根据我之前提出的问题的答案,我加载...

回答 1 投票 0

为什么 AWS WAF 智能威胁 API 无声挑战永远不会失败

我一直在尝试在我的网站上实施 AWS WAF 智能威胁缓解。 SPA 中的网站。 当网站加载时,它会调用 AwsWafIntegration.fetchToken() ,该函数应该执行

回答 1 投票 0

Google recaptcha 远程 IP 解释

在recaptcha的文档中它说remoteip参数是可选的,但我不明白它的目的,因为即使我发送与REMOTE_ADDR不同的IP,来自Googl的响应...

回答 2 投票 0

如何将验证码添加到Typo3 FORM cObj?

根据官方表单扩展文档,有一个CAPTCHA FormObject: 该对象将搜索已安装的验证码扩展并使用它 在放置的位置...

回答 1 投票 0

在 iOS 上使用 Firebase 进行电话身份验证时出现 go_router 错误

我正在制作一个 Flutter 应用程序,并使用 go_router 作为我的路由器。一切正常,但当我想使用 Firebase 验证自己身份时,代码已发送,但随后我被重定向到未知路线&quo...

回答 1 投票 0

在 Selenium 上绕过 Cloudflare 验证码

我尝试过调整窗口大小、unDetected_chrome_driver 和 chrome_options.add_argument("user-data-dir=selenium"),但在 Python 中似乎没有任何效果。 该网站是 https://www.chosic.com/

回答 1 投票 0

Python 请求指纹识别?

我正在编写一个亚马逊API,当仅使用Python请求而不使用代理时,它会提示输入验证码。当通过fiddler路由这个python请求流量时,它似乎没有通过...

回答 1 投票 0

需要挑战才能授权请求

我正在开发 Roblox 的登录 api。我想我已经到了最后阶段,我最后一次调用 api。我正在使用 funcaptcha 库,我生成挑战令牌并通过: “ctype”...

回答 1 投票 0

绕过 Twitter 上的 funcaptcha

我在 Twitter 页面上使用 selenium 绕过 Arkoselabs Funcaptcha 时遇到问题。 我无法提交令牌,因为没有任何提交按钮。 当我尝试粘贴令牌并单击随机图片时...

回答 2 投票 0

通过编码改变验证码图像

我使用以下验证码可以正常工作: 我使用以下正确运行的验证码: <?php session_start(); //You can customize your captcha settings here $captcha_code = ''; $captcha_image_height = 50; $captcha_image_width = 130; $total_characters_on_image = 6; //The characters that can be used in the CAPTCHA code. //avoid all confusing characters and numbers (For example: l, 1 and i) $possible_captcha_letters = 'bcdfghjkmnpqrstvwxyz23456789'; $captcha_font = './monofont.ttf'; $random_captcha_dots = 45; $random_captcha_lines = 20; $captcha_text_color = "0x021f64"; $captcha_noise_color = "0x021f64"; $count = 0; while ($count < $total_characters_on_image) { $captcha_code .= substr( $possible_captcha_letters, mt_rand(0, strlen($possible_captcha_letters)-1), 1); $count++; } $captcha_font_size = $captcha_image_height * 0.65; $captcha_image = @imagecreate( $captcha_image_width, $captcha_image_height ); /* setting the background, text and noise colours here */ $background_color = imagecolorallocate( $captcha_image, 255, 255, 255 ); $array_text_color = hextorgb($captcha_text_color); $captcha_text_color = imagecolorallocate( $captcha_image, $array_text_color['red'], $array_text_color['green'], $array_text_color['blue'] ); $array_noise_color = hextorgb($captcha_noise_color); $image_noise_color = imagecolorallocate( $captcha_image, $array_noise_color['red'], $array_noise_color['green'], $array_noise_color['blue'] ); /* Generate random dots in background of the captcha image */ for( $count=0; $count<$random_captcha_dots; $count++ ) { imagefilledellipse( $captcha_image, mt_rand(0,$captcha_image_width), mt_rand(0,$captcha_image_height), 2, 3, $image_noise_color ); } /* Generate random lines in background of the captcha image */ for( $count=0; $count<$random_captcha_lines; $count++ ) { imageline( $captcha_image, mt_rand(0,$captcha_image_width), mt_rand(0,$captcha_image_height), mt_rand(0,$captcha_image_width), mt_rand(0,$captcha_image_height), $image_noise_color ); } /* Create a text box and add 6 captcha letters code in it */ $text_box = imagettfbbox( $captcha_font_size, 0, $captcha_font, $captcha_code ); $x = ($captcha_image_width - $text_box[4])/2; $y = ($captcha_image_height - $text_box[5])/2; imagettftext( $captcha_image, $captcha_font_size, 0, $x, $y, $captcha_text_color, $captcha_font, $captcha_code ); /* Show captcha image in the html page */ // defining the image type to be shown in browser widow header('Content-Type: image/jpeg'); imagejpeg($captcha_image); //showing the image imagedestroy($captcha_image); //destroying the image instance $_SESSION['captcha'] = $captcha_code; function hextorgb ($hexstring){ $integar = hexdec($hexstring); return array("red" => 0xFF & ($integar >> 0x10), "green" => 0xFF & ($integar >> 0x8), "blue" => 0xFF & $integar); } ?> 以上代码的结果: 正如您在图像中看到的,生成的验证码图像只有一种颜色,这非常烦人。 我希望生成的验证码图像的每个部分都有不同的颜色,这样除了让机器人更难猜到之外,它看起来很漂亮。 我正在寻找的是生成验证码图像,如下所示: 是否需要一个单独的库来生成这样的验证码图像,或者可以通过代码中的一些更改来实现吗? 您不需要为此使用单独的库,但您需要更新在图像上分配颜色和绘制元素的方式。 将文本、点和线的颜色修改为随机的 元素。 更新绘制验证码文本、点和字符的代码 具有随机颜色的线条。 调整范围内的颜色分配 点和线循环以确保生成随机颜色。 您可以尝试以下代码:: <?php session_start(); // You can customize your captcha settings here $captcha_code = ''; $captcha_image_height = 50; $captcha_image_width = 130; $total_characters_on_image = 6; // The characters that can be used in the CAPTCHA code. // Avoid all confusing characters and numbers (For example: l, 1, and i) $possible_captcha_letters = 'bcdfghjkmnpqrstvwxyz23456789'; $captcha_font = './monofont.ttf'; $random_captcha_dots = 45; $random_captcha_lines = 20; $count = 0; while ($count < $total_characters_on_image) { $captcha_code .= substr( $possible_captcha_letters, mt_rand(0, strlen($possible_captcha_letters)-1), 1 ); $count++; } $captcha_font_size = $captcha_image_height * 0.65; $captcha_image = @imagecreate( $captcha_image_width, $captcha_image_height ); /* Generate random dots and lines in the background of the captcha image */ for ($count = 0; $count < $random_captcha_dots; $count++) { $image_noise_color = imagecolorallocate( $captcha_image, mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255) ); imagefilledellipse( $captcha_image, mt_rand(0, $captcha_image_width), mt_rand(0, $captcha_image_height), 2, 3, $image_noise_color ); } for ($count = 0; $count < $random_captcha_lines; $count++) { $image_noise_color = imagecolorallocate( $captcha_image, mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255) ); imageline( $captcha_image, mt_rand(0, $captcha_image_width), mt_rand(0, $captcha_image_height), mt_rand(0, $captcha_image_width), mt_rand(0, $captcha_image_height), $image_noise_color ); } /* Create a text box and add 6 captcha letters code in it */ $text_box = imagettfbbox( $captcha_font_size, 0, $captcha_font, $captcha_code ); $x = ($captcha_image_width - $text_box[4]) / 2; $y = ($captcha_image_height - $text_box[5]) / 2; $captcha_text_color = imagecolorallocate( $captcha_image, mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255) ); imagettftext( $captcha_image, $captcha_font_size, 0, $x, $y, $captcha_text_color, $captcha_font, $captcha_code ); /* Show captcha image in the HTML page */ // Defining the image type to be shown in the browser window header('Content-Type: image/jpeg'); imagejpeg($captcha_image); // Showing the image imagedestroy($captcha_image); // Destroying the image instance $_SESSION['captcha'] = $captcha_code; ?>

回答 1 投票 0

ReCaptcha 2.0:如果 recaptcha 成功,则启用回调上的“提交”按钮

我有一个非常简单的表格,如下所示。我想禁用“提交”按钮,并且仅在用户成功完成 ReCaptcha 后才启用。 我假设我会...

回答 2 投票 0

如何使 reCAPTCHA 与 ASP.Net 中的 ValidationGroup 配合使用 (captcha)

我正在使用reCAPTCHA提供的ASP.Net插件和控件。如果 Web 表单上的提交按钮不在验证组中,我可以成功地使控件正常工作。没有验证...

回答 7 投票 0

验证码图像未显示在本地主机上

我为 WordPress 主题设计了一个简单的联系表单,并在表单内使用了一个简单的验证码图像。 我的主要问题是未生成验证码图像。 我已经安装了 GD 库...

回答 1 投票 0

我们应该使用验证码进行注册吗?

我知道这不是一个真正的编程问题,但我不知道在哪里问。 我应该在注册表单中使用验证码吗? Facebook、twitter、foursquare、gowalla 等...不要使用其中之一(或不使用 v...

回答 4 投票 0

如何解决Selenium上的隐形验证码

嗨,我正在尝试使用 Selenium 为 UEFA.com 编写一个注册机器人,我发现这对我来说太难尝试了,所以我只是致力于自动化注册过程,即使它有很多慢...

回答 2 投票 0

如何在 django 中使用验证码字段对表单进行单元测试?

我想通过提交表单来对 django 视图进行单元测试。问题是这个表单有一个验证码字段(基于 django-simple-captcha)。 从 django 导入表单 从 captcha.fields 导入

回答 8 投票 0

带有 jQuery 验证插件的验证码

我正在使用著名的 jQuery 验证插件,我想实现验证码控件。在他们的演示部分页面上有这个,但似乎有一个问题:当您单击图像时

回答 1 投票 0

hCaptcha - 如果未检查/验证验证码,如何阻止页面在提交时刷新

我已将 hCaptcha 安装到我的联系表单中,并且工作正常(仅在检查/验证验证码后才发送电子邮件,但如果未检查验证码,如何阻止页面在提交时刷新/

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.