Jump to content
UBot Underground

The Remote Server Returned An Error: (403) Forbidden Using Socket Command


Recommended Posts

Hi all!  good day! 

I'm trying out this socket command. I want to login and post tweets in tweeter using socket commands, it works fine with log in but when it comes to posting tweets i keep on getting The remote server returned an error: (403) forbidden. Does anyone know encountered this error already? how did you solve it? Pls share! thanks ahead!

 

 

plugin command("SocketCommands.dll", "socket container") {
    plugin command("SocketCommands.dll", "socket set header", "User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0")
    plugin command("SocketCommands.dll", "socket navigate", "GET", "http://twitter.com")
    set(#token1,$find regular expression($plugin function("SocketCommands.dll", "$socket page html"),"(?<=authenticity_token\" value=\").*?(?=\")"),"Global")
    plugin command("SocketCommands.dll", "socket add parameter", "session[username_or_email]", "twitter@gmail.com")
    plugin command("SocketCommands.dll", "socket add parameter", "session[password]", "12341234")
    plugin command("SocketCommands.dll", "socket add parameter", "authenticity_token", #token1)
    plugin command("SocketCommands.dll", "socket navigate", "POST", "https://twitter.com/sessions")
    load html($plugin function("SocketCommands.dll", "$socket page html"))
    plugin command("SocketCommands.dll", "socket navigate", "GET", "https://twitter.com/")
    plugin command("SocketCommands.dll", "socket add parameter", "status", "Nice app! #wittymanager")
    plugin command("SocketCommands.dll", "socket add parameter", "authenticity_token", #token1)
    wait(10)
    plugin command("SocketCommands.dll", "socket navigate", "POST", "https://twitter.com/i/tweet/create")
    load html($plugin function("SocketCommands.dll", "$socket page html"))
}

Link to post
Share on other sites

The socket commands people generally don't use they use HTTP Post plugin instead because it has much better features.

 

But to answer your question, you should perform the action in a web browser and use Fiddler or something like Chrome dev tools to view headers and everything that is going on and then do your best to replicate it using sockets. You can use Fiddler to see what happens when you use sockets, are the headers different? If so then you need to change them. Just try to mimic the browser as much as possible.

  • Like 1
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...