iDollarsteam 13 Posted April 29, 2013 Report Share Posted April 29, 2013 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 Quote Link to post Share on other sites
Aymen 385 Posted April 29, 2013 Report Share Posted April 29, 2013 seeing your URL , i'm sure your missing some hidden tokens (access keys) Quote Link to post Share on other sites
iDollarsteam 13 Posted April 29, 2013 Author Report Share Posted April 29, 2013 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 Quote Link to post Share on other sites
iDollarsteam 13 Posted May 2, 2013 Author Report Share Posted May 2, 2013 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...) Quote Link to post Share on other sites
earthlingj 13 Posted May 31, 2013 Report Share Posted May 31, 2013 how did you get the bgresponse? Quote Link to post Share on other sites
iDollarsteam 13 Posted May 31, 2013 Author Report Share Posted May 31, 2013 hint - use CURL Quote Link to post Share on other sites
earthlingj 13 Posted June 3, 2013 Report Share Posted June 3, 2013 haha never used CURL before. looks like ill be stuck on this one lol Quote Link to post Share on other sites
iDollarsteam 13 Posted June 4, 2013 Author Report Share Posted June 4, 2013 this one will not work for now, the plugin can't manipulate cookies yet Quote Link to post Share on other sites
earthlingj 13 Posted June 4, 2013 Report Share Posted June 4, 2013 oh, so its not possible to login to youtube with the plugin yet? Quote Link to post Share on other sites
iDollarsteam 13 Posted June 6, 2013 Author Report Share Posted June 6, 2013 nopeAymen told me that he is working on the cookies manipulation update ... so... in a while... Quote Link to post Share on other sites
safetys 0 Posted June 25, 2013 Report Share Posted June 25, 2013 hint - use CURLwhat'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. Quote Link to post Share on other sites
iDollarsteam 13 Posted June 26, 2013 Author Report Share Posted June 26, 2013 ... 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" ! Quote Link to post Share on other sites
safetys 0 Posted June 26, 2013 Report Share Posted June 26, 2013 ... 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?? Quote Link to post Share on other sites
iDollarsteam 13 Posted June 26, 2013 Author Report Share Posted June 26, 2013 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 1 Quote Link to post Share on other sites
safetys 0 Posted June 26, 2013 Report Share Posted June 26, 2013 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. Quote Link to post Share on other sites
iDollarsteam 13 Posted June 26, 2013 Author Report Share Posted June 26, 2013 sell you what? CURL is free ... if you want a http request youtube bot... that is another thing Quote Link to post Share on other sites
safetys 0 Posted June 26, 2013 Report Share Posted June 26, 2013 Of course http request youtube bot, use this tools, If I can login google or google other products? Quote Link to post Share on other sites
Sanjeev 46 Posted June 28, 2013 Report Share Posted June 28, 2013 @iDollarsteam ... can we run the 'cURL' shell commands , multi threaded too?Thanks. Quote Link to post Share on other sites
iDollarsteam 13 Posted June 30, 2013 Author Report Share Posted June 30, 2013 yep, if you use different local variables in the shell command Quote Link to post Share on other sites
Sanjeev 46 Posted July 1, 2013 Report Share Posted July 1, 2013 Thanks! Quote Link to post Share on other sites
safetys 0 Posted July 11, 2013 Report Share Posted July 11, 2013 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. Quote Link to post Share on other sites
Praney Behl 314 Posted July 16, 2013 Report Share Posted July 16, 2013 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 scriptneed to squeeze Quote Link to post Share on other sites
Gogetta 263 Posted September 20, 2013 Report Share Posted September 20, 2013 Logging in to Youtube is the easy part. Not sure if it's because of the latest updates that made this easy for me. The only problem I am having is on the actual commenting. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.