Jump to content
UBot Underground

jackg904

Members
  • Content Count

    13
  • Joined

  • Last visited

Posts posted by jackg904

  1. Getting an error in web console

    "VM228 about:blank:1 Uncaught TypeError: Cannot read property 'l' of undefined"

     

    When running

     

    run javascript("___grecaptcha_cfg.clients[0].aa.l.callback('{#callback}');")

     

     

     

    It worked just fine all morning and suddenly started giving this with NO CHANGES.

    If someone can please advise. 

  2. Am unable to find the data-callback now- and using the suggested scrape isn't doing anything either.

     

    set(#ScrapeCallback,$scrape attribute(<class="g-recaptcha">,"data-callback"),"Global")
    run javascript("{#ScrapeCallback}();")
    stop script

     

    Any suggestions??

  3.  

    Okay I see, you can use Python to do that.

     

    Basically, this will scrape the names, then use Python to match the names and see how similar each one of them is. Then it finds the highest match and clicks on that doctor.

    navigate("http://ratemds.com","Wait")
    set(#inputName,"ranga krishna","Global")
    type text(<name="text">,#inputName,"Standard")
    click(<class="btn btn-default">,"Left Click","No")
    clear list(%names)
    add list to list(%names,$scrape attribute(<class="search-item-doctor-link">,"innertext"),"Delete","Global")
    clear table(&nameMatch)
    set(#row,0,"Global")
    loop($list total(%names)) {
        set(#curName,$next list item(%names),"Global")
        set(#normalizedMatch,$run python with result("from difflib import SequenceMatcher
    name1 = \'{#inputName}\'
    name2 = \'{#curName}\'
    SequenceMatcher(a=name1,b=name2).ratio()"),"Global")
        set table cell(&nameMatch,#row,0,#curName)
        set table cell(&nameMatch,#row,1,$multiply(#normalizedMatch,100))
        increment(#row)
    }
    set(#row,1,"Global")
    set(#highestScore,$table cell(&nameMatch,0,1),"Global")
    set(#highestScoreOffset,0,"Global")
    loop($subtract($list total(%names),1)) {
        if($comparison($table cell(&nameMatch,#row,1),"> Greater than",#highestScore)) {
            then {
                set(#highestScore,$table cell(&nameMatch,#row,1),"Global")
                set(#highestScoreOffset,#row,"Global")
            }
            else {
            }
        }
        increment(#row)
    }
    click(<class="search-item-doctor-link">,"Left Click","No")

    I'm looking at debugger as I'm modifying this to be used for google search and it doesn't appear to be sorting based on value, and isn't navigating.

    Same exact code using "class "r" for google, but it's not working by any stretch.

    Any ideas?

  4. If its Recaptcha you have a couple of options, you can try using the 2captcha API here: https://2captcha.com/2captcha-api

     

    Or also, there is a plugin made for it as well here: http://network.ubotstudio.com/store/product/nocaptcha-recaptcha-plugin-ultimate-captcha-copy

    Bought plugin...

    set(#ApiKey,"SNIP","Global")
    set user agent("Chrome")
    navigate("http://www.discord.com/register","Wait")
    type text(<email field>,$insert text("SNIP@gmail.com",$random text(2),16),"Standard")
    type text(<username field>,$random text(8),"Standard")
    type text(<password field>,$random text(8),"Standard")
    wait(1)
    click(<innertext="Continue">,"Left Click","No")
    click(<type="submit">,"Left Click","No")
    wait(3)
    wait for browser event("Everything Loaded","")
    wait for element(<class="recaptcha-checkbox-checkmark">,"","Appear")
    wait(1)
    set(#GoogleSiteKey,$scrape attribute(<class="g-recaptcha">,"data-sitekey"),"Global")
    wait(1)
    change attribute(<id="g-recaptcha-response">,"style",$replace($scrape attribute(<id="g-recaptcha-response">,"style"),"display: none;",$nothing))
    clear list(%_rawCaptcha)
    add list to list(%_rawCaptcha,$list from text($plugin function("UltimateCaptchaServices.dll", "$2Captcha Service V2", #ApiKey, "", #GoogleSiteKey, $url, "", "", "", "HTTP", "Solve Captcha", "Recaptcha-NoCaptcha", "", "Yes", "No"),$new line),"Delete","Global")
    change attribute(<id="g-recaptcha-response">,"value",$list item(%_rawCaptcha,1))
    click(<value="Submit">,"Left Click","No")
    
    

    Giving me out of range for list..

  5. If its Recaptcha you have a couple of options, you can try using the 2captcha API here: https://2captcha.com/2captcha-api

     

    Or also, there is a plugin made for it as well here: http://network.ubotstudio.com/store/product/nocaptcha-recaptcha-plugin-ultimate-captcha-copy

    Hi,

    Yes this is what I am already using in terms of the API- but I am not getting anywhere at this time.

    Do you have any suggestions?

    I was also using PACs? PACHA? PASH? Captcha Plugin. 

  6. Where/when do you see the captcha?

    After submitting on the registration page:

    Here is my code to solve the captcha

     

    Earlier I set the googlekey+apikey

    set(#GoogleKey,"6Lef5iQTAAAAAKeIvIY-DeexoO3gj7ryl9rLMEnn","Global")

    wait($rand(1,10))
    plugin command("WindowsCommands.dll", "move mouse", "bot* - UBot Studio Stealth Experimental Edition", "HwndWrapper[UBot Studio.exe;;273c6330-3764-4432-9688-3036d180be4b]", 1403, 731)
    click(<type="submit">,"Left Click","No")
    wait($rand(1,10))
    wait for element(<class="recaptcha-checkbox-checkmark">,"","Appear")
    loop while($exists(<class="recaptcha-checkbox-checkmark">)) {
        then {
            change attribute(<id="g-recaptcha-response">,"style",$replace($scrape attribute(<id="g-recaptcha-response-1">,"style"),"display: none;",$nothing))
            wait(1)
            clear list(%_rawCaptcha)
            add list to list(%_rawCaptcha,$plugin function("Advanced Captcha.dll", "$2captcha.com recaptcha v2", #_apiKey, #GoogleKey, $url, 120, ""),"Delete","Global")
            wait(2)
            type text(<id="g-recaptcha-response">,$list item(%_rawCaptcha,1),"Standard")
            wait(2)
            run javascript("___grecaptcha_cfg.clients[0].aa.l.callback()")
            wait(2)
        }
    }
    
  7.  

    Okay I see, you can use Python to do that.

     

    Basically, this will scrape the names, then use Python to match the names and see how similar each one of them is. Then it finds the highest match and clicks on that doctor.

    navigate("http://ratemds.com","Wait")
    set(#inputName,"ranga krishna","Global")
    type text(<name="text">,#inputName,"Standard")
    click(<class="btn btn-default">,"Left Click","No")
    clear list(%names)
    add list to list(%names,$scrape attribute(<class="search-item-doctor-link">,"innertext"),"Delete","Global")
    clear table(&nameMatch)
    set(#row,0,"Global")
    loop($list total(%names)) {
        set(#curName,$next list item(%names),"Global")
        set(#normalizedMatch,$run python with result("from difflib import SequenceMatcher
    name1 = \'{#inputName}\'
    name2 = \'{#curName}\'
    SequenceMatcher(a=name1,b=name2).ratio()"),"Global")
        set table cell(&nameMatch,#row,0,#curName)
        set table cell(&nameMatch,#row,1,$multiply(#normalizedMatch,100))
        increment(#row)
    }
    set(#row,1,"Global")
    set(#highestScore,$table cell(&nameMatch,0,1),"Global")
    set(#highestScoreOffset,0,"Global")
    loop($subtract($list total(%names),1)) {
        if($comparison($table cell(&nameMatch,#row,1),"> Greater than",#highestScore)) {
            then {
                set(#highestScore,$table cell(&nameMatch,#row,1),"Global")
                set(#highestScoreOffset,#row,"Global")
            }
            else {
            }
        }
        increment(#row)
    }
    click(<class="search-item-doctor-link">,"Left Click","No")

    Wow!

    Okay that's really cool- thank you so much.

    Going to play around and try to exactly understand the code behind this so I don't ask anymore stupid questions.

    Cheers mate. 

  8.  

    Is this what you're going for?

    navigate("http://ratemds.com","Wait")
    type text(<name="text">,"ranga krishna","Standard")
    click(<class="btn btn-default">,"Left Click","No")
    set(#offset,0,"Global")
    clear list(%results)
    add list to list(%results,$scrape attribute(<class="search-item-doctor-link">,"href"),"Delete","Global")
    loop($list total(%results)) {
        navigate("https://www.ratemds.com{$next list item(%results)}","Wait")
        alert("scrape page here or do whatever")
        wait(2)
    }

    Not quite-

    You got it to navigate where I wanted though- so that makes me happy!

    I'm trying to have it look at all the "doctors" on the page, and click the most similar to what is entered, so if Ranga Krishna is entered it picks Ranga Chelva Krishna(the first most similar one)

  9. Also tried: 

    set(#offset,0,"Global")
    set(#INPUT Keyword,"Ranga Chelva Krishna","Global")
    clear list(%RESULTS)
    add list to list(%RESULTS,$scrape attribute(<data-reactid=".1xuzrq8sfms.3:$2060729.1">,"fullhref"),"Delete","Global")
    set(#RESULTS Row,0,"Global")
    loop($list total(%RESULTS)) {
        if($contains($list item(%RESULTS,#RESULTS Row),#INPUT Keyword)) {
            then {
                click(<href=#INPUT Keyword>,"Left Click","No")
                wait for browser event("Page Loaded",10)
                wait(25)
            }
            else {
            }
        }
        increment(#RESULTS Row)
    

    But it's not scraping the proper results page, just the home URL.

  10. Racking my brains here, am new to UBot and have read a bunch of things- but still having difficulties.

    I'm trying to have the bot find a text thats similar to an entered result, then click that element if it's there..

    I can't seem to get that to work though- only exact matches somewhat "work" and even then- the element isn't actually navigated too.

     

    I borrowed code from an old thread and am trying to modify it to do what I need. 

     

    Here's my code:

    navigate("http://ratemds.com","Wait")
    type text(<name="text">,"ranga krishna","Standard")
    click(<class="btn btn-default">,"Left Click","No")
    set(#offset,0,"Global")
    clear list(%num_results)
    add list to list(%num_results,$scrape attribute(<data-reactid=".1xuzrq8sfms.3:$2060729.1">,"innertext"),"Delete","Global")
    loop($list total(%num_results)) {
        set(#cur_title,$scrape attribute($element offset($element child(<data-reactid=".1xuzrq8sfms.3:$2060729.1">),#offset),"innertext"),"Global")
        if($contains(#cur_title,"Ranga Chelva Krishna")) {
            then {
                alert(#cur_title)
                set(#serp_id,$find regular expression($scrape attribute($element offset($element child($element child(<data-reactid=".1xuzrq8sfms.3:$2060729.1">)),#offset),"outerhtml"),"(?<=h\\=\\\").*?(?=\\\")"),"Global")
                click(<h=#serp_id>,"Left Click","No")
                alert("DONE")
                stop script
            }
            else {
            }
        }
        increment(#offset)
    }
    
    

    Any help/tips/etc is appreciated

×
×
  • Create New...