Jump to content
UBot Underground

Recommended Posts

I have a plugin that is enhancing Ubot and make it possible to use http post and http get (most of you know it, is a great plugin made by Aymen from this forum). I try to use this plugin to make ubot login to YouTube using HTTP Requests. I managed to get all the parameters from the login page using HTTP Get function and also using regex to sort the result. When I try to post using HTTP Post function I get as result the error page from youtube and this message:  There was an issue logging you into YouTube ...  Here is my code so far:

 

clear list(%useragents)
add list to list(%useragents, $list from file("{$special folder("Application")}\\UserAgents"), "Delete", "Global")
set(#useremail, "YTLogin@gmail.com", "Global")
set(#userpass, "YTPassword", "Global")
set(#UserAgent, $list item(%useragents, $rand(0, $subtract($list total(%useragents), 1))), "Global")
set(#Proxy, "proxy:port:proxyuser:proxypass", "Global")
set(#URL, "https://accounts.google.com/ServiceLogin?service=youtube&continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26feature%3Dsign_in_button%26hl%3Den_US%26next%3D%252F%26nomobiletemp%3D1&uilel=3&hl=en_US&passive=true", "Global")
plugin command("HTTP post.dll", "Clear Cookies", #URL)
set(#GETloginpage, $plugin function("HTTP post.dll", "$http get", #URL, #UserAgent, "www.youtube.com", #Proxy, 15), "Global")
set(#continue, "http://www.youtube.com/signin?action_handle_signin=true&feature=sign_in_button&hl=en_US&next=%2F&nomobiletemp=1", "Global")
set(#service, "youtube", "Global")
set(#dsh, $find regular expression(#GETloginpage, "(?<=id=\"dsh\"\\s* value=\")[\\w\\W]*?(?=\")"), "Global")
set(#hl, "en_US", "Global")
set(#GALX, $find regular expression(#GETloginpage, "(?<=name=\"GALX\"\\s*value=\")[\\w\\W]*?(?=\")"), "Global")
set(#pstMsg, 1, "Global")
set(#dnConn, $nothing, "Global")
set(#checkConnection, "youtube:1000:1", "Global")
set(#checkedDomains, "youtube", "Global")
set(#timeStmp, $nothing, "Global")
set(#secTok, $nothing, "Global")
set(#_utf8, $find regular expression(#GETloginpage, "(?<=name=\"_utf8\"\\s* value=\")[\\w\\W]*?(?=\")"), "Global")
set(#bgresponse, $find regular expression(#GETloginpage, "(?<=id=\"bgresponse\"\\s* value=\")[\\w\\W]*?(?=\")"), "Global")
set(#Email, #useremail, "Global")
set(#Passwd, #userpass, "Global")
set(#signIn, "Sign in", "Global")
set(#PersistentCookie, "yes", "Global")
set(#rmShown, 1, "Global")
set(#POSTloginpage, $plugin function("HTTP post.dll", "$http post", "https://accounts.google.com/ServiceLoginAuth", "continue={#continue}&service={#service}&dsh={#dsh}&hl={#hl}&GALX={#GALX}&pstMsg={#pstMsg}&dnConn={#dnConn}&checkConnection={#checkConnection}&checkedDomains={#checkedDomains}&timeStmp={#timeStmp}&secTok={#secTok}&_utf8={#_utf8}&bgresponse={#bgresponse}&Email={#Email}&Passwd={#Passwd}&signIn={#signIn}&PersistentCookie={#PersistentCookie}&rmShown={#rmShown}", #UserAgent, #URL, #Proxy, 15), "Global")
load html(#POSTloginpage)

 

If someone with a longer experience with HTTP Requests can help please show me what I'm doing wrong and how to make this work and login!! (I have replaced in the code here the user, pass and proxy with generic ones).

 

I know that in our community are great programmers that know their way around HTTP ... and I also know that very few will want to help someone else find solutions to Youtube related problems but... I still hope :))

 

Thank you! :)

 

PS I get the user agents from an external file that I compiled from the most used user agents :) so you can assign one of your choice to the variable in the script

Link to post
Share on other sites

nope I don't but one hidden token seem to be generated dynamically by javascript on the page ... when I get the tokens using the GET function that parameter returned  "js_disabled" but if I login in a browser and I use Fiddler to see the http req that parameter has a different value every time ... I think there is something with the ubot (or plugin) blocking javascript on the page... I'm not sure... in the GET result and in the Fiddler result I have the same 18 tokens - 4 visible for the user to fill or interact and 14 hidden ... If you can find more please let me know :)

Link to post
Share on other sites

Solved it :) ... with another method of using HTTP REQ. not with the plugin atm (it still needs a lot of work on cookie manipulation and control, I'm sure in future upgrades it will work fine with google and yt ... but not now, at least not for me...)

Link to post
Share on other sites
  • 4 weeks later...
  • 3 weeks later...

:) hint - use CURL

what's the meaning, I'm try to login in google, and I don't know how to get    bgresponse   value ?

Can you help me and descript in more detail ??

Thanks.

Link to post
Share on other sites

... I don't want to sound mean but... I have studied and learned about http requests and google/youtube for the last 3 month and this is VERY valuable stuff ... I have given you the start to do it : "use CURL" ... google it, search this forum and other forums, experiment... a youtube bot that use http requests and works can be sold with a lot of money so I can't give you the "fish" ... I have just give you the "fishing rod" !

Link to post
Share on other sites

... I don't want to sound mean but... I have studied and learned about http requests and google/youtube for the last 3 month and this is VERY valuable stuff ... I have given you the start to do it : "use CURL" ... google it, search this forum and other forums, experiment... a youtube bot that use http requests and works can be sold with a lot of money so I can't give you the "fish" ... I have just give you the "fishing rod" !

Sorry,But what's a  CURL ? A sofeware or  php functions or other??

Link to post
Share on other sites

it is a library of functions that you can use in php but it is also in executable version that you can automate with ubot ... google it and get on their site, you can learn everything from there 

  • Like 1
Link to post
Share on other sites

it is a library of functions that you can use in php but it is also in executable version that you can automate with ubot ... google it and get on their site, you can learn everything from there 

Can you sell it to me ? My mother lanuage is chinese, so my english is so poor, I believe I can't find the solution even if I spent lots of time.

Link to post
Share on other sites
  • 2 weeks later...

yep, if you use different local variables in the shell command

 

I really want to buy, many times I see you on skype, and I send some messages to you, but you don't answer to me.

Link to post
Share on other sites

I have a plugin that is enhancing Ubot and make it possible to use http post and http get (most of you know it, is a great plugin made by Aymen from this forum). I try to use this plugin to make ubot login to YouTube using HTTP Requests. I managed to get all the parameters from the login page using HTTP Get function and also using regex to sort the result. When I try to post using HTTP Post function I get as result the error page from youtube and this message:  There was an issue logging you into YouTube ...  Here is my code so far:

clear list(%useragents)
add list to list(%useragents, $list from file("{$special folder("Application")}\\UserAgents"), "Delete", "Global")
set(#useremail, "YTLogin@gmail.com", "Global")
set(#userpass, "YTPassword", "Global")
set(#UserAgent, $list item(%useragents, $rand(0, $subtract($list total(%useragents), 1))), "Global")
set(#Proxy, "proxy:port:proxyuser:proxypass", "Global")
set(#URL, "https://accounts.google.com/ServiceLogin?service=youtube&continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26feature%3Dsign_in_button%26hl%3Den_US%26next%3D%252F%26nomobiletemp%3D1&uilel=3&hl=en_US&passive=true", "Global")
plugin command("HTTP post.dll", "Clear Cookies", #URL)
set(#GETloginpage, $plugin function("HTTP post.dll", "$http get", #URL, #UserAgent, "www.youtube.com", #Proxy, 15), "Global")
set(#continue, "http://www.youtube.com/signin?action_handle_signin=true&feature=sign_in_button&hl=en_US&next=%2F&nomobiletemp=1", "Global")
set(#service, "youtube", "Global")
set(#dsh, $find regular expression(#GETloginpage, "(?<=id=\"dsh\"\\s* value=\")[\\w\\W]*?(?=\")"), "Global")
set(#hl, "en_US", "Global")
set(#GALX, $find regular expression(#GETloginpage, "(?<=name=\"GALX\"\\s*value=\")[\\w\\W]*?(?=\")"), "Global")
set(#pstMsg, 1, "Global")
set(#dnConn, $nothing, "Global")
set(#checkConnection, "youtube:1000:1", "Global")
set(#checkedDomains, "youtube", "Global")
set(#timeStmp, $nothing, "Global")
set(#secTok, $nothing, "Global")
set(#_utf8, $find regular expression(#GETloginpage, "(?<=name=\"_utf8\"\\s* value=\")[\\w\\W]*?(?=\")"), "Global")
set(#bgresponse, $find regular expression(#GETloginpage, "(?<=id=\"bgresponse\"\\s* value=\")[\\w\\W]*?(?=\")"), "Global")
set(#Email, #useremail, "Global")
set(#Passwd, #userpass, "Global")
set(#signIn, "Sign in", "Global")
set(#PersistentCookie, "yes", "Global")
set(#rmShown, 1, "Global")
set(#POSTloginpage, $plugin function("HTTP post.dll", "$http post", "https://accounts.google.com/ServiceLoginAuth", "continue={#continue}&service={#service}&dsh={#dsh}&hl={#hl}&GALX={#GALX}&pstMsg={#pstMsg}&dnConn={#dnConn}&checkConnection={#checkConnection}&checkedDomains={#checkedDomains}&timeStmp={#timeStmp}&secTok={#secTok}&_utf8={#_utf8}&bgresponse={#bgresponse}&Email={#Email}&Passwd={#Passwd}&signIn={#signIn}&PersistentCookie={#PersistentCookie}&rmShown={#rmShown}", #UserAgent, #URL, #Proxy, 15), "Global")
load html(#POSTloginpage)

If someone with a longer experience with HTTP Requests can help please show me what I'm doing wrong and how to make this work and login!! (I have replaced in the code here the user, pass and proxy with generic ones).

 

I know that in our community are great programmers that know their way around HTTP ... and I also know that very few will want to help someone else find solutions to Youtube related problems but... I still hope :))

 

Thank you! :)

 

PS I get the user agents from an external file that I compiled from the most used user agents :) so you can assign one of your choice to the variable in the script

need to squeeze

Link to post
Share on other sites
  • 2 months later...

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...