Attn: Please HELP me, hero!!!



  • It would be helpful if someone could help me to solving this reCAPTCHA, I couldn't able to even get Image Captcha url correctly.... The code is as following, and I am trying to get <img id="ctl00_Main_content_ucCaptcha_RADcaptchaV_CaptchaImageUP" alt="" src="../../blahblah.axd?type=rca&amp;isc=true&amp;guid=b794aaa2-0a1c-4762-a4c7-0335b8842396". Thank you for all.

    <div id="ctl00_Main_content_ucCaptcha_pnlCaptcha" class="HPRwidth100">
        <input type="hidden" name="ctl00$Main_content$ucCaptcha$uchdnCaptchaActive" id="ctl00_Main_content_ucCaptcha_uchdnCaptchaActive" value="True" />
        <table width="100%">
            <tr>
                <td align="center">
                    <div id="ctl00_Main_content_ucCaptcha_pnlRadCaptcha" class="HPRwidth100 " UpdateMode="Always">
                        <div style="text-align: center">
                            <div id="ctl00_Main_content_ucCaptcha_RADcaptcha" class="RadCaptcha RadCaptcha_Default">
                                <span id="ctl00_Main_content_ucCaptcha_RADcaptcha_ctl00" style="color:Red;visibility:hidden;">Identified as spam.  Automated software is forbidden to fill out site forms.  
                                </br>
                                <a href="javascript:window.location = document.referrer;">Please manually fill in the form by trying again.</a>
                            </span>
                            <div id="ctl00_Main_content_ucCaptcha_RADcaptcha_SpamProtectorPanel">
                                <label for="ctl00_Main_content_ucCaptcha_RADcaptcha_InvisibleTextBox" id="ctl00_Main_content_ucCaptcha_RADcaptcha_HiddenLabel" style="display:none;">Do not fill this textbox.</label>
                                <input name="ctl00$Main_content$ucCaptcha$RADcaptcha$InvisibleTextBox" type="text" id="ctl00_Main_content_ucCaptcha_RADcaptcha_InvisibleTextBox" style="display:none;" />
                            </div>
                            <input id="ctl00_Main_content_ucCaptcha_RADcaptcha_ClientState" name="ctl00_Main_content_ucCaptcha_RADcaptcha_ClientState" type="hidden" />
                        </div>
                        <span id="ctl00_Main_content_ucCaptcha_RADCaptchaMsg">The Field Below is Case Sensitive</span>
                        <br />
                        <div id="ctl00_Main_content_ucCaptcha_RADcaptchaV" class="RadCaptcha RadCaptcha_Default" UpdateMode="Always" style="margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto; width: 300px;">
                            <span id="ctl00_Main_content_ucCaptcha_RADcaptchaV_ctl00" style="color:Red;visibility:hidden;">The captcha code you entered is not valid.</span>
                            <div id="ctl00_Main_content_ucCaptcha_RADcaptchaV_SpamProtectorPanel">
                                <div id="ctl00_Main_content_ucCaptcha_RADcaptchaV_ctl01">
                                    <img id="ctl00_Main_content_ucCaptcha_RADcaptchaV_CaptchaImageUP" alt="" src="../../blahblah.axd?type=rca&amp;isc=true&amp;guid=b794aaa2-0a1c-4762-a4c7-0335b8842396" style="height:50px;width:180px;border-width:0px;display:block;" />
                                    <a id="ctl00_Main_content_ucCaptcha_RADcaptchaV_CaptchaLinkButton" class="rcRefreshImage" title="Generate New Image" href="javascript:__doPostBack(&#39;ctl00$Main_content$ucCaptcha$RADcaptchaV$CaptchaLinkButton&#39;,&#39;&#39;)" style="display:block;">Generate New Image</a>
                                    <a href="../../blahblah.axd?type=cah&amp;isc=true&amp;guid=b794aaa2-0a1c-4762-a4c7-0335b8842396" id="ctl00_Main_content_ucCaptcha_RADcaptchaV_CaptchaAudioCodeUP" title="Get Audio Code" class="rcCaptchaAudioLink" style="display:block;">Get Audio Code</a>
                                </div>
                                <p>
                                    <input name="ctl00$Main_content$ucCaptcha$RADcaptchaV$CaptchaTextBox" type="text" maxlength="5" id="ctl00_Main_content_ucCaptcha_RADcaptchaV_CaptchaTextBox" />
                                    <label for="ctl00_Main_content_ucCaptcha_RADcaptchaV_CaptchaTextBox" id="ctl00_Main_content_ucCaptcha_RADcaptchaV_CaptchaTextBoxLabel">Type the code from the image</label>
                                </p>
                            </div>
                            <input id="ctl00_Main_content_ucCaptcha_RADcaptchaV_ClientState" name="ctl00_Main_content_ucCaptcha_RADcaptchaV_ClientState" type="hidden" />
                        </div>
                    </div>
                </div>
    

    In my openbullet, my code is like this:

    ELEMENTACTION XPath "//div[@id='ctl00_Main_content_ucCaptcha_RADcaptchaV_ctl01']//img[1]" 
      GetAttribute "src" -> VAR "CAPTCHAURL" 
    
    REQUEST GET "<CAPTCHAURL>" 
      
      HEADER "accept: image/webp,image/apng,image/*,*/*;q=0.8" 
      HEADER "accept-encoding: gzip, deflate, br" 
      HEADER "accept-language: en-US,en;q=0.9" 
      HEADER "sec-fetch-dest: image" 
      HEADER "sec-fetch-mode: no-cors" 
      HEADER "sec-fetch-site: same-origin" 
      HEADER "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36" 
      -> BASE64 "CAP" 
    
    SOLVECAPTCHA ImageCaptcha "<CAP>" NotSpecified NotSpecified 3 8 NotSpecified "" CaseSensitive=TRUE 
    
    ELEMENTACTION Selector "input[name='ctl00$Main_content$ucCaptcha$RADcaptchaV$CaptchaTextBox']" 
      SendKeysHuman "<SOLUTION>" 
    
    #WaitUntilPageContains_NextButton_Element ELEMENTACTION XPath "//input[@name=\"ctl00$Main_content$btnNext\"]" 
      WaitForElement 
    
    #Click_the_NextButton_Element ELEMENTACTION XPath "//input[@name=\"ctl00$Main_content$btnNext\"]" 
      Click 
    


  • @insanebeeftw
    Check out this guide --> (https://forum.openbullet.dev/topic/954/how-to-work-with-iframe-on-selenium-graphic-guide-parsing-attribute) it explain how to get attribute, maybe could help you.



  • @Br4uN , Thank you for the quick response, hero:)

    I have read this article a few times, and I tried all the possibilities that I can think of in this situation, but unfortunately, I couldn't make mine works as how I expected it to be. He got two frames in the sample, but I got none, and he used google reCAPTCHA, but mine is not. And somehow, I also believe there are hidden elements, whichever might trigger the reCAPTCHA image URL. Because it seems like mine is more complicated than the sample website is, too, my site is not using Google reCAPTCHA. I know how to solve the Google reCAPTCHA v2, but I don't know in this situation. So could you please do me a favor to explains what I can do to work it work?


Log in to reply