Jump to content
UBot Underground

Recommended Posts

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

Link to post
Share on other sites

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

Link to post
Share on other sites

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.
  • Like 2
Link to post
Share on other sites
  • 4 weeks later...

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

Link to post
Share on other sites

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=

Link to post
Share on other sites
  • 1 year later...

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? 

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