captcha

ZF2 Captcha validation ignored when using an input filter

别来无恙 提交于 2020-01-05 12:23:31
问题 I have a form in my ZF2 app with a CAPTCHA element as follows : $this->add(array( 'type' => 'Zend\Form\Element\Captcha', 'name' => 'captcha', 'attributes' => array( 'class'=>'form-control', ), 'options' => array( 'label' => 'Please verify you are human.', 'captcha' => array('class' => 'Dumb') ), )); I have an input filter attached to the form that validates the other elements in the form (name, email, message). When this is attached to the form the validation for the CAPTCHA field is ignored

jQuery ajax validate captcha

故事扮演 提交于 2020-01-05 08:04:23
问题 i have a problem when posting a captcha to validate by php. I send the captcha_value string to the captcha_check.php and I don't know how to retrieve the returned value 'true' or 'false' $("#myForm").submit(function() { $.ajax({ type: "POST", url: '/captcha_check.php', data: captcha_value success: function(data) { **?WHAT TO DO HERE? how to get true or false** } }); captcha_check.php <?php if ($_POST['captcha'] == $_SESSION['captcha']) echo 'true'; else echo 'false'; ?> 回答1: I set header to

Detect color and remove that color from image

柔情痞子 提交于 2020-01-05 04:30:10
问题 I have image with kind of light purple image in background and character in dark blue. My goal is to identify text from the image. So I'm trying to remove light purple color from background so that my image will be free of noise, but I can't find the exact color code for that image as it is somewhat different everywhere, so I'm not able to mask image. Here's my code import numpy as np from PIL import Image im = Image.open('capture.png') im = im.convert('RGBA') data = np.array(im) rgb = data[:

How can I identify the color of the letters in these images?

倖福魔咒の 提交于 2020-01-04 02:41:14
问题 I am using this article to solve captchas. It works by removing the background from the image using AForge, and then applying Tesseract OCR to the resulting cleaned image. The problem is, it currently relies on the letters being black, and since each captcha has a different text color, I need to either pass the color to the image cleaner, or change the color of the letters to black. To do either one, I need to know what the existing color of the letters is. How might I go about identifying

Woocommerce - How to add the new Google “no Captcha” reCaptcha into frontend registration form

。_饼干妹妹 提交于 2020-01-01 12:27:07
问题 I need to use the new Google "no Captcha" reCaptcha in frontend Woocommerce registration form page. I've inserted following code before the < / head > tag: <script src='https://www.google.com/recaptcha/api.js'></script> and this one inside form tab in file "woocommerce\myaccount\form-login.php": <div class="g-recaptcha" data-sitekey="xxxxxxxxx MY ID xxxxxxxxx"></div> where, obviously, "xxxxxxxxx MY ID xxxxxxxxx" is my google id code. It shows the new captcha box but if I try to register a new

Captcha Alternative, how secure?

喜欢而已 提交于 2020-01-01 10:49:30
问题 I do the web page for my local library, and I was thinking it might be kind of appealing to have a "custom" captcha based on book covers. So serve up one of several dozen book covers, and have the patron filling out the form type the book title to prove they're human. Assuming I stripped the title/author info from the image and filename, would that be enough? Would the fact that it was a unique system on a fairly small website be enough to make it effective? Just how tricky are the spam bots

PRIMEFACES - How to refresh a <p:graphicImage> from clicking a <p:commandButton>?

a 夏天 提交于 2020-01-01 05:06:34
问题 I'm considering this showcase: http://www.primefaces.org/showcase/ui/dynamicImage.jsf in particular the sub-case "GraphicText on-the-fly". My problem is implementing an extended version of this sub case with the addition of a . When the button is pressed i need that the image change dinamically. In the DynamicImageController class I re-writed the getter associeted with the graphicImage: public StreamedContent getGraphicText(){ double random = Math.random();// a double value with a positive

How CURL Login with Captcha and Session

不打扰是莪最后的温柔 提交于 2019-12-31 09:49:04
问题 define('COOKIE', './cookie.txt'); define('MYURL', 'https://register.pandi.or.id/main'); function getUrl($url, $method='', $vars='', $open=false) { $agents = 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16'; $header_array = array( "Via: 1.1 register.pandi.or.id", "Keep-Alive: timeout=15,max=100", ); static $cookie = false; if (!$cookie) { $cookie = session_name() . '=' . time(); } $referer = 'https://register.pandi.or.id/main';

Using ReCaptcha with my custom form in Joomla

不打扰是莪最后的温柔 提交于 2019-12-30 07:08:08
问题 I'm trying to use JFormFieldCaptcha to work on my custom jForm. I managed to get the job done with registration and contact forms. However i want to build my own contact form which is based on an XML file somehow look like this: <form> <fieldset addfieldpath="<path to JFormFieldCaptcha class>"> <field name="captcha" label="Captcha" description="COM_DEZTOUR_ORDER_CAPTCHA_DESC" type="text" validate="captcha" /> </fieldset> </form> i cannot figure out why this code not working. Any help would be

How to bypass Google captcha with Selenium and python?

别来无恙 提交于 2019-12-29 10:02:11
问题 I want to know how to bypass google captcha using selenium and python When i try to scrap something google give me captcha, can I bypass google captcha with selenium python. As an example it's google recaptha you can see this captcha via this link: https://www.google.com/recaptcha/api2/demo 回答1: To start with using Selenium's Python clients you should avoid solving/bypass google captcha. Selenium Selenium automates browsers. Now what you what to achieve with that power is entirely up to