Franciscotorresny 0 Posted August 23, 2016 Report Share Posted August 23, 2016 Every time I try to use the command socket navigate I get an error see bellow http://screencast.com/t/SyzVAwP1 Quote Link to post Share on other sites
deliter 203 Posted August 23, 2016 Report Share Posted August 23, 2016 sucks,Ive reported this bug a few times,I get it when http post and socket commands are installed at the same time,remove http post plugin,then run setup.exe and click repair,then reboot ubot and it should work,if you do not have http post then maybe its another plugin in your way,if you have http post no need to use the socket commands at all Quote Link to post Share on other sites
pash 504 Posted August 24, 2016 Report Share Posted August 24, 2016 try post your code. 1 Quote Link to post Share on other sites
Franciscotorresny 0 Posted August 24, 2016 Author Report Share Posted August 24, 2016 Well Im trying to learn to use sockets. Im trying to login to Instagram via socket but having all this issues I'm not sure if I'm doing it wrong or ubot is acting up .... I try using http://www.screencast.com/t/vCkdy62EJgMbut I get nothing but a white screen when I render. but when it works I get above message. plugin command("HTTP post.dll", "http keep alive", "Yes") plugin command("HTTP post.dll", "http headers", "http://instagram.com", &HdInstagram) plugin command("HTTP post.dll", "http cookies string", $table cell(&HdInstagram,9,1)) set(#sck_Insta_Get,$plugin function("HTTP post.dll", "$http post", "https://www.instagram.com/accounts/login/ajax/", "username=222222&password=11111111", "Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405", "https://www.instagram.com/", "", 5),"Global") That's what I have so far I'm not sue if I'm in the right direction or not. I switch from using the Sockets from Ubot. Instead I'm using http but still has not crack it any help will be appreciated Quote Link to post Share on other sites
pash 504 Posted August 25, 2016 Report Share Posted August 25, 2016 Instagram? This sample convert to your code. plugin command("Advanced Connection.dll", "socket clear", "All") plugin command("Advanced Connection.dll", "socket request", "https://www.instagram.com/accounts/login/", "GET") set(#RAW,$plugin function("Advanced Connection.dll", "$socket content", "RAW"),"Global") set(#csrf_token,$find regular expression(#RAW,"(?<=csrf_token\": \")(\\w+)(?=\")"),"Global") plugin command("Advanced Connection.dll", "socket add header", "X-CSRFToken", #csrf_token, "False") plugin command("Advanced Connection.dll", "socket add header", "X-Instagram-AJAX", 1, "False") plugin command("Advanced Connection.dll", "socket add header", "X-Requested-With", "XMLHttpRequest", "False") plugin command("Advanced Connection.dll", "socket add parameter", "username", "XXXX", "POST") plugin command("Advanced Connection.dll", "socket add parameter", "password", "XXXX", "POST") plugin command("Advanced Connection.dll", "socket keep alive", "True", 100, 30) plugin command("Advanced Connection.dll", "socket redirect", "False", 1) plugin command("Advanced Connection.dll", "socket referer", "https://www.instagram.com/accounts/login/") plugin command("Advanced Connection.dll", "socket request", "https://www.instagram.com/accounts/login/ajax/", "POST") set(#RAW,$plugin function("Advanced Connection.dll", "$socket content", "RAW"),"Global") plugin command("Advanced Connection.dll", "socket headers", &Header, "Response") plugin command("Advanced Connection.dll", "socket cookies", &Cookie, "False") plugin command("Advanced Connection.dll", "socket clear", "Parameter") plugin command("Advanced Connection.dll", "socket referer", "https://www.instagram.com/") plugin command("Advanced Connection.dll", "socket request", "https://www.instagram.com/", "GET") set(#RAW,$plugin function("Advanced Connection.dll", "$socket content", "RAW"),"Global") load html(#RAW) Step by step 1. send "GET" to "https://www.instagram.com/accounts/login/" 2. scrape "csrf_token" 3. add header "X-CSRFToken" and "X-Instagram-AJAX" and "X-Requested-With" 4. disable "redirect" option 5. send "POST" to "https://www.instagram.com/accounts/login/ajax/" 6. send "GET" to "https://www.instagram.com/" 7. enjoy. 2 Quote Link to post Share on other sites
Franciscotorresny 0 Posted September 19, 2016 Author Report Share Posted September 19, 2016 thank you for the reply. This fix my issue thank you. however i maybe doing something wrong. define Sck_unfollow { plugin command("HTTP post.dll", "http set headers", "X-CSRFToken", #Token) plugin command("HTTP post.dll", "http set headers", "X-Instagram-AJAX", 1) plugin command("HTTP post.dll", "http set headers", "X-Requested-With", "XMLHttpRequest") plugin command("HTTP post.dll", "http settings headers", "Accept Encoding", "gzip, deflate, br") plugin command("HTTP post.dll", "http settings headers", "Content Type", "application/x-www-form-urlencoded") plugin command("HTTP post.dll", "http keep alive", "Yes") set(#user_unfollow,$plugin function("HTTP post.dll", "$http get", "https://www.instagram.com/web/friendships/4023520/unfollow/", "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0", "https://www.instagram.com/xxxx/following/", "", ""),"Global") } wait(5) Sck_unfollow() load html(#user_unfollow) so the part for login works I get a msg back from the server saying. {"status": "ok", "authenticated": true, "user": "xxxxx"} <--- im thinking this means it works no i need to be able to unfollow users. I made a unfollow definition and I get this back The remote server returned an error: (405) Method Not Allowed. Anyone know how to fix this ??? Quote Link to post Share on other sites
Franciscotorresny 0 Posted September 20, 2016 Author Report Share Posted September 20, 2016 if I'm not mistaking I'm missing this code. which I'm not sure how to get any help ? Cookie: mid=V7ypswAEAAFnkTtw6cAHsgpMecXk; ig_pr=1; ig_vw=1134; csrftoken=U1oxa4ACIl8NVQYGSANP4j11Zh824Yk2; sessionid=IGSCe29e9410eb978695edb02b330644a538ee48c94f3bd9c93a482be86538cfb275:lqQV7J3Qva8q7ViKEsYCApxFGqcyQBwL:{"_token_ver":2,"_auth_user_id":1339698481,"_token":"0000000:DNeV4aa5gI8xGkSXBlz6gXF4er6Ka2JU:3a38349bda9c36b18d8ba9cf515202afb2a1ae8f36a05b9a88212c851dd54ab7","asns":{"00.00.00.00":12271,"time":1474295578},"_auth_user_backend":"accounts.backends.CaseInsensitiveModelBackend","last_refreshed":1474295578.127425,"_platform":4,"_auth_user_hash":""}; ds_user_id=00000; s_network= Quote Link to post Share on other sites
Franciscotorresny 0 Posted September 20, 2016 Author Report Share Posted September 20, 2016 Please I don't need you guys to do it for me bu can you point me in the right direction please. Quote Link to post Share on other sites
Franciscotorresny 0 Posted September 20, 2016 Author Report Share Posted September 20, 2016 (edited) deleted Edited September 20, 2016 by Franciscotorresny Quote Link to post Share on other sites
HelloInsomnia 1103 Posted September 20, 2016 Report Share Posted September 20, 2016 If you're using http get try post maybe, the 405 error is saying whatever method you are using is incorrect. Quote Link to post Share on other sites
sandyego 1 Posted August 9, 2018 Report Share Posted August 9, 2018 Sorry to resurrect an old thread, but Im having the same error. I have disabled HTTP post and repaired the installation, but the issue persists. Are there any other plugins that could be causing this error? 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.