Jump to content
UBot Underground

Authorization Window? How To Make It Work?


Recommended Posts

Hello all,

i am trying to write a digg.com bot, but have run into this authorization window problem.

this is in ubot what is below:

i navigate to digg.com>> then submit url (http://digg.com/submit)>>then i populate the url box to submit>> then it wants me authorize Twitter or FB (https://api.twitter.com/oauth/authorize?oauth_token=kwo5sAAAAAAAAT8AAAABWGPvGqs)...  this is where my problem is, when i click the twitter button(for example could have been FB button, same thing happens) a second window want to pop up but it is all greyed out. there is nothing in the window, this is the problem, getting that window to show so i can enter the Username and Password and then authorize the twitter app(click that button on the second page), also each time that token changes to something else, so it is only good one time, then it needs a new token, i tried the * in the token, did not like that either.

i am totally lost on how to allow that authorization window to show up to put the info (UN and PW) on that page and then click the authorize???  this is my dilemma.

Some one please help???  thanks in advance

steve

Link to post
Share on other sites

There are a couple of ways you can go about handling this. I guess the easiest way would be to Allow Popups in a new window.

allow popups("In New Window")
navigate("http://digg.com/submit", "Don\'t Wait")
wait for element(<url field>, "", "Appear")
type text(<url field>, "http://google.com", "Standard")
click($element offset(<login link>, 2), "Left Click", "No")
in popup {
    wait for element(<for="username_or_email">, "", "Appear")
    comment("Login to twitter here.")
    wait(5)
    close page
}

Link to post
Share on other sites

Nope did not work, still when i get to the click element, the new window is still grey with no information to input, so that did not work.  try it in your ubot, you will then see what i mean, but no luck, i was hopeful.

Please give me another suggestion once you see what it is doing on your end.

thanks in advance,

Link to post
Share on other sites

No word yet how to make this work in V5 yet?  Man i was hoping. I just dont know where to start, why did i pick something like this to start with, not sure.  Seems to work out like that, oh well, will just have to wait it out.

Is it bad to have the v5 version of Ubot running?  Should i be running on V4? 

Link to post
Share on other sites

Whilst asking in questions in the forum you should stick to Ubot 4,or at least Ubot 5 Chrome 21,its pretty much what anybody who answers your question will be using,I recently made my first bot with Chrome 49 that works great but its still experimental,Ubot 4/Chrome 21 is a solid rock at this point

Link to post
Share on other sites

I want you to know that i really appreciate all you help and guidance.
I took your code and used it with the v5 chrome 21 and yes the popup does come. So now i started to modify the bot.
I went in and added a mouse click on the popup window so i could see the fields. I did that and the popup then was in the large window and i could see the UN and PW fields. I then dragged over the elements for UN and PW with text entry and the field would never populate with the UN and PW, nor could i get the authorize app button to work either.
I don't know what to do now, i have tried everything that i know what to do but the username and password fields would not populate with the text that i entered. It is like the page is not really there or does not exist. I can click on the popup and the digg.com page comes back and works fine, but not the popup to authorize twitter.
Any help in this matter would be greatly appreciated. here is the code that i added.
allow popups("In New Window")
navigate("http://digg.com/submit","Don\'t Wait")
wait for element( ,"","Appear")
type text(,"http://google.com","Standard")
click($element offset( ,2),"Left Click","No")
in popup {
wait for element(,"","Appear")
plugin command("WindowsCommands.dll", "click mouse", "Untitled Bot* - UBot Studio Stealth Developer Edition", "HwndWrapper[uBot Studio.exe;;e2581cb2-ee12-4fac-bde2-9ffca3211037]", 1286, 239, "Left Click")
type text(,"clearmyacne","Standard")
type text(,"beartoes","Standard")
comment("Login to twitter here.")
close page
}
thanks again
Steve

Link to post
Share on other sites

Not sure why you're having a problem getting it to login. When I run the code below in v.5 it logins and then returns to the browser where digg displays the blue submit button. Just enter your twitter user and pass and run the script.

ui text box("User:",#user)
ui text box("Pass:",#pass)
comment("I used the, in new browser command because for some reason after the first
pass in the main browser the twitter pop would load blank. So it all works if 
you keep it in the new browser.")
in new browser {
    allow popups("In New Window")
    clear cookies
    navigate("http://digg.com/submit","Don\'t Wait")
    wait for element(<url field>,"","Appear")
    type text(<url field>,"http://google.com","Standard")
    click($element offset(<login link>,2),"Left Click","No")
    in popup {
        comment("Login to twitter here.")
        wait for element(<name="session[username_or_email]">,"","Appear")
        type text(<name="session[username_or_email]">,#user,"Standard")
        type text(<name="session[password]">,#pass,"Standard")
        click(<id="allow">,"Left Click","No")
        wait for element(<id="allow">,"","Disappear")
        wait for browser event("Everything Loaded","")
        close page
    }
    pause script
}
stop script
  • Like 2
Link to post
Share on other sites

thanks go gogetta, appreciate the help.  question, did you try to run the code that i posted?  that did not work for you did it?  it sure didn't for me.  I will have to study the code you gave me, appears to work for me also.  Thanks so much i truly appreciate your help, you really don't know, but i do.  And thanks to UbotBuddy for your help and understanding, appreciate it.  I am pretty much a newbie to this, but want to become efficient and talented where people can come to me as i did to you guys.  If you have any suggestions on what to read, study, watch, video's to watch, etc in order for me to get good with ubot, please let me know. I am a sponge and need some fluid to absorb, please advise on what you think would be good to read or watch???  thanks in advance

Link to post
Share on other sites

I have a question please.  I am looking at the code you generated above and looking at i see the following:

click($element offset(<login link>,2),"Left Click","No")

what is a element offsett?  what does the number 2 mean in the offset?

I watch a lot of the training videos and a lot of the time, they are trying to find something that does not have an offset. They never explain why they are doing that, but it seems they don't want an offset.

Please explain what the offset is and what it is used for? 

Thanks everyone for being patient with my learning curve.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...